/* -----------------------------------------------------------------
   HUB EXPERTOS MIDO – CSS COMPLETO DEPURADO
   (incluye expansión de #informacion y grid de tarjetas)
------------------------------------------------------------------*/

/* ---------------------------------------------------------------
   1. TIPOGRAFÍA Y RESET
------------------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: 0;
    outline: 0;
    scroll-behavior: smooth;
    font-family: 'Open Sans', sans-serif;
}

/* ---------------------------------------------------------------
   2. VARIABLES
------------------------------------------------------------------*/
:root {
    --bg-color: #fdfdfd;
    --text-color: #fdfdfd;
    --main-color: #754ef9;
    --white-color: #fdfdfd;
    --shadow-color: rgba(0, 0, 0, .2);
}

/* ---------------------------------------------------------------
   3. BASE
------------------------------------------------------------------*/
html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

section {
    min-height: 100vh;
    padding: 10rem 7% 2rem;
}

/* ---------------------------------------------------------------
   4. HEADER / NAV
------------------------------------------------------------------*/
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fdfdfd;
    z-index: 1000;
    padding: 2rem;
}

.logo {
    max-width: 15%;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-list a {
    color: #5a3e3e;
    font-size: 1.6rem;
    font-weight: 600;
}

.abrir-menu,
.cerrar-menu {
    display: none;
}

@media(max-width:1024px) {

    .abrir-menu,
    .cerrar-menu {
        display: block;
        font-size: 3rem;
        background: transparent;
        cursor: pointer;
        color: #5a3e3e;
    }

    .nav {
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 1rem;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        background: #fdfdfd;
        padding: 2rem;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s;
    }

    .nav.visible {
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: end;
    }
}

/* ---------------------------------------------------------------
   5. HOME
------------------------------------------------------------------*/
.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #311754;
}

.contenido-home {
    flex: 3;
    max-width: 70rem;
}

.contenido-home h1 {
    font-size: 7rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1;
}

.contenido-home .texto-negrita {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contenido-home .texto-normal {
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.6;
}

.contenedor-comunidad {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.imagen-comunidad {
    max-width: 40%;
    height: auto;
}

.imagen-comunidad2 {
    border-radius: 50%;
    object-fit: cover;
    width: 70%;
    height: auto;
    margin: 0 auto;
}

/* ---------------------------------------------------------------
   7. INFORMACIÓN – EXPANDIDA 100 % + GRID DE TARJETAS
------------------------------------------------------------------*/
#informacion,
.informacion {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
    background: #f4f4f9;
}

.contenido-informacion {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    max-width: none;
    overflow-y: auto;
}

.cards-slider,
.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.cards-slider .card,
.cards-wrapper .card {
    scroll-snap-align: start;
}

@media(max-width:1024px) {

    .cards-slider,
    .cards-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    }
}

@media(max-width:768px) {

    .cards-slider,
    .cards-wrapper {
        grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    }
}

#contenido-iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* ---------------------------------------------------------------
   8. PSIC
------------------------------------------------------------------*/
.psic {
    display: flex;
    align-items: start;
    background: #fdfdfd;
}

.psic-imagen {
    margin-top: 5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.psic-texto {
    flex: 2;
    margin-left: 7rem;
}

.imagen-psic {
    max-width: 100%;
    height: auto;
}

.imagen-psic2 {
    border-radius: 50%;
    object-fit: cover;
    width: 90%;
    height: auto;
    margin: auto;
}

.psic-texto h2 {
    color: #311754;
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1;
}

.psic-texto p {
    color: #311754;
    margin-top: 50px;
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.6;
}

/* ---------------------------------------------------------------
   9. MIDO
------------------------------------------------------------------*/
.mido {
    background: #311754;
}

.mido-contenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.seccion-mido-img {
    object-fit: cover;
    width: 20%;
    height: auto;
    margin: auto;
}

.mido h2 {
    color: #fdfdfd;
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1;
}

.mido-cajas {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.mido-caja {
    flex: 1 1 30%;
    max-width: 30%;
    min-height: 45rem;
    margin: 1rem;
    padding: 2rem;
    background: #fdfdfd;
    border-radius: 2rem;
    box-shadow: 0 .1rem .5rem var(--shadow-color);
    text-align: center;
    border-top: .6rem solid var(--main-color);
    border-bottom: .6rem solid var(--main-color);
}

.imagen-mido {
    max-width: 50%;
    border: 0.2rem solid #311754;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 50%;
}

.texto-mido {
    color: #1A003C;
    font-size: 2rem;
}

.mido-caja p {
    text-align: left;
}

/* ---------------------------------------------------------------
   10. CERTIFICACIÓN
------------------------------------------------------------------*/
.certificacion {
    background: #fdfdfd;
    align-items: start;
}

.certificado-contenido {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.certificado-contenido h2 {
    color: #311754;
    font-size: 5.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1;
}

.seccion-certificacion-img {
    object-fit: cover;
    width: 15%;
    height: auto;
}

.certificacion-apartados {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 2rem;
}

.apartado-izquierdo {
    flex: 3;
}

.apartado-derecho {
    flex: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.apartado-izquierdo h3 {
    color: #311754;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 3.2rem;
    line-height: 1;
}

.texto-normal-certificacion {
    color: #311754;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.6;
}

.texto-negrita-certificacion {
    color: #311754;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.6;
}

.imagen-certificacion {
    display: block;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    height: auto;
}

.boton-certificacion {
    background: #1A003C;
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5rem;
    font-size: 1.8rem;
    cursor: pointer;
    text-decoration: underline;
    margin: 1rem auto 0;
    width: 50%;
    text-align: center;
}

/* ---------------------------------------------------------------
   11. CAPACITACIÓN
------------------------------------------------------------------*/
.capacitacion {
    background: #311754;
    align-items: start;
}

.capacitacion-contenido {
    display: flex;
    align-items: start;
    justify-content: center;
    gap: 20px;
}

.capacitacion-contenido h2 {
    color: #fdfdfd;
    text-align: center;
    font-size: 5.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.capacitacion-apartados {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 2rem;
}

.apartado-izquierdo-capacitacion {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.apartado-derecho-capacitacion {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 5rem;
}

.apartado-derecho-capacitacion h3 {
    color: #fdfdfd;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 3.2rem;
    line-height: 1;
}

.texto-normal-capacitacion {
    color: #fdfdfd;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.6;
}

.texto-negrita-capacitacion {
    color: #fdfdfd;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.6;
}

.imagen-capacitacion {
    display: block;
    margin: 0 auto;
    max-width: 50%;
    height: auto;
    border-radius: 50%;
}

.boton-capacitacion {
    background: #F6C6EC;
    color: #311754;
    font-weight: 900;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5rem;
    font-size: 1.8rem;
    cursor: pointer;
    text-decoration: none;
    margin: 1rem auto 0;
    width: auto;
    max-width: 55%;
    display: block;
    text-align: center;
}

/* ---------------------------------------------------------------
   12. SALUD INTELIGENTE
------------------------------------------------------------------*/
.saludinteligente {
    display: flex;
    align-items: flex-start;
    background: #fdfdfd;
}

.saludinteligente-imagen {
    flex: 1.3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin-top: 4.5rem;
    gap: 20px;
}

.contenedor-imagenes-saludinteligente {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 2rem;
}

.texto-saludinteligente {
    flex: 2;
    padding: 20px;
}

.imagen-saludinteligente {
    max-width: 60%;
    height: auto;
}

.imagen-saludinteligente2 {
    object-fit: cover;
    width: 75%;
    height: auto;
    margin: auto;
}

.boton-saludinteligente {
    background: #F6C6EC;
    color: #311754;
    font-weight: 900;
    border-radius: 5rem;
    font-size: 1.8rem;
    cursor: pointer;
    text-decoration: none;
    margin: -2.3rem auto 0;
    width: 60%;
    padding: 1rem 1rem;
    display: block;
    text-align: center;
}

.texto-saludinteligente h2 {
    color: #311754;
    font-size: 6rem;
    text-align: center;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1;
}

.imagen-apple-store,
.imagen-play-store {
    width: 100%;
    max-width: 80%;
    height: auto;
    margin-top: 20px;
}

.texto-normal-saludinteligente {
    color: #311754;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.5;
    margin-top: 5rem;
}

.texto-negrita-saludinteligente {
    color: #311754;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.5;
    margin-top: 4rem;
}

/* ---------------------------------------------------------------
   13. SOPORTE
------------------------------------------------------------------*/
.soporte {
    background: #311754;
    align-items: start;
    padding-top: 0;
}

.soporte-contenido {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 0;
}

.titulo-soporte {
    color: #fdfdfd;
    font-size: 5.5rem;
    font-weight: 900;
    margin-top: 0;
    line-height: 1;
}

.seccion-soporte-img {
    object-fit: cover;
    margin-top: 0;
    width: 25%;
    height: auto;
}

.soporte-apartados {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.soporte-izquierdo {
    flex: 1;
}

.soporte-derecho {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    margin-top: -10rem;
    align-items: center;
    justify-content: center;
}

.texto-normal-soporte {
    color: #fdfdfd;
    font-size: 1.8rem;
    font-weight: 300;
    line-height: 1.6;
}

.texto-negrita-soporte {
    color: #fdfdfd;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.6;
}

.imagen-soporte {
    display: block;
    margin: 0 auto;
    max-width: 60%;
    height: auto;
}

.boton-soporte {
    background: #F6C6EC;
    color: #1A003C;
    font-weight: 900;
    padding: 1rem 2rem;
    border-radius: 5rem;
    font-size: 1.8rem;
    cursor: pointer;
    margin: -10rem auto 0;
    width: 70%;
    text-align: center;
    text-decoration: underline;
}

/* ---------------------------------------------------------------
   14. PREGUNTAS FRECUENTES
------------------------------------------------------------------*/
.preguntas {
    background: #fdfdfd;
    display: flex;
}

.preguntas-apartados {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.preguntas-izquierdo {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    margin-top: -10rem;
    align-items: center;
    justify-content: center;
}

.preguntas-derecho {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 9rem;
}

.preguntas-derecho h3 {
    color: #311754;
    font-size: 5.5rem;
    font-weight: 900;
    margin-bottom: 3.2rem;
    line-height: 1;
}

.texto-normal-preguntas {
    color: #311754;
    font-size: 2.2rem;
    font-weight: 300;
    line-height: 1.6;
}

.texto-negrita-preguntas {
    color: #311754;
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1.6;
}

.imagen-preguntas {
    display: block;
    margin: 0 auto;
    max-width: 60%;
    height: auto;
    border-radius: 50%;
}

/* Botón FAQs */
.btn-faq {
    background: #311754;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 25px;
    margin: 20px 0;
    display: inline-block;
    text-align: center;
    transition: background .3s;
    text-decoration: none;
}

.btn-faq:hover {
    background: #411e6e;
}

/* ---------------------------------------------------------------
   15. CONTACTO
------------------------------------------------------------------*/
.contacto {
    background: #311754;
    padding: 2rem;
}

.contenedor-contacto {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    margin-top: 5rem;
    padding: 2rem;
}

.contenedor-contacto h2 {
    font-size: 5.5rem;
    color: #fdfdfd;
    margin-bottom: 1rem;
}

.contenedor-contacto p {
    font-size: 2.2rem;
    color: #fdfdfd;
    margin: 0 25rem 2rem;
}

.boton-contacto {
    background: #F6C6EC;
    color: #1A003C;
    border: none;
    width: 20%;
    margin: 5rem auto 0;
    padding: 1rem 2rem;
    border-radius: 5rem;
    font-size: 2.2rem;
    text-decoration: none;
    cursor: pointer;
}

.imagen-desarrollado {
    max-width: 40%;
    height: auto;
    margin-top: 5rem;
}

/* ---------------------------------------------------------------
   16. MEDIA QUERIES PRINCIPALES
------------------------------------------------------------------*/
@media(max-width:1200px) {
    .contenido-home h1 {
        font-size: 5rem;
    }

    .contenido-home .texto-negrita {
        font-size: 2rem;
    }

    .imagen-comunidad {
        max-width: 40%;
    }

    .imagen-comunidad2 {
        width: 80%;
        margin-top: -2rem;
    }

    .imagen-psic {
        max-width: 80%;
    }

    .psic-texto h2 {
        font-size: 3.5rem;
    }

    .psic-texto p {
        font-size: 1.8rem;
    }

    .mido h2 {
        font-size: 3.5rem;
    }

    .texto-mido {
        font-size: 1.8rem;
    }

    .certificado-contenido h2 {
        font-size: 4rem;
    }

    .capacitacion-contenido h2 {
        font-size: 4rem;
    }

    .texto-saludinteligente h2 {
        font-size: 4.5rem;
    }

    .titulo-soporte {
        font-size: 4rem;
    }

    .preguntas-derecho h3 {
        font-size: 4.9rem;
    }

    .contenedor-contacto h2 {
        font-size: 4.5rem;
    }
}

@media(max-width:1024px) {
    .home {
        flex-direction: column;
        align-items: center;
    }

    .contenido-home h1 {
        font-size: 3rem;
    }

    .contenido-home .texto-normal,
    .contenido-home .texto-negrita {
        font-size: 2rem;
    }

    .imagen-comunidad {
        max-width: 60%;
    }

    .imagen-comunidad2 {
        width: 90%;
        margin-top: -2rem;
    }

    .abrir-menu,
    .cerrar-menu {
        display: block;
    }

    /* Ajustes para columnas -> filas en varias secciones */
    .psic,
    .capacitacion,
    .certificacion,
    .saludinteligente,
    .soporte,
    .preguntas {
        flex-direction: column;
        align-items: center;
    }

    .certificado-contenido,
    .capacitacion-contenido,
    .soporte-contenido,
    .soporte-apartados,
    .certificacion-apartados,
    .capacitacion-apartados,
    .preguntas-apartados {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .mido-cajas {
        gap: .5rem;
    }

    .mido-caja {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 1rem 0;
    }

    .imagen-certificacion {
        max-width: 30%;
    }

    .boton-certificacion {
        width: 40%;
    }

    .imagen-capacitacion {
        max-width: 40%;
    }

    .boton-capacitacion {
        max-width: 55%;
    }

    .boton-saludinteligente {
        max-width: 35%;
    }

    .boton-soporte {
        max-width: 50%;
    }

    .boton-contacto {
        width: 30%;
    }
}

@media(max-width:790px) {
    .contenido-home h1 {
        font-size: 2.5rem;
        margin-top: 3rem;
    }

    .contenido-home .texto-normal,
    .contenido-home .texto-negrita {
        font-size: 1.5rem;
    }

    .imagen-psic {
        margin-top: -10rem;
    }

    .psic-texto h2 {
        font-size: 3.5rem;
        margin-top: 2rem;
    }

    .psic-texto p {
        font-size: 2rem;
    }

    .mido-caja {
        padding: 1.5rem;
        min-height: auto;
    }

    .imagen-mido {
        max-width: 80%;
    }

    .texto-mido {
        font-size: 1.4rem;
    }

    .boton-certificacion {
        width: 50%;
    }

    .boton-capacitacion {
        max-width: 65%;
    }

    .boton-saludinteligente {
        max-width: 55%;
    }

    .boton-soporte {
        max-width: 70%;
    }

    .boton-contacto {
        width: 60%;
    }
}

@media(max-width:480px) {
    .contenido-home h1 {
        font-size: 3rem;
        margin-top: 5.5rem;
    }

    .contenido-home .texto-normal,
    .contenido-home .texto-negrita {
        font-size: 2rem;
    }

    .imagen-comunidad {
        max-width: 40%;
    }

    .imagen_comunidad2 {
        width: 60%;
    }

    .psic-texto h2 {
        font-size: 3.2rem;
        margin-top: 1.8rem;
    }

    .psic-texto p {
        font-size: 1.5rem;
    }

    .mido-cajas {
        flex-direction: column;
        align-items: center;
    }

    .texto-mido {
        font-size: 1.1rem;
    }

    .boton-certificacion {
        width: 70%;
    }

    .boton-capacitacion {
        max-width: 75%;
    }

    .boton-saludinteligente {
        max-width: 80%;
    }

    .boton-soporte {
        max-width: 80%;
    }

    .boton-contacto {
        width: 60%;
    }
}

/* -----------------------------------------------------------------
   FIN DEL CSS
------------------------------------------------------------------*/