/*
Paleta
#1A2E41 //textos primarios o fondos
#3E4F5C //textos secundarios
#6AAEFA //botones 
#A8C5DB //decoraivo
#FEF6EC //fodos
#F7F8F9 //fondos variación #ffffff
#e5f1fc //fondos 
#A8D5BA //complementario 1
#EEC767 //complementario 2 -- texto en botones amarillos: #4F3C07 transiciones: #D9AC39

opcional:
#f87171 //manejo de errores -- textos: #ff3b3b
#bee2fc //elementos extras

colores de las emociones:
alegria: #FFDC9A
tristeza: #A8C5DB
calma: #C4E0C3
enojo: #F29983
miedo: #C2B8E3
*/


/* INICIO ESTILOS DEL INDEX ----------------------*/
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body {
    margin: 0;
    background-color: #F7F8F9;
}

main{
    margin-top: clamp(80px, 9.5vw, 130px);
}

h1, h2, h3, h4, h5, h6{
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
}

p {
    font-family: 'Open Sans', sans-serif;
}



/*AJUSTES GENERALES DE LOS DOS HEADERS ---------------------*/

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/*MINI HEADER ---------------------*/
.mini-header{
    background-color: #1A2E41;
    color: white;
    display: flex;
    gap: 2%;
    justify-content: flex-end;
    padding: clamp(0.5rem, 1vw, 1.5rem);
}

.mini-header-text {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
}

@media (max-width: 480px) {
    .mini-header-text {
        display: none; /*elemento invisible*/
    }
}

.mini-header p {
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
}

.mini-header a{
    color: white;
    font-size: clamp(0.9rem, 1vw, 1rem); /*rem es relavito al vw base*/
    transition: all 0.3s ease;
}

.mini-header a:hover{
    transform: scale(1.05);
    text-decoration: underline;
}


/*HEADER PRINCIPAL ---------------------*/

.header {
    width: 100%;
    height: 73px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background-color: rgba(247, 248, 249, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid #ececec;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 10px 5px rgba(228, 228, 228, 0.2);
}

.header .logo {
    max-width: 150px;
    width: auto;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 75%;
}

.header-links {
    display: flex;
    gap: 30px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.header-links ul li {
    color: #1A2E41;
}

.header-links a{
    color: #1A2E41;
}

.nav{
    display: flex;
}

.header-links a:hover {
    text-decoration: underline;
    text-decoration-thickness: 3px; /*grosor*/
    text-underline-offset: 6px; /*espacio*/
    border-radius: 10px;
    color: #1A2E41;
}

.btn-log-out{
    background-color: #0F2233;
    color: white;
    width: 20vh;
    height: auto;
}


/*MENU HAMBURGUESA :) ---------------------*/

.menu-icon{
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-left: auto;
    position: relative;
    padding: 15px;
    border-radius: 8px;
    z-index: 1;
}

.menu-icon .line{
    width: 30px;
    height: 3px;
    background: #1A2E41;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.5s ease;
}

#menu-toogle {
    display: none;
}

@media(max-width: 900px){

    .navbar{
        padding: 16px;
    }

    .menu-icon{
        display: flex;
    }

    .header-links{
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        flex-direction: column;
        overflow-y: auto; /*Permite scroll*/
        background-color: #bee2fc;
        text-align: center;
        transition: height 0.5s ease;
        z-index: 999;
    }


    .header-links li{
        margin: 0;
        width: 100%;
    }

    .header-links li:hover {
        background-color: #bee2fc;
    }

    .header-links li a{
        display: block;
        font-size: 15px;
        width: 100%;
        padding: 20px;
        text-align: center;
    }

    #menu-toogle:checked + .menu-icon + .header-links{
        height: auto;
        height: calc(100vh - 73px); /*vista total menos tamaño del header*/
    }
}

@media(max-width: 1160px) {
    .header-links {
        gap: 20px;
    }

}

@media(max-width: 1086px) {
    .header-links {
        gap: 10px;
    }

}

@media(max-width: 1090px) {
    .header-links a {
       font-size: 14px;
    }
}

/*SECCION HERO ---------------------*/
.hero {
    background-color: #F7F8F9;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    min-height: 450px;
    background: linear-gradient(#F7F8F9, #A8C5DB);
    background-image: url(/images/principal-page/hero-img-1440.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 2rem;
    /* evita que el contenido toque los bordes */
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    /* curva inferior fluida */
}

.hero-content h1,
.hero-content p {
    color: #1d3449;
}

.hero-content h1 {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.8rem, 5vw, 4rem);
    font-weight: 800;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.5rem);
}



@media(max-width:1920px) {
    .hero-content {
        background-image: url(/images/principal-page/hero-img-1920.webp);
    }
}

@media(max-width:1280px) {
    .hero-content {
        background-image: url(/images/principal-page/hero-img-1280.webp);
    }
}

@media(max-width:1024px) {
    .hero-content {
        background-image: url(/images/principal-page/hero-img-1280.webp);
    }
}

@media(max-width:768px) {
    .hero-content {
        background-image: url(/images/principal-page/hero-img-768.webp);
    }

    h1 {
        font-size: 2.5rem;
    }
}

@media(max-width:481px) {
    .hero-content {
        background-image: url(/images/principal-page/hero-img-481.webp);
    }

    .hero-content p {
        font-size: 95%;
        text-align: center;
    }
}

@media(max-width:320px) {
    .hero-content {
        background-image: url(/images/principal-page/hero-img-320.webp);
    }

    .hero-content p {
        font-size: 95%;
        text-align: center;
    }
}

/*SECCION NOSOTROS ---------------------*/

.nosotros {
    width: 100%;
    min-height: 473px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F7F8F9;
}

.nosotros-content {
    width: 70%;
    max-width: 1200px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #F7F8F9;
}

.nosotros-content h2 {
    text-align: center;
    font-size: clamp(1.5rem, 3.5vw, 3rem); /*acomoda A: espacio pequeño, B: ajustar de forma fluida, C: espacio grande*/
    padding-bottom: 20px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: #394A5B;
}

.nosotros-content p {
    text-align: center;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    line-height: 1.6;
    margin: 0 20%;
}

@media(min-width:320px) {
    .nosotros-content p {
        margin: 0 5%;
    }
}

.nosotros {
    width: 100%;
    min-height: 473px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/*SECCIÓN NOSOTROS (información de MindBridge)*/
.quienes-somos {
    width: 100%;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(6rem, 12vw, 8rem) clamp(2rem, 10vw, 6rem);
    gap: 2rem; 
    background: linear-gradient(to right, #e5f1fc, #F7F8F9);/* Fondo diferente al blanco y gris */
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
}

/* Título principal */
.titulo {
    font-size: clamp(1.5rem, 3vw, 3rem);
    color: #1A2E41;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    text-align: center;
}

/* Columnas de texto */
.text-columnas {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 3vw, 5rem); 
    margin-top: 10px;
    justify-content: center;
    width: 100%;
}

.text-columnas p {
    flex: 1 1 45%;; /* crecer, encoger, base */
    font-size: clamp(1rem, 1.2vw, 1.3rem);
    line-height: 1.6;
    text-align: justify;
    color: #2d3a44;
}

/* Subtítulo ODS */
.ODS-tittle {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.375rem, 1.575vw, 1.675rem);
    color: #1A2E41;
    font-weight: 700;
    text-align: center;
    margin-top: clamp(1rem, 2vw, 2rem);
}

/* Contenedor ODS */
.ODS-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: clamp(2rem, 8vw, 8%);
    margin-top: 1rem;
}

/* Imágenes ODS */
.ODS-container img {
    width: clamp(80px, 8vw, 110px); /*econjer, base, agrandar*/
    height: auto;
    transition: all 0.4s ease-in-out;
    border-radius: 15px; 
    cursor: pointer;
}

.ODS-container img:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    transform: scale(1.08);
}

/* Media Queries para ajustar responsividad */
@media (max-width: 768px) {
    .text-columnas {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .ODS-container {
        gap: 4vw;
    }
}

@media (max-width: 480px) {
    .quienes-somos {
        padding: 1rem 2rem;
    }

    .titulo {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }

    .ODS-tittle {
        font-size: clamp(1.125rem, 4vw, 1.5rem);
    }

}

/*SECCION CENTRO DE RECURSOS ---------------------*/
.action-cards {
    width: 100%;
    min-height: auto;
    padding: 2%;
    background-color: #FEF6EC;
    display: flex;
    text-align: center;
    flex-direction: column;
    align-items: center;

}

.action-cards h3 {
    padding: 20px 0;
    font-size: clamp(1.28rem, 2.99vw, 2.47rem);
    /*como calcular la redcción 1.35*5/100 = 0.0675 - 1.35 = 1.28 */
    color: #1A2E41;
}


.cards-container {
    width: 90%;
    max-width: 1400px;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.service-card {
    flex: 1 1 300px;
    /*crecer, encojer, base*/
    max-width: 400px;
    min-width: 280px;
    height: auto;
    border-radius: 40px;
    margin: 20px;
    text-align: center;
    box-shadow: 0 0 15px rgba(226, 218, 208, 0.671);
    transition: all 0.3s ease-out;
}

.service-card:hover {
    transform: scale(1.03);
}

.service-card img {
    width: 70%;
    height: auto;
    margin-top: 40px;
}

.service-card h4 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin: 5% 9%;
    text-align: center;
    color: #3E4F5C;
}

.service-card p {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    padding: 0 7% 7% 7%;
    color: #536069;
}



/*SECCION CENTRO DE SERVICIOS ---------------------*/
.centro-de-recursos {
    width: 100%;
    min-height: auto;
    padding: 5% 10%;
    background-color: #F7F8F9;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.titulo-centro-recursos {
    width: 100%;
    display: flex;
    font-size: clamp(1.28rem, 2.99vw, 2.47rem);
    color: #1A2E41;
    gap: 1.1%;
}

.titulo-centro-recursos img {
    width: 55px;
    height: 55px;
}

.info-cards-container {
    width: 90%;
    max-width: 1900px;
    height: auto;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.centro-de-recursos p {
    font-size: clamp(1rem, 1.1vw, 1.5rem);
    margin: 3% 0;
}

@media(max-width: 320px) {

    .centro-de-recursos p {
        margin: 7% 0;
    }
}

.btn-explorar {
    display: inline-block;
    /*se alinea con otros elementos y tiene su propiedades de width o height sino toma el tamaño del contenedor*/
    background-color: #EEC767;
    border: 2px solid #E0B34F;
    color: #4F3C07;
    padding: 0.8rem 1.5rem;
    margin: 20px;
    border-radius: 25px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease-out;
}

.btn-explorar:hover {
    transform: scale(1.05);
    background-color: #D9AC39;
    border: 2px solid #C89A2E;
    color: #3B2C05;
}

.btn-explorar a {
    color: #4F3C07;
}

.btn-azul {
    background-color: #6AAEFA;
    color: #0F2233;
    border: none;
    padding: 0.8rem 1.5rem;
    margin: 20px;
    border-radius: 25px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease-out;
}

.btn-azul:hover {
    transform: scale(1.05);
    color: white;
    background-color: #2c8fff;
}

/*info cards - CRUD*/
/* Estilos generales */
.info-card {
    flex: 1 1 calc(33.333% - 2rem);
    max-width: 30%;
    min-width: 220px;
    border-radius: 40px;
    text-align: center;
    box-shadow: 0 0 15px rgba(226, 218, 208, 0.671);
    transition: all 0.3s ease-out;
    margin: 10px;
}

.info-card:hover {
    transform: scale(1.05);
}

.info-card h4 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin: 3% 9%;
    color: #3E4F5C;
}

/* Imagen dentro de la card */
.imagen-card {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    width: 100%;
    height: 150px;
    object-fit: cover;
    background-color: #ccc;
}

/* Descripción */
.card-description {
    margin: 5% 2% 0% 2%;
}

.card-description ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 10px 20px;
    padding: 0;
    list-style: none;
    width: 80%;
}

.card-description ul li {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: #3E4F5C;
    text-align: left;
    margin-bottom: 6px; /*espacio entre cada li*/
}

/* Contenedor de botones */
.btn-contenedor {
    display: flex;
    justify-content: flex-end;
    margin: 0% 2% 2% 0%;
}

/* ----------- RESPONSIVE ----------- */

/* tablets (dos columnas) */
@media (max-width: 992px) {
    .info-card {
        flex: 1 1 calc(50% - 2rem); /*1: cuanto crece el elemento, 1:cuando se puede encojer, calc: base de los otros dos, rem: en base a la fuente del documento (root)*/
        max-width: 48%;
    }
}

/* celullares (una columna) */
@media (max-width: 600px) {
    .info-card {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 15px 0;
    }
}

/*CALMA CHAT BOT ---------------------*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

.container-texto {
    width: 50%;
    margin: 40px;

}

.container-texto .titulo-ia {
    font-family: Nunito;
    font-size: 45px;
    color: #1A2E41;
    line-height: 1.1
}

.container-bot {
    width: 50%;
    height: 800px;
}

.color-calmabot {
    color: #69A667;
}

.texto-primario {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #3E4F5C;
    font-size: 20px
}

.texto-secundario {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #3E4F5C;
    margin-top: 15px;
    padding: 20px;
    border: solid 2px #3E4F5C;
    border-radius: 20px;
    width: 70%;
    font-size: 20px;
}


.image-calma-bot img{
    margin: 2%;
    width: 350px;
    height: auto;
}

.disclaimer{
    color: rgb(66, 38, 38);
}

/* Ajustes generales para el layout de la sección de la IA */
.container-ia {
    justify-content: space-between;
    /* Centra el contenido si hay espacio extra */
    display: flex;
    padding: 50px;
    align-items: center;
    background-image: linear-gradient(to bottom, #DCECF8, #FFFFFF);
    min-height: 100vh;
    /* Asegura que ocupe al menos toda la altura de la vista */
    box-sizing: border-box;
    /* Incluye padding y borde en el tamaño total */
    gap: 40px;
}

.container-texto {
    flex: 1;
    margin-right: 40px;
    /* Espacio entre el texto y el chatbot */
}

/* Contenedor principal del Chatbot (la caja completa) */
.container-bot {
    width: 450px;
    /* Ancho fijo para el chatbot */
    height: 400px;
    /* Altura fija para el chatbot */
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 45px #05631a;
    border: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    /* Organiza los elementos internos en columna */
    overflow: hidden;
    /* Importante para que los bordes redondeados se vean bien con los bloques de color */
}

/* Contenedor interno del chat (Header, Chatbox, Input, Colores) */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ocupa toda la altura disponible del .container-bot */
}

.chat-header {
    background-color: #69A667;
    /* Color del encabezado */
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.2em;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    font-family: Nunito;
}

.chat-box {
    flex-grow: 1;
    /* Permite que el chat-box ocupe el espacio restante */
    padding: 20px;
    overflow-y: auto;
    /* ¡Aquí es donde se activa el scroll! */
    display: flex;
    flex-direction: column;
    background-color: #DCECF8;
    /* <-- FONDO AZUL PARA EL CHATBOX */
}

/* Estilos de los mensajes */
.message {
    padding: 10px 15px;
    /* Más padding horizontal */
    border-radius: 15px;
    margin-bottom: 12px;
    max-width: 85%;
    line-height: 1.4;
    word-wrap: break-word;
    /* Rompe palabras largas para evitar desbordamiento */
}

.bot-message {
    background-color: #ffffff;
    /* Mensajes del bot con fondo blanco o claro */
    color: #1A2E41;
    align-self: flex-start;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.user-message {
    background-color: #c9e4c9;
    /* Mensajes del usuario con un verde claro */
    color: #333;
    align-self: flex-end;
    text-align: left;
    /* Asegura que el texto del usuario se alinee a la izquierda dentro de su burbuja */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

}

/* Área de entrada de texto */
.chat-input-area {
    display: flex;
    padding: 15px;
    border-top: 1px solid #eee;
    background-color: #fff;
    /* Fondo blanco para la caja de texto */
}

#userInput {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    /* Bordes más redondeados */
    margin-right: 10px;
    font-size: 16px;
    outline: none;
}

#sendBtn {
    padding: 10px 20px;
    background-color: #5d9cec;
    color: white;
    border: none;
    border-radius: 25px;
    /* Bordes más redondeados */
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

#sendBtn:hover {
    background-color: #4a80b8;
}

/* Estilos adicionales para la nueva funcionalidad */
.typing-indicator {
    font-style: italic;
    color: #888;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.rating-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    margin-top: 1rem;
}

.star {
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s;
}

.star.filled {
    color: #f59e0b;
}

.rating-message {
    margin-top: 0.5rem;
    color: #6b7280;
    font-style: italic;
    text-align: center;
}

/* SECCIÓN DE LECTURAS*/

.lecturas{
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FEF6EC;
    flex-direction: column;
    padding: clamp(2rem, 8vw, 9rem);
}

.lecturas-container{
    width: 85%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding-top: 10%;
}

.lecturas-container h3{
    font-size: clamp(1.3rem, 3.2vw, 2.5rem);
    color: #1A2E41;
}

.lecturas-container p{
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    padding-bottom: 2%;
    color: #536069;
}

.lecturas img {
    width: clamp(200px, 36%, 400px);
    height: auto;
    margin-top: 2%;
    max-width: 100%;
}

/*SECCION PSICOLOGOS UNIDOS----------------------*/
.psicologos-unidos {
    background: linear-gradient(to bottom, #FEF6EC, #BAD3E5);
    padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 4vw, 2rem);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 5vw, 2.5rem);
}

.contenido-psicologo {
    margin: 5%;
    max-width: 400px;
    text-align: left;
}

.contenido-psicologo h3 {
    font-size: clamp(1.28rem, 2.99vw, 2.47rem);
    color: #1A2E41;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.contenido-psicologo p {
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    padding-bottom: 2%;
    color: #536069;

}

.imagen-psicologos img {
    width: clamp(200px, 100%, 600px);
    height: auto;
    margin-left: 2%;
}


@media (max-width: 768px) {
    .psicologos-unidos {
        flex-direction: column;
        text-align: center;
    }

    .contenido-psicologo {
        text-align: center;
    }

    .imagen-psicologos img {
        width: clamp(200px, 70%, 600px);
        height: auto;
        margin-left: 2%;
    }
}

.btn-section{
    margin-top: 30px;
}

.btn-psicologos{
    background-color: #1A2E41;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease-in;
}

.btn-psicologos:hover{
    transform: scale(1.05);
    background-color: #2e4a64;

}

/*SECCION DE LECTURAS --------------*/

.emotional-resources {
    background-color: #fcf4e8;
    padding: 80px 20px;
    display: flex;
    justify-content: center;
}

.content-wrapper {
    max-width: 600px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;

}

.section-title {
    font-family: 'Nunito', sans-serif;
    font-weight: bold;
    color: #3E4F5C;
    margin: 0;
    font-size: 45px;
}

.section-description {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
    font-size: 20px;

}
.explore-button a{
    color:#4F3C07;
}
.explore-button {
    background-color: #EEC767;
    color: #4F3C07;
    font-weight: bold;
    font-size: 18px;
    padding: 12px 30px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'Nunito', sans-serif;
}

.explore-button:hover {
    background-color: #E0B34F;
}

.emotion-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/*footer*/
:root {
  --primary-color: #263242;
  --text-color: #f0f0f0;
  --link-color: #d1d1d1;
}

footer {
  background-color: var(--primary-color);
  color: var(--text-color);
  padding: 50px 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-column {
  flex: 1;
  min-width: 150px;
  margin-bottom: 20px;
}

.footer-column h4 {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

.footer-column p {
  line-height: 1.6;
  margin: 0;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #fff;
}

.social-media .social-icons {
  display: flex;
  gap: 15px;
}

.social-media .social-icons a {
  font-size: 24px;
  color: var(--text-color);
  transition: transform 0.3s ease;
}

.social-media .social-icons a:hover {
  transform: scale(1.1);
}

.footer-copyright {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 20px;
  margin-top: 30px;
}

.footer-copyright p {
  font-style: italic;
  color: #a0a0a0;
  font-size: 13px;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    margin-bottom: 30px;
  }
}

@media (max-width: 1600px) {
    .container-ia {
        padding: 40px;
    }

    .container-texto {
        margin-right: 30px;
    }

    .container-texto .titulo-ia {
        font-size: 40px;
        margin: 50px 0px 20px;
    }

    .texto-primario {
        margin-bottom: 30px;
    }

    .container-bot {
        width: 400px;
        height: 550px;
    }
}

@media (max-width: 1200px) {
    .container-ia {
        flex-direction: column;
        padding: 30px;
        align-items: center;
        gap: 30px;
    }

    .container-texto {
        width: 80%;
        /* Ocupa más ancho en pantallas más pequeñas */
        text-align: center;
        margin: 0;
    }

    .container-texto .titulo-ia {
        font-size: 38px;
    }

    .container-bot {
        width: 380px;
        height: 520px;
    }

    .texto-secundario {
        width: 80%;
        /* Se ajusta para no ser demasiado ancho en pantallas pequeñas */
        margin: 15px auto 0;
        /* Centra el elemento */
    }
}

@media (max-width: 800px) {
    .container-ia {
        padding: 20px;
    }

    .container-texto {
        width: 90%;
    }

    .container-texto .titulo-ia {
        font-size: 32px;
    }

    .container-bot {
        width: 350px;
        height: 500px;
    }

    .texto-secundario {
        width: 90%;
    }
}

@media (max-width: 500px) {
    .container-ia {
        padding: 15px;
    }

    .container-texto .titulo-ia {
        margin: 60px 0px 20px;
        font-size: clamp(1.5rem, 3.5vw, 3rem);
    }

    .texto-primario {
        font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    }

    .texto-secundario {
        width: 95%;
        font-size: clamp(0.9rem, 1.5vw, 1.1rem);
        padding: 15px;
    }

    .image-calma-bot img {
        width: 50%;
    }

    .container-bot {
        width: 95%;
        /* Ocupa casi todo el ancho disponible */
        height: 480px;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }

    .chat-header {
        font-size: 1em;
        padding: 12px;
    }

    .message {
        font-size: 14px;
        padding: 8px 12px;
    }

    #userInput {
        font-size: 14px;
        padding: 8px 12px;
    }

    #sendBtn {
        font-size: 14px;
        padding: 8px 15px;
    }
}

@media (max-width: 320px) {
    .container-ia {
        padding: 10px;
    }

    .container-texto .titulo-ia {
        font-size: 24px;
    }

    .texto-primario {
        font-size: 16px;
    }

    .texto-secundario {
        width: 100%;
        font-size: 14px;
    }

    .container-bot {
        width: 100%;
        height: 450px;
        border-radius: 0;
    }

    .chat-input-area {
        padding: 10px;
    }

    #userInput {
        font-size: 12px;
        padding: 6px 10px;
    }

    #sendBtn {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 1200px) {
    .emotional-resources {
        padding: 60px 15px;
    }

    .content-wrapper {
        gap: 15px;
    }

    .section-title {
        font-size: 40px;
    }

    .section-description {
        font-size: 18px;
    }
}


@media (max-width: 800px) {
    .emotional-resources {
        padding: 50px 10px;
    }

    .content-wrapper {
        gap: 10px;
    }

    .section-title {
        font-size: 35px;
    }

    .section-description {
        font-size: 16px;
    }

    .explore-button {
        font-size: 16px;
        padding: 10px 25px;
    }
}


@media (max-width: 500px) {
    .emotional-resources {
        padding: 40px 10px;
    }

    .section-title {
        font-size: 30px;
    }

    .section-description {
        font-size: 15px;
    }

    .explore-button {
        font-size: 15px;
        padding: 8px 20px;
    }

    .emotion-icons {
        flex-wrap: wrap;
        gap: 10px;
    }
}


@media (max-width: 320px) {
    .emotional-resources {
        padding: 30px 5px;
    }

    .section-title {
        font-size: 25px;
    }

    .section-description {
        font-size: 14px;
    }

    .explore-button {
        font-size: 14px;
        padding: 7px 18px;
    }
}
/* FIN ESTILOS DEL INDEX ----------------------*/

/* INICIO ESTILOS DEL LOG-IN / REGISTROS ----------------------*/
.registrar-main{
    margin-top: clamp(80px, 9.5vw, 130px);
    background: linear-gradient(135deg, #F7F8F9 0%, #E8F4F8 100%);
}

.auth-main-2{
    background: linear-gradient(135deg, #F7F8F9 0%, #E8F4F8 100%);
   
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    padding: 20px;
}

/* Tarjeta de autenticación */
.auth-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(238, 199, 103, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #EEC767, #D9AC39, #EEC767);
}

/* Header de autenticación */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(238, 199, 103, 0.1), rgba(217, 172, 57, 0.1));
    border-radius: 20px;
    margin-bottom: 24px;
    border: 2px solid rgba(238, 199, 103, 0.3);
}

.auth-header h1 {
    font-family: 'Nunito', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1A2E41;
    margin-bottom: 12px;
    line-height: 1.2;
}

.auth-header p {
    color: #3E4F5C;
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0;
}

/* Formulario de autenticación */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #1A2E41;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 16px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    background-color: #FAFAFA;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #EEC767;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(238, 199, 103, 0.1);
    transform: translateY(-1px);
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #A8D5BA;
    background-color: #F0FDF4;
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #f87171;
    background-color: #FEF2F2;
}


/* Input de contraseña */
.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #536069;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: #1A2E41;
    background-color: rgba(238, 199, 103, 0.1);
}

/* Indicador de fortaleza de contraseña */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    height: 4px;
    background-color: #E0E0E0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    width: 25%;
    background-color: #f87171;
}

.strength-fill.fair {
    width: 50%;
    background-color: #EEC767;
}

.strength-fill.good {
    width: 75%;
    background-color: #A8D5BA;
}

.strength-fill.strong {
    width: 100%;
    background-color: #A8D5BA;
}

.strength-text {
    font-size: 0.85rem;
    color: #3E4F5C;
}

/* Opciones del formulario */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
}

.checkbox-group {
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #3E4F5C;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #F7F8F9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background-color: #EEC767;
    border-color: #EEC767;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.forgot-link {
    color: #1A2E41;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #3E4F5C;
    text-decoration: underline;
}

/* Botón de autenticación */
.btn-auth {
    background: linear-gradient(135deg, #EEC767, #D9AC39);
    border: none;
    color: #1A2E41;
    padding: 18px 32px;
    border-radius: 12px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(238, 199, 103, 0.3);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 199, 103, 0.4);
    background: linear-gradient(135deg, #D9AC39, #C49B2E);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(26, 46, 65, 0.3);
    border-top: 2px solid #1A2E41;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Divisor */
.auth-divider {
    text-align: center;
    margin: 32px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #F7F8F9;
}

.auth-divider span {
    background-color: #ffffff;
    padding: 0 20px;
    color: #3E4F5C;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Footer de autenticación */
.auth-footer,
.verification-footer {
    text-align: center;
    margin-top: 32px;
}

.auth-footer p,
.verification-footer p {
    color: #3E4F5C;
    margin: 8px 0;
}

.auth-link {
    color: #1A2E41;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link:hover {
    text-decoration: underline;
}

/* Información lateral */
.auth-info {
    padding: 40px;
}

.info-content h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #1A2E41;
    margin-bottom: 20px;
    line-height: 1.2;
}

.info-content>p {
    color: #3E4F5C;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

.info-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(238, 199, 103, 0.1), rgba(217, 172, 57, 0.1));
    border-radius: 12px;
    border: 2px solid rgba(238, 199, 103, 0.3);
    flex-shrink: 0;
}

.feature-text h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A2E41;
    margin-bottom: 4px;
}

.feature-text p {
    color: #3E4F5C;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

.notification-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #EEC767;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.notification.success .notification-content {
    border-left-color: #1A2E41;
}

.notification.error .notification-content {
    border-left-color: #1A2E41;
}

.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification.success .notification-icon {
    background-color: #1A2E41;
    color: white;
}

.notification.error .notification-icon {
    background-color: #EF4444;
    color: white;
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    color: #1A2E41;
    margin: 0 0 4px 0;
    font-size: 1rem;
}

.notification-message {
    color: #3E4F5C;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #536069;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background-color: #F7F8F9;
    color: #1A2E41;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mensajes de validación */
.msg {
    font-size: 0.85rem;
    margin-top: 4px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: none;
}

.msg-error {
    background-color: #F7F8F9;
    color: #f87171;
    border: 1px solid #FECACA;
}

.msg-help {
    background-color: #F7F8F9;
    color: #1A2E41;
    border: 1px solid #A8C5DB;
}

/* Mostrar mensajes de error cuando el input es inválido */
.form-group input:invalid:not(:placeholder-shown)+.msg-error,
.form-group input:invalid:not(:placeholder-shown)~.msg-error {
    display: block;
}

/* Mostrar mensajes de ayuda cuando el input es válido o vacío */
.form-group input:valid+.msg-help,
.form-group input:placeholder-shown+.msg-help {
    display: block;
}

/* Ocultar ayuda cuando se muestra error */
.form-group input:invalid:not(:placeholder-shown)+.msg-error~.msg-help {
    display: none;
}

/* Responsive Design para autenticación */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 600px;
    }

    .auth-info {
        order: -1;
        padding: 20px;
    }

    .info-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .feature {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .auth-main {
        padding: 10px;
    }

    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .auth-header h1 {
        font-size: 1.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .info-features {
        flex-direction: column;
    }

    .feature {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px;
    }

    .auth-header h1 {
        font-size: 1.6rem;
    }

    .auth-header p {
        font-size: 1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        font-size: 16px;
        /* Prevenir zoom en iOS */
    }

    .btn-auth {
        padding: 16px 24px;
        font-size: 1rem;
    }

    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* FIN ESTILOS DEL LOG-IN / REGISTROS ----------------------*/

/* INICIO ESTILOS DE PAGINA QUESTIONS ----------------------*/
.questions-main {
  margin-top: clamp(80px, 10vw, 130px);
  background: white;
}

/*HERO*/
.questions-hero{
    width: 100%;
    height: auto;
    min-height: 40vh; 
    background-color: #cee3ff;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 10vw, 6rem); 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


.intro-text {
    padding: clamp(1.5rem, 4vw, 3rem);
    max-width: 800px;
    width: 100%;
}


.questions-hero h1{
    font-size: clamp(2rem, 3vw, 3.5rem); 
    font-weight: 600; 
    color: #1A2E41;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.questions-hero p{
    font-size: clamp(1.125rem, 1vw, 1.75rem); 
    color: #3E4F5C;
    line-height: 1.5;
}

/*IMÁGENES HERO RESPONSIVE*/
@media(max-width: 1920px){
    .questions-hero{
        background-image: url(/images/question/hero-1920.webp);
    }
}

@media(max-width: 1441px){
    .questions-hero{
        background-image: url(/images/question/hero-1441.webp);
    }
}

@media(max-width: 1280px){
    .questions-hero{
        background-image: url(/images/question/hero-1280.webp);
    }
}

@media(max-width: 1024px){
    .questions-hero{
        background-image: url(/images/question/hero-1024.webp);
    }
}

@media(max-width: 768px){
    .questions-hero{
        background-image: url(/images/question/hero-768.webp);
    }
}

@media(max-width: 481px){
    .questions-hero{
        background-image: url(/images/question/hero-481.webp);
    }
}

@media(max-width: 320px){
    .questions-hero{
        background-image: url(/images/question/hero-320.webp);
    }
}

/*INTRO DE PREGUNTAS*/
.preguntas-list-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    padding: clamp(2rem, 8vw, 5rem); 
    border-bottom: 2px solid rgb(172, 172, 172);
    gap: 40px; 
    max-width: 1400px; 
    margin: 0 auto; 
}

.preguntas-list-container h2{
    font-size: clamp(1.75rem, 3vw, 2.75rem); 
    color: #1A2E41;
    font-weight: 600;
    text-align: center;
    width: 100%;
}

.list{
    box-sizing: border-box;
    flex: 1;
    min-width: 300px;
    max-width: 500px; 
}

.list ul {
    font-family: 'Open Sans', sans-serif;
    padding-left: 1.5rem;
}

.list ul a{
    font-family: 'Open Sans', sans-serif;
    color: #3E4F5C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.list ul a:hover{
    color: #1A2E41;
    text-decoration: underline;
}

.list ul li{
    list-style: circle;
    font-size: clamp(1rem, 1.6vw, 1.375rem);
    transition: all 0.3s ease-in-out;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.list ul li:hover{
    transform: translateX(5px); /*efecto de mover en eje X*/
}

.list p{
    color: #111827;
    font-weight: 700;
    font-size: clamp(1.125rem, 1.8vw, 1.5rem);
    margin-bottom: 1rem;
}


/*PREGUNTAS INDIVIDUALES*/
.preguntas {
  padding: clamp(2rem, 6vw, 4rem); 
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-bottom: 2px solid rgb(172, 172, 172);
  max-width: 1200px; 
  margin: 0 auto; 
}


.preguntas ul,
.preguntas p {
  font-size: clamp(1rem, 1.6vw, 1.25rem); 
  color: #252C3B;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.preguntas ul {
  padding-left: 1.5rem;
}

.preguntas ul li {
  margin-bottom: 0.5rem;
}

.preguntas ul a {
  color: #111827;
  transition: all 0.3s ease-in;
  text-decoration: underline;
}

.preguntas ul a:hover {
  color: rgb(20, 88, 139);
  text-decoration: underline;
}

/* títulos de preguntas */
.preguntas h3 {
  color: #1A2E41;
  font-size: clamp(1.5rem, 2.5vw, 2.25rem); 
  font-weight: 600;
  padding-bottom: 10px;
  margin-bottom: 1rem;
  border-bottom: 2px solid #cee3ff;
}

/* MODIFCACIONES ESPECIFICOS PARA TAMAÑOS */
@media (min-width: 1921px) {
  .questions-hero {
    min-height: 50vh; /* más altura */
    padding: clamp(3rem, 12vw, 8rem);
  }
  
  .preguntas-list-container,
  .preguntas {
    max-width: 1600px; /* Ancho máximo más grande */
  }
}

@media (max-width: 768px) {
  .preguntas-list-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .list {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .intro-text {
    padding: 1.25rem;
  }
  
  .list p {
    text-align: center;
  }
  
  .preguntas-list-container {
    padding: 1.5rem;
  }
  
  .preguntas {
    padding: 1.5rem;
  }
}
/* FIN DE ESTILOS PAGINA QUESTIONS*/

/* INICIO ESTILOS DE PAGINA CENTRO DE RECURSOS ----------------------*/
html,
body {
  height: 100%;
}

/* Contenedor principal de todo el contenido */
body {
  display: flex;
  flex-direction: column;
}

/* Main o contenido principal crece para ocupar espacio */
main {
  flex: 1;
  margin-top: clamp(80px, 10vw, 130px);
  background: linear-gradient(#def1ff, white);
}

.intro-servicios {
  width: 100%;
  padding: 5% 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  color: #1a2e41;
}

.intro-servicios h1 {
  font-size: clamp(20px, 2.5vw, 30px);
}

.intro-servicios p {
  font-size: clamp(0.8rem, 1.8vw, 1rem);
}

.intro-servicios img {
  width: clamp(25px, 5vw, 35px);
}

/* SECCION DE LAS CARDS */
.recursos-cards {
  padding: clamp(1rem, 5%, 10%);
  width: 100%;
  box-sizing: border-box;
}

/* CONTENEDOR PRINCIPAL DE LAS CARDS - FLEX */
.lista-servicios.cards-space {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch; /* Para que todas tengan misma altura */
  gap: clamp(1rem, 2%, 2rem);
  width: 100%;
  margin: 0 auto;
}

/* CARD INDIVIDUAL */
.servicio-card {
  display: flex;
  flex-direction: column;
  flex: 0 1 clamp(280px, 30%, 350px); /* Más control sobre el flex */
  min-width: 280px; /* Mínimo antes de hacer wrap */
  max-width: 350px;
  min-height: clamp(350px, 40vh, 450px);
  margin: 0; /* Quitamos márgenes individuales */
  box-shadow: 0 0 clamp(5px, 1vw, 15px) rgba(0,0,0,0.3);
  border-radius: clamp(10px, 2%, 20px);
  padding: clamp(10px, 2vw, 20px);
  background-color: white;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* CONTENEDOR DE CONTENIDO DE LA CARD */
.content-card-container {
  flex: 1; /* Ocupa todo el espacio disponible */
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.5%, 12px);
  margin-top: clamp(5%, 6%, 8%);
}

.content-card-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Open Sans", sans-serif;
  font-size: clamp(12px, 1.2vw, 16px);
  color: #192b3d;
  line-height: 1.4;
  flex: 1; /* Empuja los botones hacia abajo */
}

.content-card-container li {
  margin-bottom: clamp(3px, 1%, 5px);
  padding: 2px 0;
}

/* CONTENEDOR DE IMAGEN */
.img-conteiner {
  width: 100%;
  height: clamp(120px, 20vw, 150px);
  overflow: hidden;
  border-radius: clamp(5px, 1%, 10px);
  background-color: #f0f0f0; /* Color de fondo por si no carga imagen */
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-conteiner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}

/* ELEMENTOS OCULTOS */
.servicio-card button,
.servicio-card .id-serv{
  display: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .lista-servicios.cards-space {
    justify-content: center;
  }
  
  .servicio-card {
    flex: 0 1 calc(50% - 1rem); /* 2 columnas en tablets */
    min-width: 250px;
  }
}

@media (max-width: 480px) {
  .servicio-card {
    flex: 0 1 100%; /* 1 columna en móviles */
    min-width: 280px;
  }
  
  .recursos-cards {
    padding: clamp(1rem, 3%, 5%);
  }
}
/* FIN ESTILOS DE PAGINA CENTRO DE RECURSOS ----------------------*/

/* INICIO ESTILOS DE PAGINA CENTRO DEL BLOG ----------------------*/
.blog-section {
    padding: 50px 20px;
    background-color: #f4f4f4;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 1.2em;
    color: #1A2E41;
}

.blog-card p {
    padding: 0 15px 15px;
    color: #666;
    font-size: 0.9em;
}

.view-more-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #5d9cec;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
}
/* FIN ESTILOS DE PAGINA DEL BLOG ----------------------*/

/* INICIO DE PÁGINA PSICOLOGOS PARA TI/ PSICOLOGOS UNIDOS -------------------*/

.psicologos-main {
    background-color: #F7F8F9;
    min-height: 100vh;
}

.psicologos-header {
    text-align: center;
    padding: 60px 40px 40px;
    background-color: white;
    margin: 20px;
    border-radius: 20px;
}

.header-icon {
    margin-bottom: 20px;
}

.psicologos-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #1A2E41;
    margin-bottom: 20px;
}

.psicologos-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #3E4F5C;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filters Section */
.filters-section {
    background-color: white;
    margin: 20px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filters-container {
    max-width: 1000px;
    margin: 0 auto;
}

.filter-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-field {
    flex: 1;
}

.filter-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1A2E41;
    text-transform: lowercase;
}

.filter-field select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    background-color: white;
    color: #1A2E41;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.filter-field select:focus {
    outline: none;
    border-color: #EEC767;
}

/* Search Button */
.search-button-container {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.btn-buscar {
    background-color: #EEC767;
    border: 2px solid #E0B34F;
    color: #4F3C07;
    padding: 15px 40px;
    border-radius: 25px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-buscar:hover {
    background-color: #D9AC39;
    border-color: #C89A2E;
    color: #3B2C05;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(238, 199, 103, 0.3);
}

/* Results Section */
.results-section {
    padding: 40px 20px;
}

.results-section h2 {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #1A2E41;
    margin-bottom: 40px;
}

.psychologists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.psychologists-card {
    display: block;
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.psychologists-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.psychologists-card h3 {
    font-size: 1.4rem;
    color: #1A2E41;
    margin-bottom: 10px;
}

.rating {
    margin-bottom: 20px;
}

.star {
    color: #EEC767;
    font-size: 1.2rem;
    margin: 0 2px;
}

.star:not(.filled) {
    color: #E0E0E0;
}

.profile-picture {
    margin-bottom: 20px;
}

.psychologist-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #EEC767;
}

.psychologist-info {
    text-align: left;
    margin-bottom: 25px;
}

.info-item {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
}

.info-item strong {
    color: #1A2E41;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.info-item span {
    color: #3E4F5C;
    font-size: 0.95rem;
}

.btn-ver-detalles {
    background-color: #EEC767;
    border: 2px solid #E0B34F;
    color: #4F3C07;
    padding: 12px 24px;
    border-radius: 25px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-ver-detalles:hover {
    background-color: #D9AC39;
    border-color: #C89A2E;
    transform: scale(1.02);
}

.psicologos-unidos-main {
    background-color: #FFFFFF;
    min-height: 100vh;
}

.psicologos-unidos-header {
    text-align: center; 
    padding: 60px 40px 40px;
    background-color: white;
    margin: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.psicologos-unidos-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: #1A2E41;
    margin-bottom: 20px;
}

.psicologos-unidos-header p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: #3E4F5C;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Benefits Section */
.benefits-section {
    background-color: white;
    margin: 20px;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
}

.benefits-container h2 {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #1A2E41;
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    background-color: #F7F8F9;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
}

.benefit-icon {
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.3rem;
    color: #1A2E41;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #3E4F5C;
    line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
    background-color: white;
    margin: 20px;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-container h2 {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #1A2E41;
    margin-bottom: 10px;
}

.pricing-subtitle {
    text-align: center;
    color: #3E4F5C;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background-color: #F7F8F9;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.288);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 1px solid #EEC767;
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1A2E41;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.4rem;
    color: #1A2E41;
    margin-bottom: 20px;
}

.price {
    margin-bottom: 30px;
}

.currency {
    font-size: 1.5rem;
    color: #1A2E41;
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: 800;
    color: #1A2E41;
}

.period {
    font-size: 1rem;
    color: #536069;
}

.features {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.features li {
    padding: 8px 0;
    color: #536069;
}

.btn-join {
    background-color: #1A2E41;
    border: 2px solid #1A2E41;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-join:hover {
    background-color: transparent;
    color: #1A2E41;
    transform: scale(1.02);
}

/* Registration Form */
.registration-section {
    background-color: white;
    margin: 20px;
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.registration-container {
    max-width: 800px;
    margin: 0 auto;
}

.registration-container h2 {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #1A2E41;
    margin-bottom: 20px;
}

.registration-container p {
    text-align: center;
    color: #3E4F5C;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #1A2E41;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid #F7F8F9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: 'Open Sans', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #EEC767;
}

/* Form Validation Messages */
.msg {
    display: none;
    font-size: 0.85rem;
    margin-top: 5px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.msg-error {
    background-color: #FEF6EC;
    color: #DC2626;
    border: 1px solid #f87171;
}

.msg-help {
    background-color: F7F8F9;
    color: #1A2E41;
    border: 1px solid #e5f1fc;
}

/* Show error messages when input is invalid */
.form-group input:invalid:not(:placeholder-shown)+.msg-error,
.form-group input:invalid:not(:placeholder-shown)~.msg-error {
    display: block;
}

/* Show help messages when input is valid or empty */
.form-group input:valid+.msg-help,
.form-group input:placeholder-shown+.msg-help {
    display: block;
}

/* Hide help when showing error */
.form-group input:invalid:not(:placeholder-shown)+.msg-error~.msg-help {
    display: none;
}

/* Input states */
.form-group input:invalid:not(:placeholder-shown) {
    border-color: #f87171;
    background-color: #F7F8F9;
}

.form-group input:valid:not(:placeholder-shown) {
    border-color: #A8D5BA;
    background-color: #F7F8F9;
}

/* Select validation */
.form-group select:invalid {
    border-color: #f87171;
    background-color: #F7F8F9;
}

.form-group select:valid {
    border-color: #A8D5BA;
    background-color: #F7F8F9;
}

/* Textarea validation */
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #f87171;
    background-color: #F7F8F9;
}

.form-group textarea:valid:not(:placeholder-shown) {
    border-color: #A8D5BA;
    background-color: #F7F8F9;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.btn-submit {
    background-color: #1A2E41;
    border: 2px solid #1A2E41;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 25px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.btn-submit:hover {
    background-color: transparent;
    color: #1A2E41;
    transform: scale(1.02);
}

/* Success Message */
.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    z-index: 1001;
}

.success-content h3 {
    color: #1A2E41;
    margin: 20px 0 10px;
}

.success-content p {
    color: #3E4F5C;
    line-height: 1.6;
}

/* Psychologist Modal */
.psychologist-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #1A2E41;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1002;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background-color: #EEC767;
    color: #4F3C07;
    transform: scale(1.1);
}

.modal-header {
    background: linear-gradient(135deg, #1A2E41, #394A5B);
    color: #ffffff;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.modal-photo {
    flex-shrink: 0;
}

.modal-photo .psychologist-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #EEC767;
}

.modal-info {
    flex: 1;
}

.modal-info h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.modal-rating {
    margin-bottom: 10px;
}

.modal-rating .star {
    color: #EEC767;
    font-size: 1.2rem;
    margin-right: 3px;
}

.modal-rating .star:not(.filled) {
    color: rgba(255, 255, 255, 0.3);
}

.modal-title {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.modal-body {
    padding: 30px;
}

.modal-section {
    margin-bottom: 30px;
}

.modal-section h3 {
    color: #1A2E41;
    font-size: 1.3rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #EEC767;
    padding-bottom: 8px;
}

.modal-section p {
    color: #3E4F5C;
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-section ul {
    list-style: none;
    padding: 0;
}

.modal-section li {
    color: #3E4F5C;
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.modal-section li::before {
    content: "✓";
    color: #1A2E41;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.contact-info .info-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background-color: #F7F8F9;
    border-radius: 10px;
    border-left: 4px solid #EEC767;
}

.contact-info .info-item strong {
    color: #1A2E41;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.contact-info .info-item span {
    color: #3E4F5C;
    font-size: 1rem;
}

.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-contactar {
    background-color: #A8D5BA;
    border: 2px solid #A8D5BA;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
}

.btn-contactar:hover {
    background-color: transparent;
    color: #10B981;
    transform: scale(1.02);
}

.btn-cerrar {
    background-color: #EEC767;
    border: 2px solid #EEC767;
    color: #1A2E41;
    padding: 12px 30px;
    border-radius: 25px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
}

.btn-cerrar:hover {
    background-color: #D9AC39;
    border-color: #D9AC39;
    color: #1A2E41;
    transform: scale(1.02);
}

/* Responsive Design */
@media(max-width: 900px) {
    .navbar {
        padding: 16px;
    }

    .menu-icon {
        display: flex;
    }

    .header-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        flex-direction: column;
        background-color: #A8C5DB;
        text-align: center;
        transition: height 0.5s ease;
    }

    .header-links li {
        margin: 0;
        width: 100%;
    }

    .header-links li:hover {
        background-color: #A8C5DB;
    }

    .header-links li a {
        display: block;
        font-size: 17px;
        width: 100%;
        padding: 20px;
        text-align: center;
    }

    .auth-links {
        flex-direction: column;
        gap: 10px;
        margin-left: 0;
        padding: 20px;
        border-top: 1px solid rgba(238, 199, 103, 0.3);
    }

    .btn-login,
    .btn-register {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    #menu-toogle:checked+.menu-icon+.header-links {
        height: 100vh;
    }

    .filter-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .psychologists-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }
}

@media(max-width: 1160px) {
    .header-links {
        gap: 20px;
    }
}

@media(max-width: 1086px) {
    .header-links {
        gap: 10px;
    }
}

@media(max-width: 1090px) {
    .header-links a {
        font-size: 14px;
    }
}

@media(max-width:1920px) {
    .hero-content {
        background-image: url(../images/principal-page/hero-img-1920.webp);
    }
}

@media(max-width:1280px) {
    .hero-content {
        background-image: url(../images/principal-page/hero-img-1280.webp);
    }
}

@media(max-width:1024px) {
    .hero-content {
        background-image: url(../images/principal-page/hero-img-1280.webp);
    }
}

@media(max-width:768px) {
    .hero-content {
        background-image: url(../images/principal-page/hero-img-768.webp);
    }

    h1 {
        font-size: 2.5rem;
    }

    .accessibility-toolbar {
        top: 80px;
        right: 10px;
    }

    .acc-btn {
        width: 35px;
        height: 35px;
    }
}

@media(max-width:481px) {
    .hero-content {
        background-image: url(../images/principal-page/hero-img-481.webp);
    }

    .hero-content p {
        font-size: 95%;
        text-align: center;
    }

    .psicologos-header,
    .psicologos-unidos-header {
        padding: 40px 20px 30px;
        margin: 10px;
    }

    .filters-section,
    .benefits-section,
    .pricing-section,
    .registration-section {
        margin: 10px;
        padding: 30px 20px;
    }
}

@media(max-width:320px) {
    .hero-content {
        background-image: url(../images/principal-page/hero-img-320.webp);
    }

    .hero-content p {
        font-size: 95%;
        text-align: center;
    }
}

/* Estilos para la funcionalidad de búsqueda solo con CSS */
.search-checkbox {
    display: none;
}

.initial-message {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

.initial-message h3 {
    color: #1A2E41;
    margin-bottom: 15px;
    font-size: 24px;
}

.initial-message p {
    color: #3E4F5C;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Ocultar mensaje inicial y sección de resultados por defecto */
.initial-message {
    display: block;
}

.results-section {
    display: none;
}

/* Mostrar psicólogos cuando se hace clic en buscar */
.show-psychologists .psychologists-grid {
    display: grid !important;
}

.show-psychologists .psychologist-card {
    display: block !important;
}

/* (El estilo principal de .btn-buscar ya está definido arriba en amarillo) */

/* Mensaje de resultados */
.results-message {
    background: #e5f1fc;
    border: 1px solid #A8D5BA;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

.results-message p {
    color: #3E4F5C;
    font-weight: 600;
    margin: 0;
}

/* Estilos para la integración con el backend */
.results-count {
    background-color: #e5f1fc;
    color: #3E4F5C;
    padding: 10px 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    font-weight: 600;
    border: 1px solid #A8D5BA;
}

.psychologists-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.psychologist-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.psychologist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.psychologist-image {
    text-align: center;
    margin-bottom: 15px;
}

.psychologist-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e0e0e0;
}

.psychologist-info h3 {
    color: #1A2E41;
    margin-bottom: 15px;
    font-size: 1.2em;
    text-align: center;
}

.psychologist-info p {
    margin: 8px 0;
    color: #3E4F5C;
    font-size: 0.9em;
}

.psychologist-info strong {
    color: #1A2E41;
    font-weight: 600;
}

.contact-button {
    background: linear-gradient(135deg, #1A2E41, #2c4a6b);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.contact-button:hover {
    background: linear-gradient(135deg, #2c4a6b, #1A2E41);
}

.btn-limpiar {
    background-color: #1A2E41;
    border: 2px solid #1A2E41;
    color: #FFFFFF;
    padding: 15px 40px;
    border-radius: 25px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 10px;
}

.btn-limpiar:hover {
    background-color: transparent;
    color: #1A2E41;
    transform: scale(1.05);
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f87171;
    text-align: center;
    margin: 20px 0;
}

.search-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #3E4F5C;
    font-size: 1.1em;
}

.psychologists-results {
    display: none;
    /* Oculto por defecto */
}

.psicologos-main{
    background: #FFFFFF;
}

.header-icon img{
    width: clamp(120px, 15vw, 170px);
}

/* FIN DE PÁGINA PSICOLOGOS UNIDOS/ PSICOLOGOS PARA TI*/


/* INICIO ESTILOS DE MIGAS DE PAN ----------------------*/
.migas-pan {
    display: inline-block; /* tamaño segun contenido */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: clamp(0.5rem, 1vw, 1rem);
    margin: clamp(0.5rem, 1vw, 1rem) clamp(0.5rem, 2vw, 1.5rem);
    background-color: #f5f5f5;
}

.migas-container {
    display: inline-flex; /* elementos en linea */
    align-items: center;
    gap: clamp(0.3rem, 1vw, 0.5rem);
}

.migas-pan span {
    font-weight: 400;
    font-size: clamp(12px, 1vw, 14px);
}

.migas-container a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: #1A2E41;
    font-size: clamp(14px, 1vw, 17px);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease-in-out;
}

.migas-container a:hover {
    transform: scale(1.05);
    color: #394a5b;
}
/* FIN ESTILOS DE MIGAS DE PAN ----------------------*/

/*INICIO DE ESTILOS BARRA DE ACCECIBILIDAD ----------------*/
/* Barra de herramientas simple */
.accessibility-toolbar {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(238, 199, 103, 0.3);
}

.accessibility-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.acc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #EEC767;
    border: 2px solid #E0B34F;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    color: #4F3C07;
    font-size: 1.1rem;
}

.acc-btn:hover {
    background-color: #D9AC39;
}

.acc-btn.contrast {
    background-color: #1A2E41;
    border-color: #394A5B;
    color: white;
    flex-direction: column;
    font-size: 0.8rem;
    gap: 2px;
}

.acc-btn.contrast:hover {
    background-color: #394A5B;
}

/* Modo oscuro para la barra */
body:has(#high-contrast:checked) .accessibility-toolbar {
    background: rgba(10, 10, 10, 0.95);
    border: 2px solid #EEC767;
}

body:has(#high-contrast:checked) .acc-btn {
    background: rgba(10, 10, 10, 0.9);
    border: 2px solid #EEC767;
    color: #FFFFFF;
}

body:has(#high-contrast:checked) .acc-btn:hover {
    background: rgba(238, 199, 103, 0.3);
}

body:has(#high-contrast:checked) .acc-btn.contrast {
    background: #EEC767;
    color: #000000;
}

/* Responsive */
@media (max-width: 768px) {
    .accessibility-toolbar {
        top: 80px;
        right: 10px;
        padding: 8px;
    }

    .acc-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .acc-btn.contrast {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .accessibility-toolbar {
        top: 70px;
        right: 5px;
        padding: 6px;
    }

    .acc-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .acc-btn.contrast {
        font-size: 0.6rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/*FIN DE ESTILOS BARRA DE ACCECIBILIDAD ----------------*/




/*FIN DE ESTILOS BARRA DE ACCECIBILIDAD ----------------*/


/*Inicio estilos formulario PQR*/

/* Contenedor principal de la sección */
        .container-articulos {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            padding: 2rem;
            max-width: 1200px;
            margin: auto;
        }

        /* Contenedor de la información (lado izquierdo) */
        .contenedor-informacion {
            padding: 1.5rem;
            text-align: center;
        }

        /* Contenedor del formulario (lado derecho) */
        .container-formulario {
            display: flex;
            justify-content: center;
            width: 100%;
        }

        .formulario {
            background-color: white;
            padding: 2.5rem;
            border-radius: 1rem;
            box-shadow: 0 10px 15px -3px #5b21b6, 0 4px 6px -2px #5b21b6;
            max-width: 40rem;
            width: 100%;
        }
        
        /* Títulos y textos */
        .titulo-principal {
            font-size: 2.25rem;
            font-weight: bold;
            margin-bottom: 1rem;
            line-height: 1.2;
        }

        .color-principal {
            color: #5b21b6;
        }
        
        .texto-primario {
            font-size: 1rem;
            line-height: 1.5;
            color: #374151;
            margin-bottom: 1rem;
        }

        .texto-secundario {
            font-size: 0.875rem;
            color: #4b5563;
        }

        /* Campos del formulario */
        .form-input-group {
            margin-bottom: 1.5rem;
        }
        
        .form-label {
            display: block;
            font-weight: 500;
            margin-bottom: 0.5rem;
            color: #374151;
        }
        
        .form-input, .form-textarea {
            width: 100%;
            padding: 0.75rem;
            border: 1px solid #d1d5da;
            border-radius: 0.5rem;
            box-sizing: border-box;
            transition: border-color 0.2s, box-shadow 0.2s;
        }

        .form-input::placeholder, .form-textarea::placeholder {
            color: #9ca3af;
        }

        .form-input:focus, .form-textarea:focus {
            border-color: #5b21b6;
            outline: none;
            box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.1);
        }
        
        /* Mensajes de error */
        .error-message {
            color: #dc2626;
            font-size: 0.875rem;
            margin-top: 0.5rem;
            display: block;
            opacity: 0;
            transition: opacity 0.2s;
        }
        .error-message.visible {
            opacity: 1;
        }

        /* Botón */
        .form-button {
            width: 100%;
            padding: 1rem;
            background-color: #5b21b6;
            color: white;
            border: none;
            border-radius: 0.5rem;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.2s, transform 0.2s;
        }
        
        .form-button:hover {
            background-color: #4c1d95;
            transform: translateY(-2px);
        }

        /* Responsive */
        @media (min-width: 768px) {
            .container-articulos {
                flex-direction: row;
                gap: 4rem;
                align-items: center;
            }
            .contenedor-informacion {
                width: 50%;
                text-align: left;
                align-items: flex-start;
            }
            .container-formulario {
                width: 50%;
            }
            .titulo-principal {
                text-align: left;
            }
        }
        @media(min-width: 360px){
            .imagen-triangle-purple img{
                margin-top: 20px;
                width: 70%;
            }
        }

.boton_psicologos{
    display: inline-block;
    background-color: #EEC767;
    border: 2px solid #E0B34F;
    color: #4F3C07;
    padding: 0.8rem 1.5rem;
    margin: 20px;
    border-radius: 25px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s  ease-out;

}