/* Pantallas grandes */
@media (min-width: 768px) {
    #logito {
        width: 1px;
        height: 1px;
    }
}

.nav-menu ul li a {
    font-size: 25px;
    position: relative;
    top: -60px;
    color: #fff;
}

.to-social a i {
    font-size: 30px;
    color: #fff;
}

#brother {
    height: 500px;
    width: 900px;
    border-radius: 5px;
    margin-top: 20px;
}

.hs-slider {
    max-width: 900px;
    margin: 0 auto;
    max-height: 100vh;
}

body {
    background-color: rgba(0, 0, 0, 0.96);
    font-family: 'Playfair Display', serif; /* Fuente elegante */
}

.hero-section {
    margin-top: 5%;
}

#iniciar_sesion_pantallas_grandes {
    margin-right: 220px;
    top: 12%;
}

/* Pantallas pequeñas */
@media (max-width: 767px) {
    #boton {
        margin-top: -20%;
        margin-left: 30%;
    }

    #logito {
        margin-top: -12%;
        margin-left: -6%;
        border-radius: 5px;
        max-width: 57vh;
        height: 39vh;
    }
}

/* Ajustes para pantallas muy pequeñas (menos de 302px) */
@media (max-width: 302px) {
    #brother {
        height: 50vh;
        width: 250px;
        margin-top: 50px;
        margin-left: 30px;
    }
}

/* Pantallas pequeñas (de 302px a 500px) */
@media (min-width: 303px) and (max-width: 500px) {
    #brother {
        height: 60vh;
        width: calc(100vw - 70px);
        margin-top: 30px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Pantallas medianas (de 501px a 720px) */
@media (min-width: 501px) and (max-width: 720px) {
    #brother {
        height: 70vh;
        width: 600px;
        margin-top: 40px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Pantallas grandes (de 721px a 1280px) */
@media (min-width: 721px) and (max-width: 1280px) {
    #brother {
        height: 80vh;
        width: 800px;
        margin-top: 50px;
        margin-left: auto;
        margin-right: auto;
    }

    #iniciar_sesion_pantallas_grandes {
        margin-right: 300px;
    }

    #n1 {
        position: absolute;
        margin-top: -25px;
        margin-right: 250px;
    }
}

/* Pantallas muy grandes (más de 1281px) */
@media (min-width: 1281px) {
    #brother {
        height: 500px;
        width: 900px;
        margin-top: 20px;
        margin-left: 0;
    }

    #n1 {
        position: absolute;
        margin-top: -25px;
    
        margin-right: 240px;
    }
}

/* Ajuste global para las imágenes del carrusel */
#brother {
    background-size: cover; /* Asegura que la imagen cubra todo el div */
    background-position: center center; /* Centra la imagen */
    height: 500px;
    width: 100%;
    max-width: 900px;
    border-radius: 5px;
    margin-top: 20px;
}

/* Ajustes para pantallas pequeñas (hasta 500px) */
@media (max-width: 500px) {
    #brother {
        height: 60vh;
        width: 100%; /* Se ajusta al ancho completo de la pantalla */
    }
}

/* Pantallas medianas (de 501px a 720px) */
@media (min-width: 501px) and (max-width: 720px) {
    #brother {
        height: 70vh;
        width: 80vw; /* Ajusta el ancho al 80% del viewport */
    }
}

/* Pantallas grandes (de 721px a 1280px) */
@media (min-width: 721px) and (max-width: 1280px) {
    #brother {
        height: 80vh;
        width: 70vw;
    }
}

/* Pantallas muy grandes (más de 1281px) */
@media (min-width: 1281px) {
    #brother {
        height: 500px;
        width: 900px;
    }
}

/* Botón flotante para abrir/cerrar el chat (logo) */
#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: transparent;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    overflow: hidden;
    padding: 0;
}
#chatbot-toggle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contenedor del Chatbot */
#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    /* Alto dinámico: hasta 80% de la altura de la ventana */
    max-height: 80vh;
    border: 1px solid #ccc;
    background: #fff;
    display: none;       /* Se mostrará al dar clic en el botón */
    z-index: 10002;      /* Mayor que el botón */
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    border-radius: 10px;
}

/* Header del chat: logo + título + botón de cerrar */
#chatbot-header {
    background-color: #000;
    color: #fff;
    padding: 10px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Título a la izquierda, cerrar a la derecha */
}
#chatbot-header .chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
}
#chatbot-header img {
    width: 40px;
    height: 40px;
    object-fit: cover;
}
#chatbot-header span {
    font-weight: bold;
    font-size: 16px;
}
#chatbot-close {
    cursor: pointer;
    font-size: 20px;
    background: transparent;
    border: none;
    color: #fff;
}

/* Contenedor de mensajes */
#chatbot-messages {
    flex: 1;                /* Ocupa el espacio sobrante */
    overflow-y: auto;       /* Scroll vertical */
    padding: 10px;
    font-size: 14px;
    background-color: #f9f9f9;

    /* Para acomodar burbujas con flex */
    display: flex;
    flex-direction: column;
}

/* Burbujas de Chat (flex en lugar de float) */
.chat-bubble {
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 80%;
}
/* Mensajes del usuario a la derecha */
.user-bubble {
    background-color: #d1e7fd;
    align-self: flex-end;
    text-align: right;
}
/* Mensajes del gimnasio a la izquierda */
.gym-bubble {
    background-color: #eee;
    align-self: flex-start;
    text-align: left;
}
.chat-bubble strong {
    display: block;
    margin-bottom: 3px;
}

/* Área de input y botón de enviar */
#chatbot-input-area {
    padding: 10px;
    border-top: 1px solid #ccc;
    background-color: #fff;

    display: flex;
    gap: 5px;
}
#chatbot-input {
    flex: 1; /* Ocupa todo el espacio */
    padding: 5px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
#chatbot-send {
    width: 80px;
    padding: 6px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Botones de sugerencia */
.suggestion-btn {
    background-color: #ddd;
    border: none;
    padding: 5px 8px;
    margin: 3px;
    cursor: pointer;
    border-radius: 4px;
}
.suggestion-btn:hover {
    background-color: #ccc;
}



