@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');

*{
box-sizing: border-box;
margin: 0;
padding: 0;
border: 0;
}

body {
    background-color: #245194;
}

.input-ms, .campo-input, .opcion-radio {
    font-family: 'Inter', sans-serif !important;
}

/*ENCABEZADO*/
header {
    padding: 20px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #245194;
}

body.inicio-modoseguro header {
    background-color: transparent;
    box-shadow: none;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.ppal-btn {
    margin-left: auto;
}

.ms-encabezado {
    display: flex;
    align-items: left;
    gap: 15px;
}

.logo-ms {
    width: 170px;
    height: auto;
    object-fit: contain;
    opacity: 1;
}

.logo-texto {
    font-family: 'Audiowide';
    font-size: 16px;
    font-weight: bolder;
    text-transform: uppercase;
    color: #ffffff;
}

@media (width >= 1024px) {

    body {
        display: block;
        min-height: 100vh;
        width: 100%;
        overflow-y: auto;
    }

    header {
        position: sticky !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 80px;
        z-index: 99999;
        background-color: #245194;
    }

    body.inicio-modoseguro header {
        background-color: transparent;
    }

    .pantalla-inicio,
    .pantalla-quienessomos,
    .pantalla-login,
    .comunidad-main,
    .perfil-main,
    .multimedia-main,
    .resultado-main,
    .contenido-que-hacer {
        margin-top: 10px;
        height: auto;
        min-height: calc(100vh - 80px);
    }

    body.inicio-modoseguro .pantalla-inicio {
        margin-top: 0;
        padding-top: 80px;
    }
}

/*MENU DESPLEGABLE*/
#menu-desplegable {
    display: none;
}

.hamburguesa-btn {
    width: 44px;
    height: auto;
}

.encabezado-der {
    /*OCULTA EL MENÚ*/
    position: fixed;
    top: 0;
    right: 0;
    width: 75%;
    height: 100vh;
    background-color: #FFF1FF;
    border-radius: 30px 0 0 30px;
    z-index: 200;
    padding: 24px 20px 40px 20px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /*TRANSICIÓN PARA QUE APAREZCA*/
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.4s ease, opacity 0.3s ease;
}

#menu-desplegable:checked ~ .encabezado-der {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.cruz-btn {
    align-self: flex-end;
    width: 44px;
    height: auto;
}

/*USUARIO Y AVATAR*/
.perfil-usuario-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.usuario-avatar {
    width: 80px;
    height: auto;
}

.usuario-nombre {
    font-size: 20px;
    color: #49769F;
    font-weight: bold;
    text-decoration: none;
}

.usuario-nombre:hover {
    text-decoration: underline;
}

.menu-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 20px;
}

.menu-footer-contenedor {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
    padding-top: 250px;
}

.cerrar-sesion-btn {
    font-family: 'Inter', sans-serif;
    color: #4371A3;
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
}

.logo-ms-menu {
    width: 20px;              
    height: auto;
    object-fit: contain;
}

.menu-footer p {
    font-family: 'Audiowide', sans-serif; 
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase; 
    color: #49769F;           
}

/*LINKS A PAGINAS*/

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 225px;
    list-style-type: none;
}

.menu-btn {
    display: block;
    width: 100%;
    background-color: #ffffff;
    color: #49769F;
    text-decoration: none;
    text-align: center;
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

body.inicio-modoseguro .menu-links li:nth-child(1) .menu-btn,
body.perfil .menu-links li:nth-child(2) .menu-btn,
body.comunidad .menu-links li:nth-child(3) .menu-btn,
body.multimedia .menu-links li:nth-child(4) .menu-btn {
    background-color: #72419a;
    color: #ffffff;
}

.menu-btn:hover { 
    background-color: #DBB5EE; 
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
} 

.menu-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/*PANEL EMERGENCIA*/
#panel-emergencia {
    display: none;
}

.carita-flotante {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: auto;
    z-index: 50;
}

.cuadrado-flotante {
    /*OCULTA EL MENÚ*/
    position: fixed;
    bottom: 0;
    right: 0;
    width: 75%;
    max-width: 320px;
    height: 300px;
    background-color: #FFF1FF;
    border-radius: 30px 0 0 30px;
    padding: 30px 30px;
  
    display: flex;
    flex-direction: column;
    z-index: 150;

    /*TRANSICIÓN PARA QUE APAREZCA*/
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

#panel-emergencia:checked ~ .cuadrado-flotante {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.cuadrado-flotante h3 {
    color: #49769F;
    font-size: 25px;
    font-weight: bold;
    line-height: 1.2;
    margin: 0 0 15px 0;
    text-align: left;
}

.cuadrado-flotante p {
    color: #49769F;
    font-size: 20px;
    line-height: 1.5;
    text-align: left;
}

.contenedor-inferior {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-top: auto;
}

.recursos-btn {
    flex: 1;
    height: 44px;
    background-color: #ffffff;
    box-shadow: 0 3px 0px #49769F;
    color: #49769F;
    border-radius: 22px;
    font-size: 20px;
    font-weight: bold;
}

.cuadrado-flotante .cruz-panel {
    position: static;
    width: 44px;
    height: 44px;

    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/*FOOTER*/

footer {
    width: 100%;
    padding: 24px 20px;
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    box-sizing: border-box;
    margin-top: 0 !important;
    position: relative;
    z-index: 10;
}

footer p {
    color: #ffffff;
    opacity: 0.6;
    font-size: 11px;
    line-height: 1.5;
    max-width: 900px;
    margin: 0 auto;
}


/*PANTALLA DE INICIO*/

.inicio-modoseguro {
    width: 100vw;
    min-height: 100vh;
    position: relative;

    font-family: "Inter", sans-serif;
    background-color: #49769F;
    color: #ffffff;
}

.inicio-modoseguro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imagenes/msfondo.gif');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.5;              
    z-index: -1;
}

body {
    font-family: "Inter", sans-serif;
}

.pantalla-inicio {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding-bottom: 40px;
}

.contenido-ppal {
    margin-top: 20px;
    margin-bottom: 30px;
}

.titulo-ppal {
    font-family: 'Audiowide', sans-serif;
    font-size: 35px;
    text-transform: uppercase;
}

.subtitulo {
    font-family: 'inter', sans-serif;
    font-size: 16px;
    font-weight: bold;
    opacity: 0.75;
    margin-top: 6px;
}

.estadisticas-imagen {
    width: 80%;
    margin-bottom: 25px;
}

.info-estadisticas {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 50px;
}

.acoso-lista {
    list-style: none;
    display: flex;
    gap: 15px;
}

.acoso-lista li {
    font-size: 12px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.circulo {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.escolar { background-color: #DBB5EE; }
.laboral { background-color: #B57EDC; }
.callejero { background-color: #7E4CA5; }
.ciberacoso { background-color: #4C1C72; }

.acoso-lista li strong {
    font-size: 16px;
    font-weight: bold;
    opacity: 50%;
}

/*BOTONES*/
.ms-botones {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 260px;
    margin-bottom: 18px;
}

.ingresar-btn {
    width: 100%;
    height: 48px;
    background-color: #FFE3D8;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    border-bottom: 4px solid #D6BCB2; 
    padding: 0 20px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.ingresar-btn a {
    color: #094174;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    align-items: center;
}

.ingresar-btn:hover { 
    background-color: #ffffff; 
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
} 

.ingresar-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-icono {
    width: 22px;
    height: auto;
    object-fit: contain;
    margin-right: 15px;
    filter: brightness(0) saturate(100%) 
    invert(19%) sepia(50%) saturate(2227%) hue-rotate(201deg) brightness(92%) contrast(101%);
}

.ingresar-btn span {
    color: #094174;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    margin: 0 auto;
}

/*ULTIMOS RECURSOS*/
.tarjeta-recursos {
    width: 100%;
    max-width: 350px;
    background-color: #DBB5EE;
    border-radius: 25px;
    padding: 20px 22px;
    text-align: left;
    margin-bottom: 40px;
    margin-top: 20px;
}

.recursos-titulo {
    font-family: 'Inter', sans-serif;
    color: #000000;
    opacity: 0.5;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 10px;
}

.recurso-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    cursor: pointer;
}

.recurso-item:hover {
    padding-left: 6px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.recurso-item:last-of-type {
    border-bottom: none;
}

.recurso-icono {
    width: 20px;
    height: auto;
    object-fit: contain;
    margin-right: 14px;
    filter: brightness(0) saturate(100%);
    opacity: 0.5;
    transition: all 0.25s ease;
}

.recurso-texto {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    opacity: 0.5;
    transition: all 0.25s ease;
}

.recurso-flecha {
    margin-left: auto;
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    opacity: 0.5;
    transition: all 0.25s ease;
}

@media (width >= 768px) and (width < 1024px) {
    
    .inicio-modoseguro {
        height: auto;
        max-height: none;
        overflow-y: scroll;
        overflow-x: hidden;
    }

    main {
        height: auto;
        overflow: visible;
    }

    .pantalla-inicio {
        position: relative;
        top: 0;
        margin-top: 10px;
        display: grid;
        grid-template-columns: 1fr;
        justify-content: center;
        align-items: start;
        padding: 20px 24px 80px 24px;
        gap: 24px 0px;
        
        height: auto;           
        min-height: calc(100vh - 90px); 
        overflow: visible;
        
        background-size: cover;        
        background-position: center top; 
        background-repeat: repeat-y;
        background-attachment: scroll;  
    }
    
    .contenido-ppal {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
        margin: 10px 0;
    }

    .titulo-ppal {
        font-size: 50px;
    }

    .subtitulo {
        font-size: 20px;
    }

    .info-estadisticas {
        grid-column: 1;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-bottom: 20px;
        justify-self: center;
    }

    .estadisticas-imagen {
        max-width: 400px;
        width: 100%;
        margin-bottom: 16px;
    }

    .acoso-lista {
        max-width: 400px;
        gap: 12px 24px;
        display: flex;
        justify-content: center;
    }

    .acoso-lista li {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .acoso-lista p {
        font-size: 18px;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

    .ms-botones {
        grid-column: 1; 
        grid-row: 3;
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 340px;
        margin: 0 0 10px 0;
        justify-self: center;
    }

    .ingresar-btn {
        width: 100%;
        max-width: 100%;
        height: 48px;
    }

    .ingresar-btn span {
        font-size: 20px;
    }

    .tarjeta-recursos {
        grid-column: 1; 
        grid-row: 4;
        width: 100%;
        max-width: 340px;
        margin: 0;
        justify-self: center;
    }
}

@media (width >= 1024px) {

    .cruz-btn, 
    .menu-footer-contenedor,
    .menu-footer {
        display: none;
    }

    header {
        padding: 0 20px;
        height: 80px;
        display: flex;
        align-items: center;
        position: relative;
    }
    
    .hamburguesa-btn {
        display: none;
    }
    
    nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        height: 100%;
        position: static;
    }

    .encabezado-der {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background-color: transparent;
        padding: 0 40px 0 0;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        transition: none;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .menu-links {
        flex-direction: row;
        gap: 15px;
        width: auto;
        order: 1;
    }

    .menu-btn {
        width: auto;
        padding: 8px 18px;
        font-size: 16px;
        border-radius: 15px;
    }

    .perfil-usuario-menu {
        display: flex; 
        flex-direction: row-reverse;
        align-items: center;
        gap: 12px;
        margin: 0;
        order: 2; 
    }

    .usuario-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }

    .usuario-nombre {
        font-size: 16px;
        color: #ffffff;
        opacity: 80%;
        margin: 0;
    }

    body.inicio-modoseguro {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        height: auto;
        overflow-y: auto;
    }

    .pantalla-inicio {
        position: relative;
        width: 100%;
        max-width: 960px;
        margin: 0 auto;
        height: 600px; 
        display: block;
        flex-grow: 1;
    }
    .contenido-ppal {
        position: absolute;
        top: 15%;
        right: 0;
        left: auto;
        width: 460px;
        text-align: left;
        margin: 0;
    }

    .titulo-ppal {
        font-size: 40px;
        margin-left: 15px;
    }

    .subtitulo {
        font-size: 20px;
        margin-left: 15px;

    }

    .ms-botones {
        position: absolute;
        top: calc(15% + 150px);
        right: 0;
        left: auto;
        margin: 0;
        width: 450px;
        max-width: 450px;
        display: flex;
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
    }
    
    .ingresar-btn {
        width: auto;
        min-width: 165px;
        max-width: 240px;
        flex-shrink: 0;
    }

    .ingresar-btn span {
        font-size: 20px;
        white-space: nowrap;
    }

    .tarjeta-recursos {
        position: absolute;
        top: calc(15% + 230px);
        right: 0;
        left: auto;
        width: 450px;
        margin: 0;
        max-width: 100%;
    }

    .recurso-titulo {
        font-size: 20px;
    }

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

    .info-estadisticas {
        position: absolute;
        top: calc(15% - 30px);
        left: 0;
        right: auto;
        width: 100%;
        max-width: 460px;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .estadisticas-imagen {
        max-width: 400px;
        width: 100%;
        margin-bottom: 20px;
    }

    .acoso-lista {
        max-width: 420px;
        gap: 15px 30px;
    }
    
.carita-flotante {
    margin-bottom: 80px;
}

.cuadrado-flotante {
    margin-bottom: 80px;
}

    footer {
        position: relative;
        width: 100%;
        margin-top: 40px;
        background-color: rgba(0, 0, 0, 0.15);
        padding: 24px 20px;
        z-index: 10;
    }
}

/*PANTALLA DE QUIENES SOMOS*/
.pantalla-quienessomos {
    height: auto;
    background-color: #ffffff;
    border-radius: 40px 40px 0 0;
    padding: 60px 24px 30px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.08);
    overflow-y: auto;             
    overflow-x: hidden;
    position: relative;
}

.pantalla-quienessomos::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url('../imagenes/msfondodos.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.25; 

    z-index: 0;
}

.pantalla-quienessomos .informacion,
.pantalla-quienessomos .parrafo-info,
.pantalla-quienessomos .reseñas,
.pantalla-quienessomos .ms-boton {
    position: relative;
    z-index: 1;
}

.informacion {
    text-align: center;
    margin-bottom: 25px;
}

.personas-img {
    width: 400px;
    height: auto;
    object-fit: contain;
}

.titulo-quienessomos {
    color: #7E4CA5;
    font-size: 30px;
    font-weight: 300;
    font-family: 'Audiowide';
}

.subtitulo-quienessomos {
    color: #B57EDC;
    font-size: 16px;
    font-weight: bold;
    margin-top: 4px;
}

.parrafo-info {
    border-left: 3px solid #49769F;
    padding-left: 16px;
    text-align: left;
    max-width: 460px;
    margin-bottom: 35px;
}

.parrafo-info p {
    color: #49769F;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 14px;
}

.parrafo-info p:last-child {
    margin-bottom: 0;
}

.subtitulo-reseñas {
    font-size: 20px;
    color: #B57EDC;
    text-align: center;
}

.reseñas {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 320px;
    margin-bottom: 35px;
}

.tarjeta-reseña {
    background-color: rgba(189, 216, 233, 0.5);    border-radius: 20px;
    padding: 20px;
    min-width: 100%;
    text-align: left;
}

.perfil-reseña {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.avatar-reseña {
    width: 48px;
    height: auto;
    border-radius: 50%;
}

.datos-usuario h3 {
    font-size: 14px;
    color: #000000;
    opacity: 75%;
}

.antiguedad {
    font-size: 12px;
    color: #000000;
    opacity: 50%;
}

.calificacion-tiempo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.estrellas {
    font-size: 12.5px;
}

.tiempo-publicacion {
    font-size: 11px;
    color: #000000;
    opacity: 50%;
}

.texto-reseña {
    font-size: 12px;
    color: #000000;
    line-height: 1.5;
    font-weight: 400;
    opacity: 75%;
}

.ms-boton {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.inicio-btn {
    width: 100%;
    max-width: 250px;
    height: 50px;
    background-color: #7E4CA5;
    border-radius: 26px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.inicio-btn a {
    color: #FFE3D8;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.inicio-btn:hover { 
    background-color: #a578c8;
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
} 

.inicio-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

@media (width >= 768px) and (width < 1024px) {
    
   .pantalla-quienessomos {
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: #ffffff;
        border-radius: 40px 40px 0 0;
        padding: 50px 30px;
        margin: 0 auto;
    }

    .informacion {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 35px;
        width: 100%;
    }

    .personas-img {
        width: 400px;
        height: auto;
        margin-bottom: 25px;
    }

    .titulo-quienessomos {
        color: #7E4CA5;
        font-size: 40px;
        text-align: center;
    }

    .subtitulo-quienessomos {
        color: #B57EDC;
        font-size: 20px;
        text-align: center;
        margin-top: 4px;
    }

    .parrafo-info {
        border-left: 3px solid #49769F;
        padding-left: 20px;
        max-width: 800px;
        width: 100%;
        margin: 0 auto 40px auto;
    }

    .parrafo-info p {
        color: #49769F;
        font-size: 16px;
        line-height: 1.5;
        margin-bottom: 14px;
    }

    .subtitulo-reseñas {
        color: #B57EDC;
        font-size: 22px;
        text-align: center;
        margin-bottom: 35px;
        width: 100%;
        column-span: all;
    }

    .reseñas {
        display: block;
        column-count: 2;
        column-gap: 20px;
        width: 100%;
        max-width: 800px;
        margin: 0 auto 40px auto;
    }

    .tarjeta-reseña {
        background-color: rgba(189, 216, 233, 0.3);
        border-radius: 20px;
        padding: 20px;
        width: 100%;
        display: inline-block;
        margin-bottom: 20px;
    }

    .texto-reseña {
        font-size: 12px;
        line-height: 1.5;
    }

    .ms-boton {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    .inicio-btn {
        width: 100%;
        max-width: 250px;
        height: 50px;
    }
}

@media (width >= 1024px) {

    nav {
        justify-content: flex-start;
        align-items: center;
    }

    .encabezado-der {
        margin-left: auto;
    }

    body {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: start;
        min-height: 100vh;
        width: 100%;
    }

    header {
        width: 100%;
        max-width: 100%;
    }

    .pantalla-quienessomos {
        display: grid;
        gap: 20px 60px;
        padding: 100px 50px;
        align-items: start;
        justify-content: center;
        background-color: #ffffff;
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
    }

    .informacion {
        grid-column: 1;
        text-align: center;
        margin-bottom: 0;
    }

    .personas-img {
        width: 320px;
        height: auto;
        margin-bottom: 25px;
    }

    .titulo-quienessomos {
        font-size: 36px;
        color: #7E4CA5;
    }

    .subtitulo-quienessomos {
        font-size: 18px;
        color: #B57EDC;
    }

    .parrafo-info {
        grid-column: 1;
        max-width: 100%;
        margin-top: 20px;
        margin-bottom: 0;
    }

    .parrafo-info p {
        font-size: 15px;
        line-height: 1.6;
        color: #49769F;
    }

    .subtitulo-reseñas {
        grid-column: span 2;
        grid-row: 1;
        text-align: center;
        color: #B57EDC;
        font-size: 24px;
        margin-bottom: 15px;
        width: 100%;
    }

    .reseñas {
        grid-column: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        max-width: 100%;
        margin: -300px 0 0 0;
    }

    .tarjeta-reseña {
        background-color: rgba(189, 216, 233, 0.3);
        border-radius: 20px;
        padding: 22px;
        width: 100%;
    }

    .texto-reseña {
        font-size: 12px;
        line-height: 1.5;
    }

    .ms-boton {
        grid-column: 1 / span 2;
        display: flex;
        justify-content: center;
        margin-top: 40px;
        margin-bottom: 0;
    }

    .inicio-btn {
        width: 100%;
        max-width: 260px;
        height: 52px;
    }
}

/*PANTALLA DE INICIAR SESION*/
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    min-height: 100vh;
    width: 100%;
}

header {
    width: 100%;
}

.pantalla-login {
    width: 100%;
    height: auto;
    min-height: calc(100vh - 80px);
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
    border-radius: 40px 40px 0 0;
    padding: 40px 24px 30px 24px;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.05);

    position: relative; 
    z-index: 1;   
    overflow: hidden;
}

.pantalla-login::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../imagenes/msfondodos.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.15;   
    z-index: -1;
}
.encabezado-inicio {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
    width: 100%;
}

.subtitulo-inicio {
    color: #7E4CA5;
}

.bienvenida-img {
    width: 180px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.fotoregistrar-img {
    width: 100px;
    height: auto;
    object-fit: contain;
    margin-bottom: 30px;
}

.iniciar-sesion {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.formulario-inicio {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.input-contenedor {
    position: relative;
    width: 100%;
}

.input-ms {
    width: 100%;
    height: 52px;
    border: 2px solid #6C8EBF;
    border-radius: 26px;
    padding: 0 50px 0 24px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #49769F;
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.input-ms::placeholder {
    color: #a0b0c5;
}

.contenedor-password {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.check-toggle {
    display: none;
}

.icono-ojo-label {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
}

.icono-ojo {
    width: 22px;
    height: auto;
    transition: opacity 0.2s ease;
}

.input-oculto {
    display: block;
}
.input-visible {
    display: none;
}

.check-toggle:checked ~ .input-oculto {
    display: none;
}
.check-toggle:checked ~ .input-visible {
    display: block;
}

.ojo-tachado {
    display: block;
    opacity: 0.5; 
}
.ojo-abierto {
    display: none;
}

.check-toggle:checked ~ .icono-ojo-label .ojo-tachado {
    display: none;
}
.check-toggle:checked ~ .icono-ojo-label .ojo-abierto {
    display: block;
    opacity: 1;
}

.olvido-contraseña {
    margin-bottom: 30px;
}

.olvido-contraseña a {
    color: #B57EDC;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
}

.iniciar-sesion button,
.ingresar-btn-submit {
    width: 100%;
    max-width: 260px;
    height: 50px;
    background-color: #7E4CA5;
    color: #ffffff;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(126, 76, 165, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.redes-iniciar {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 25px;
}

.ingresar-con {
    display: flex;
    width: 100%;
    color: #000000;
    opacity: 40%;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    justify-content: center;
}

.redes-img {
    width: 210px;
    height: auto;
    object-fit: contain;
}

.registar p {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

.link-registrate {
    color: #B57EDC;
    text-decoration: underline;
    font-weight: 700;
    margin-left: 4px;
}

@media (width >= 1024px) {
    .ms-boton {
        margin-top: 20px;
    }
}

/*PANTALLA DE COMUNIDAD*/
body.comunidad {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

.comunidad-main {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;

    background-color: #ffffff;
    border-radius: 28px 28px 0 0;
    padding: 14px 15px 30px;

}

.comunidad-main::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url('../imagenes/msfondodos.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.comunidad-main > * {
    position: relative;
    z-index: 1;
}

.comunidad-intro {
    display: none;
}

.titulo-comunidad h1 {
    color: #8a4fc4;
    font-size: 28px;
    margin: 0 0 18px;
    font-family: 'Audiowide';
    font-weight: 400;
}

.crear-post {
    width: 100%;
    background: #2454a5;
    border-radius: 24px;
    padding: 16px 14px 14px;
    box-sizing: border-box;
    margin-bottom: 14px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.post-header:has(.switch input:checked) .usuario-info {
    opacity: 0.5;
}

.post-header:has(.switch input:checked) .anonimo-switch span {
    opacity: 1;
}

.switch input:checked + .slider::before {
    transform: translateX(29px);
    background: #7b4ab3;
}

.usuario-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.usuario-info img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.usuario-info p {
    color: white;
    font-weight: 700;
    margin: 0;
    font-size: 16px;
}

.anonimo-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.anonimo-switch span {
    color: white;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.switch {
    position: relative;
    width: 63px;
    height: 32px;
    display: inline-block;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    background: #ffd8c9;
    border-radius: 40px;
    cursor: pointer;
}

.slider::before {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    left: 3px;
    top: 2px;
    background: #bd8ac9;
    border-radius: 50%;
    transition: .3s;
}

.switch input:checked + .slider::before {
    transform: translateX(29px);
}

.crear-post textarea {
    width: 100%;
    height: 98px;
    resize: none;
    border: none;
    border-radius: 22px;
    padding: 14px 18px;
    box-sizing: border-box;
    font-size: 14px;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.crear-post button {
    margin-top: 13px;
    display: block;
    margin-left: auto;

    background: #ffd8c9;
    color: #2454a5;
    border: none;
    padding: 9px 26px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.crear-post button a {
    color: #094174;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    align-items: center;
}

.crear-post button:hover { 
    background-color: #ffffff; 
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
} 

.crear-post button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.feed-comunidad {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.post-card {
    width: 100%;
    background: rgba(220, 234, 245, 0.9);
    border-radius: 26px;
    padding: 20px 32px;
    box-sizing: border-box;
}

.post-usuario {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.post-usuario img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.post-usuario h3 {
    margin: 0;
    font-size: 16px;
    color: #333333;
}

.post-usuario p {
    margin: 0;
    font-size: 14px;
    color: #333333;
}

.post-texto {
    color: #082944;
    line-height: 1.45;
    font-size: 15px;
    margin: 0 0 14px 52px;
}

.post-meta {
    margin: 0 0 0 52px;
    font-size: 11px;
    color: #666666;
}

@media (width >= 768px) and (width < 1024px) {

    .comunidad-main {
        border-radius: 28px 28px 0 0;
        padding: 28px 20px 44px;
    }

    .titulo-comunidad h1 {
        font-size: 34px;
        margin-bottom: 32px;
    }

    .crear-post {
        width: 100%;
        border-radius: 28px;
        padding: 22px 26px 20px;
        margin-bottom: 32px;
    }

    .post-header {
        margin-bottom: 18px;
    }

    .usuario-info img {
        width: 34px;
        height: 34px;
    }

    .crear-post textarea {
        height: 160px;
        border-radius: 24px;
        padding: 20px 24px;
    }

    .crear-post button {
        padding: 10px 28px;
        font-size: 15px;
    }

    .feed-comunidad {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px 48px;
        align-items: stretch;
    }

    .post-card {
        width: 100%;
        border-radius: 26px;
        padding: 24px 30px 18px;
    }

    .post-texto {
        font-size: 15px;
        line-height: 1.45;
        margin-left: 52px;
    }

    .post-meta {
        margin-left: 52px;
    }
}

@media (width >= 1024px) {
    
    
    .comunidad-main {
        width: 100%;
        max-width: 100%;
        padding: 40px 40px 50px;

        display: grid;
        grid-template-columns: 38% 1fr;
        column-gap: 45px;
        align-items: start;
    }

    .comunidad-intro {
        display: block;
        grid-column: 1;
        grid-row: 1 / span 3;
        padding: 0 10px;
    }

    .comunidad-ilustracion {
        width: 100%;
        max-width: 430px;
        display: block;
        margin: 0 auto 10px;
    }

    .comunidad-intro h1 {
        font-family: 'Audiowide';
        font-size: 42px;
        font-weight: 400;
        color: #8a4fc4;
        margin: 0 0 22px;
        text-align: center;
    }

    .comunidad-intro-texto {
        border-left: 3px solid #4a76a8;
        padding-left: 18px;
        color: #3f78ad;
        font-size: 15px;
        line-height: 1.25;
    }

    .comunidad-intro-texto p {
        margin: 0 0 18px;
    }

    .titulo-comunidad {
        display: none;
    }

    .crear-post {
        grid-column: 2;
        width: 100%;
        padding: 22px 24px 18px;
        margin-bottom: 24px;
        border-radius: 28px;
    }

    .crear-post textarea {
        height: 150px;
    }

    

    .feed-comunidad {
        grid-column: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px 22px;
    }

    .post-card {
        width: 100%;
        padding: 20px 24px;
        border-radius: 28px;
    }

    .post-texto {
        font-size: 14px;
        line-height: 1.35;
        margin-left: 52px;
    }

    .post-meta {
        margin-left: 52px;
    }
}


/*PANTALLA DE PERFIL*/
body.perfil {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #245194;
}

.perfil-main {
    width: 100%;
    position: relative;
    background-color: #ffffff;
    border-radius: 28px 28px 0 0;
    min-height: 100vh;
    padding: 28px 16px 32px;
    box-sizing: border-box;
    overflow: hidden;
}

.perfil-main::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url('../imagenes/msfondodos.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.perfil-main > * {
    position: relative;
    z-index: 1;
}

.perfil-intro {
    text-align: center;
    margin-bottom: 32px;
}

.perfil-intro h1 {
    margin: 0 0 10px;
    font-family: 'Audiowide';
    font-size: 28px;
    font-weight: 400;
    color: #8a4fc4;
}

.perfil-intro p {
    margin: 0 auto;
    max-width: 260px;
    font-family: 'Inter';
    font-weight: bold;
    font-size: 13px;
    line-height: 1.35;
    color: #c17be8;
}

.perfil-contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.perfil-formulario {
    width: 100%;
}

.campo-grupo {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.campo-label {
    font-size: 14px;
    font-weight: 700;
    color: #4a76a8;
    margin-bottom: 12px;
}

.campo-input {
    width: 100%;
    height: 50px;
    border: 2px solid #4a76a8;
    border-radius: 28px;
    padding: 0 20px;
    font-size: 14px;
    color: #333333;
    background-color: #ffffff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18);
}

.campo-input::placeholder {
    color: #9c9c9c;
}

.input-icono-box {
    position: relative;
    width: 100%;
}

.input-con-icono {
    padding-right: 55px;
}

.input-icono-check {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 31px;
}

.btn-guardar-cambios {
    display: block;
    margin: 18px auto 0;
    background-color: #8a4fc4;
    color: #ffffff;
    border: none;
    border-radius: 28px;
    padding: 14px 34px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 5px 10px rgba(0,0,0,0.25);
    cursor: pointer;
}

.btn-guardar-cambios a {
    color: #FFE3D8;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.btn-guardar-cambios:hover { 
    background-color: #a578c8;
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
} 

.btn-guardar-cambios:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.perfil-resumen {
    width: 100%;
    text-align: center;
    margin-bottom: 34px;
}

.perfil-resumen h2 {
    margin: 12px 0 6px;
    color: #245194;
    font-size: 28px;
    font-weight: 800;
}

.perfil-resumen-user {
    margin: 0 0 10px;
    color: #8a4fc4;
    font-weight: 700;
}

.perfil-miembro {
    margin: 0 0 22px;
    color: #666;
    font-size: 14px;
}

.perfil-estadisticas {
    list-style: none;
    padding: 0;
    margin: 34px auto 0;
    width: fit-content;
}

.perfil-estadisticas li {
    display: grid;
    grid-template-columns: 22px 180px 24px;
    align-items: center;
    gap: 12px;

    width: fit-content;  
    margin: 0 auto 22px; 
}

.perfil-estadisticas li img {
    width: 18px;
    flex-shrink: 0;
}

.perfil-estadisticas li span {
    width: 200px;
    flex: none;
    text-align: left;
}

.perfil-estadisticas li strong {
    width: 24px;
    flex: none;
    text-align: right;
}


.perfil-foto-box {
    display: none;
}

.perfil-datos {
    width: 100%;
}

.perfil-datos-titulo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.perfil-datos-titulo img {
    width: 28px;
}

.perfil-datos-titulo h2 {
    margin: 0;
    color: #c17be8;
    font-size: 22px;
}

.perfil-cerrar-sesion {
    display: block;
    width: fit-content;
    margin: 20px auto 34px;
    background-color: #8a4fc4;
    color: #ffffff;
    text-decoration: none;
    border-radius: 26px;
    padding: 13px 34px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.22);
}

.perfil-modo-seguro,
.perfil-actividad {
    display: block;
    width: 100%;
    background-color: #d9a9ec;
    border-radius: 24px;
    padding: 28px 24px;
    box-sizing: border-box;
    margin-top: 34px;
    color: #71557a;
}

.perfil-modo-seguro h2,
.perfil-actividad h2 {
    margin: 0 0 24px;
    font-size: 20px;
    color: #71557a;
}

.perfil-modo-seguro p {
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 28px;
}

.modo-opcion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-weight: 700;
}

.cierre-info-box {
    background-color: #b47bd3;
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.icono-cierre {
    width: 26px;
}

.cierre-info-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.15;
}

.perfil-actividad ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.perfil-actividad li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #8d6a94;
    padding: 13px 0;
    font-size: 17px;
}

.perfil-actividad li span {
    font-size: 30px;
}

.actividad-btn {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    background-color: #8a4fc4;
    color: white;
    text-decoration: none;
    border-radius: 24px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.22);
}

@media (width >= 768px) and (width < 1024px) {

    .perfil-intro{
    grid-column: 1 / -1;
    text-align:center;
    margin-bottom:10px;
}

.perfil-intro h1{
    font-size:54px;
    margin-bottom:10px;
}

.perfil-intro p{
    max-width:460px;
    margin:auto;
    font-size:18px;
}

.perfil-main {
        width: 100%;
        padding: 60px 45px 70px;
    }

.perfil-contenedor{
    display:grid;
    grid-template-columns:340px 1fr;
    gap:40px;
    align-items:start;
}

.perfil-resumen{
    width:100%;
    background:#fff;
    border-radius:24px;
    padding:28px;
    box-shadow:0 8px 18px rgba(0,0,0,.12);
}

.perfil-resumen-foto{
    width:150px;
    height:auto;
}

.perfil-datos{
    width:100%;
}

    .perfil-resumen h2 {
        color: #245194;
        font-size: 32px;
        margin-bottom: 8px;
    }

    .perfil-resumen-user {
        color: #8a4fc4;
        font-size: 17px;
        font-weight: 700;
        margin-bottom: 14px;
    }

    .perfil-miembro {
        color: #555;
        font-size: 15px;
        margin-bottom: 42px;
    }

.perfil-foto-box {
    display: none;
    }

.perfil-formulario {
    width: 100%;
    grid-column: 2;
    }

    .campo-grupo {
        margin-bottom: 24px;
    }

    .btn-guardar-cambios {
        margin-top: 28px;
    }

    .perfil-modo-seguro,
    .perfil-actividad {
        display: block;
        background-color: #d9a9ee;
        border-radius: 26px;
        padding: 34px 32px;
       min-height:430px;
    }

    .perfil-modo-seguro {
        grid-column: 1;
    }

    .perfil-actividad {
        grid-column: 2;
    }

    .perfil-modo-seguro h2,
    .perfil-actividad h2 {
        color: #6f5b75;
        font-size: 22px;
        margin-bottom: 32px;
    }

    .perfil-modo-seguro p {
        color: #6f5b75;
        font-size: 16px;
        line-height: 1.2;
        margin-bottom: 28px;
    }

    .modo-opcion {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 28px;
        color: #6f5b75;
        font-weight: 700;
    }

    .cierre-info{
    margin-top:20px;
}

.cierre-info-box{
    background:#b787d2;
    border-radius:22px;
    padding:18px;
    display:flex;
    align-items:center;
    gap:18px;
}

    .icono-cierre{
    width: 100px;
}

    .cierre-info p{
    margin:0;
}

.cierre-info-box p{
    margin:0;
    color:#6f5b75;
    line-height:1.2;
}

    .perfil-actividad ul {
        list-style: none;
        margin-bottom: 32px;
    }

    .perfil-actividad li {
        display: flex;
        justify-content: space-between;
        border-bottom: 2px solid rgba(111, 91, 117, 0.4);
        padding: 16px 0;
        color: #6f5b75;
        font-size: 20px;
    }

    .actividad-btn {
        display: block;
        width: fit-content;
        margin: 0 auto;
        background-color: #8a4fc4;
        color: white;
        text-decoration: none;
        font-weight: 700;
        padding: 14px 30px;
        border-radius: 25px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.25);
    }
}

@media (width >= 1024px) {

    .perfil-main {
        padding: 60px 90px 70px;
        border-radius: 28px 28px 0 0;
        min-height: calc(100vh - 95px);
    }

    .perfil-contenedor {
        max-width: 1500px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 410px 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 48px 70px;
        align-items: start;
    }

    .perfil-intro {
    grid-column: 1;
    grid-row: 1;
    background: transparent;
    border-radius: 18px 18px 0 0;
    padding: 54px 34px 28px;
    margin: 0 40px;
    border-bottom: 1px solid #CFCFCF;
    z-index: 2;
}

    .perfil-intro h1 {
        font-size: 42px;
        margin-bottom: 14px;
    }

    .perfil-intro p {
    margin: 6px auto 0;
    max-width: 340px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.35;
    color: #b57edc;
    font-family: 'Inter', sans-serif;
    }

    .perfil-resumen {
    grid-column: 1;
    grid-row: 1 / 3;
    background-color: #ffffff;
    border-radius: 18px;
    padding: 210px 42px 55px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
    text-align: center;
    z-index: 1;
}

    .perfil-resumen-foto {
        width: 150px;
        height: auto;
        margin-top: 20px;
        margin-bottom: 20px;
        
    }

    .perfil-resumen h2 {
        font-size: 30px;
        margin: 0 0 8px;
    }

    .perfil-miembro {
        margin-bottom: 42px;
    }

    .perfil-cerrar-sesion {
        margin-bottom: 70px;
    }

    .perfil-estadisticas {
        width: fit-content;
        margin: 0 auto;
    }

    .perfil-estadisticas li {
        display: grid;
        grid-template-columns: 22px 190px 28px;
        gap: 12px;
        align-items: center;
        margin-bottom: 26px;
    }

    .perfil-foto-box {
        display: none;
    }

    .perfil-datos {
        grid-column: 2 / 4;
        grid-row: 1;
        background-color: #ffffff;
        border-radius: 18px;
        padding: 34px 42px 38px;
        box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    }

    .perfil-formulario {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 58px;
    }

    .campo-grupo {
        margin-bottom: 0;
    }

    .campo-input {
        height: 42px;
        font-size: 13px;
    }

    .btn-guardar-cambios {
        align-self: end;
        justify-self: stretch;
        margin: 0;
        height: 42px;
        padding: 0 34px;
        font-size: 13px;
    }

    .perfil-modo-seguro {
        grid-column: 2;
        grid-row: 2;
    }

    .perfil-actividad {
        grid-column: 3;
        grid-row: 2;
    }

    .perfil-modo-seguro,
    .perfil-actividad {
        background-color: #d7a8ed;
        border-radius: 22px;
        padding: 34px 30px 28px;
        min-height: 430px;
    }

    .perfil-modo-seguro h2,
    .perfil-actividad h2 {
        font-size: 18px;
        margin: 0 0 28px;
    }

    .modo-opcion {
        font-size: 14px;
        margin-bottom: 26px;
    }

    .switch {
        width: 62px;
        height: 32px;
    }

    .slider::before {
        width: 26px;
        height: 26px;
        left: 4px;
        top: 3px;
    }

    .switch input:checked + .slider::before {
        transform: translateX(28px);
        background-color: #8a4fc4;
    }

    .perfil-actividad li {
        font-size: 18px;
        padding: 15px 0;
    }

    .actividad-btn {
        margin: 18px auto 0;
    }
}

/* PANTALLA DE MULTIMEDIA */

.ayuda-desktop {
    display: none;
}

.video-descripcion {
    display: none;
}

body.multimedia {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #245194;
}

.multimedia-main {
    position: relative;
    background-color: #ffffff;
    border-radius: 28px 28px 0 0;
    min-height: 100vh;
    padding: 28px 16px 32px;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.multimedia-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../imagenes/msfondodos.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

.multimedia-main > * {
    position: relative;
    z-index: 1;
}

.multimedia-contenedor {
    position: relative;
    z-index: 1;
}

.multimedia-cabecera {
    text-align: center;
    margin-bottom: 20px;
}

.multimedia-ilustracion {
    width: 280px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.multimedia-titulo {
    margin: 0;
    font-family: 'Audiowide';
    font-size: 32px;
    font-weight: 400;
    color: #8a4fc4;
}

.multimedia-descripcion {
    margin: 6px auto 0;
    max-width: 340px;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.35;
    color: #b57edc;
}

.multimedia-texto-box {
    width: 86%;
    margin: 0 auto 36px;
    padding-left: 12px;
    border-left: 3px solid #4a76a8;
    color: #3f78ad;
    font-size: 15px;
    line-height: 1.15;
}

.multimedia-texto-box p {
    margin: 0 0 18px;
}

.tematicas-box {
    margin-bottom: 42px;
}

.tematicas-titulo,
.videos-titulo {
    text-align: center;
    font-size: 21px;
    color: #c17be8;
    margin-bottom: 18px;
}

.tematicas-lista {
    list-style: none;
    padding: 0;
    margin: 0;
        border-radius: 20px;

}

.tematica-item {
    border-bottom: 1.5px solid #4a76a8;
}

.tematica-icono,
.tematica-texto p {
    display: none;
    filter: brightness(0) saturate(100%) invert(19%) sepia(50%) saturate(2227%) hue-rotate(201deg) brightness(92%) contrast(101%);
}

.tematica-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #00437a;
    padding: 12px 16px;
    font-size: 22px;
    font-weight: 500;
    border-radius: 20px;
}

.tematica-texto span {
    display: block;
    color: #00437a;
    font-size: 21px;
}

.tematica-flecha {
    width: 13px;
}

.video-card {
    display: flex;
    gap: 18px;
    background-color: #ffdfd3;
    border-radius: 24px;
    padding: 14px;
    margin-bottom: 16px;
    width: 100%;
}

.video-imagen-box {
    position: relative;
    flex-shrink: 0;
    width: 120px;
    height: 70px;
}

.video-imagen-box img,
.video-card iframe {
    width: 50%;
    object-fit: cover;
    border-radius: 14px;
}

.video-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-titulo {
    margin: 0 0 16px;
    color: #3f78ad;
    font-size: 16px;
    font-weight: 700;
}

.video-categoria {
    width: fit-content;
    background-color: #b7d7f3;
    color: #3f78ad;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 18px;
}

.video-duracion {
    margin: 0 0 18px;
    color: #555;
    font-size: 12px;
}

.video-puntaje {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #333;
    font-size: 11px;
}

.video-estrella {
    color: #f7b733;
    font-size: 16px;
}

@media (width >= 768px) and (width < 1024px) {

    .multimedia-main {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        padding: 40px 28px 50px;
        border-radius: 28px 28px 0 0;
    }

    .multimedia-contenedor {
        padding-left: 40px;
        padding-right: 40px;
    }

    .multimedia-ilustracion {
        width: 260px;
        margin-bottom: 8px;
    }

    .multimedia-titulo {
        font-size: 34px;
    }

    .multimedia-descripcion {
        max-width: 520px;
        font-size: 15px;
    }

    .multimedia-texto-box {
        width: 62%;
        max-width: 560px;
        margin: 45px auto 48px;
        font-size: 16px;
        line-height: 1.15;
    }

    .tematicas-titulo,
    .videos-titulo {
        text-align: left;
        font-size: 24px;
        margin-bottom: 28px;
    }

    .tematicas-lista {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 24px;
    }

    .tematica-item {
        border-bottom: none;
        width: 100%;
    }

    body.multimedia .tematica-link {
        background-color: #ffffff;
        border-radius: 24px;
        padding: 20px 24px;
        text-decoration: none;
        border: 2px solid transparent;
        min-height: auto;
        
        display: grid;
        grid-template-columns: 56px 1fr 24px;
        align-items: center;
        column-gap: 16px;
        
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08); 
    }

    .tematica-icono {
        display: block;
        width: 58px;
        height: auto;
    }

    .tematica-texto span {
        font-size: 22px;
        font-weight: 800;
        color: #00437a;
    }

    .tematica-texto p {
        display: block;
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.15;
        color: #4a76a8;
    }

    .tematica-flecha {
        width: 25px;
        align-self: end;
    }

    .tematicas-box {
        margin-bottom: 55px;
    }

    .videos-box {
        margin-top: 40px;
        padding-left: 40px;
        padding-right: 40px;
        
        display: grid;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .videos-titulo {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    .video-card {
        margin-bottom: 0;
        border-radius: 26px;
        padding: 18px;
        gap: 20px;
        min-height: 190px;
    }

    .video-imagen {
        width: 110px;
        height: 150px;
    }

    .video-titulo {
        font-size: 17px;
    }

    .video-categoria {
        font-size: 13px;
    }
}

@media (width >= 1024px) {

    .multimedia-main {
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        padding: 60px 80px 70px;
        border-radius: 28px 28px 0 0;     
    }

    .multimedia-contenedor {
        display: grid;
        grid-template-columns: 42% 58%;
        column-gap: 60px;
        align-items: start;
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 20px;
    }

    .ayuda-desktop {
        display: none;
    }

    .multimedia-cabecera {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
        margin-bottom: 20px;
    }

    .multimedia-ilustracion {
        width: 300px;
        margin: 0 auto -8px;
    }

    .multimedia-titulo {
        font-size: 42px;
    }

    .multimedia-descripcion {
        max-width: 430px;
        font-size: 16px;
    }

    .multimedia-texto-box {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        font-size: 14px;
        line-height: 1.45;
        padding-left: 16px;
        border-left: 3px solid #4a76a8;
        color: #3f78ad;
        text-align: left;
    }

    .multimedia-texto-box p {
        height: auto;
        max-height: 120px; 
    }

    .tematicas-box {
        grid-column: 2;
        grid-row: 1 / span 2;
        width: 100%;
        margin: 0;
    }

    .tematicas-titulo,
    .videos-titulo {
        text-align: left;
        font-size: 21px;
        color: #c17be8;
        margin-bottom: 18px;
    }

    .tematicas-lista {
        display: flex;
        flex-direction: column;
        gap: 16px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .tematica-item {
        border-bottom: none;
    }

    .tematica-link {
        background-color: #ffffff;
        padding: 18px 24px;
        text-decoration: none;
        
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        column-gap: 20px;
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08); 
        
        transition: transform 0.25s ease, box-shadow 0.25s ease;
        }
        
        .tematica-link:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        background-color: #def0ff;
        }

    .tematica-icono {
        display: block;
        width: 58px;
    }

    .tematica-texto span {
        display: block;
        color: #00437a;
        font-size: 18px;
        font-weight: 700;
        text-align: left;
    }

    .tematica-texto p {
        display: block;
        margin: 8px 0 0;
        font-size: 16px;
        line-height: 1.1;
        color: #4a76a8;
    }

    .tematica-flecha {
        width: 14px;
        height: auto;
        flex-shrink: 0;
    }

    .videos-box {
        grid-column: 1 / 3;
        grid-row: 3;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px 55px;
        margin-top: 25px;
    }

    .videos-titulo {
        grid-column: 1 / 3;
        text-align: left;
        font-size: 16px;
        margin: 0 0 -5px;
        color: #c17be8;
    }

    .video-card {
        width: 100%;
        min-height: 175px;
        background-color: #ffdfd3;
        border-radius: 22px;
        padding: 18px 22px;
        display: flex;
        align-items: center;
        gap: 20px;
        margin: 0;
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

    .video-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }   

    .video-imagen {
        width: 115px;
        height: 145px;
        object-fit: cover;
        border-radius: 8px;
    }

    .video-info {
        justify-content: center;
    }

    .video-titulo {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .video-descripcion {
        display: block;
        margin: 0 0 14px;
        color: #4a76a8;
        font-size: 14px;
        line-height: 1.15;
    }

    .video-categoria {
        font-size: 11px;
        padding: 5px 14px;
        margin-bottom: 12px;
    }

    .video-duracion {
        font-size: 11px;
        margin-bottom: 10px;
    }

    .video-puntaje {
        font-size: 11px;
    }
}

/* PANTALLA CUESTIONARIO - ANTO */

.bloque-pregunta {
    margin-top: -80px;
}

body.cuestionario .cuestionario-main {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 84px);
    padding: 150px 22px 40px;
    box-sizing: border-box;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 28px 28px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.cuestionario .cuestionario-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../imagenes/msfondodos.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: 0;
    pointer-events: none;
}

body.cuestionario .cuestionario-main > * {
    position: relative;
    z-index: 1;
}

body.cuestionario .cuestionario-main input[name="flujo-cuestionario"] {
    display: none;
}

body.cuestionario .cuestionario-main .bloque-p2,
body.cuestionario .cuestionario-main .bloque-p3,
body.cuestionario .cuestionario-main .bloque-p4 {
    display: none;
}

body.cuestionario .cuestionario-main .bloque-p1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

body.cuestionario .cuestionario-main .trigger-p2:checked ~ .bloque-p1 {
    display: none;
}

body.cuestionario .cuestionario-main .trigger-p2:checked ~ .bloque-p2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

body.cuestionario .cuestionario-main .trigger-p3:checked ~ .bloque-p1,
body.cuestionario .cuestionario-main .trigger-p3:checked ~ .bloque-p2 {
    display: none;
}

body.cuestionario .cuestionario-main .trigger-p3:checked ~ .bloque-p3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

body.cuestionario .cuestionario-main .trigger-p4:checked ~ .bloque-p1,
body.cuestionario .cuestionario-main .trigger-p4:checked ~ .bloque-p2,
body.cuestionario .cuestionario-main .trigger-p4:checked ~ .bloque-p3 {
    display: none;
}

body.cuestionario .cuestionario-main .trigger-p4:checked ~ .bloque-p4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

body.cuestionario .tarjeta-pregunta {
    width: 100%;
    max-width: 315px;
    background-color: #d7eaf4;
    border-radius: 13px;
    padding: 24px 22px 28px;
    margin: 0 auto 34px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
}

body.cuestionario .numero-pregunta {
    display: block;
    margin-bottom: 14px;
    color: #3f78ad;
    font-size: 12px;
    font-weight: 600;
}

body.cuestionario .tarjeta-pregunta h1 {
    margin: 0;
    color: #00437a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.15;
}

body.cuestionario .contenedor-opciones {
    width: 100%;
    max-width: 315px;
    margin-bottom: 34px;
}

body.cuestionario .formulario-opciones {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body.cuestionario .opcion-radio {
    height: 38px;
    background-color: #ffffff;
    border-radius: 22px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #3f78ad;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 3px 0 #00437a, 0 4px 8px rgba(0, 0, 0, 0.16);
    transition: all 0.2s ease;
}

body.cuestionario .opcion-radio:hover {
    background-color: #f0f7fc;
    transform: translateY(1px);
    box-shadow: 0 2px 0 #00437a, 0 2px 6px rgba(0, 0, 0, 0.12);
}

body.cuestionario .caja-opcion a.enlace-directo {
    text-decoration: none;
    display: flex;
    align-items: center;
    width: 100%;
    height: 38px;
    background-color: #ffffff;
    border-radius: 22px;
    padding: 0 12px;
    gap: 11px;
    color: #3f78ad;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 3px 0 #00437a, 0 4px 8px rgba(0, 0, 0, 0.16);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

body.cuestionario .caja-opcion a.enlace-directo:hover {
    background-color: #f0f7fc;
    transform: translateY(1px);
    box-shadow: 0 2px 0 #00437a, 0 2px 6px rgba(0, 0, 0, 0.12);
}

body.cuestionario .custom-radio {
    width: 14px;
    height: 14px;
    border: 1.5px solid #9cb6c8;
    border-radius: 50%;
    background-color: #ffffff;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

body.cuestionario .navegacion-app {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

body.cuestionario .navegacion-app label.enlace-volver,
body.cuestionario .enlace-volver {
    color: #b57edc;
    font-size: 16px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

body.cuestionario .navegacion-app label.boton-siguiente,
body.cuestionario .boton-siguiente {
    width: 100%;
    max-width: 230px;
    height: 45px;
    background-color: #8a4fc4;
    color: #ffffff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    user-select: none;
}

@media (min-width: 768px) {

    body.cuestionario .cuestionario-main {
        padding-top: 100px;
        min-height: 100vh;
    }

    body.cuestionario .tarjeta-pregunta {
        max-width: 500px;
        padding: 40px;
    }

    body.cuestionario .contenedor-opciones {
        max-width: 500px;
    }

    body.cuestionario .opcion-radio {
        height: 50px;
        font-size: 16px;
    }

    body.cuestionario .caja-opcion a.enlace-directo {
        height: 50px;
        font-size: 16px;
    }

    .bloque-pregunta {
        margin-top: 10px;
    }
}

@media (min-width: 1024px) {

    body.cuestionario .cuestionario-main {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 40px 40px 0 0;
        padding-top: 60px;
        padding-left: 20px;
        padding-right: 20px;
        padding-top: 200px;
    }

    body.cuestionario .cuestionario-main::before {
        background-size: cover;
    }

    body.cuestionario .contenedor-opciones {
        max-width: 800px;
    }

    body.cuestionario .formulario-opciones {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    body.cuestionario .opcion-radio {
        width: 100%;
        height: 55px;
    }

    body.cuestionario .caja-opcion a.enlace-directo {
        width: 100%;
        height: 55px;
    }

    .bloque-pregunta {
        margin-top: -60px;
    }
}

/* PANTALLA: RESULTADOS */
body.resultado {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #245194;
}

.resultado-main {
    position: relative;
    background-color: #ffffff;
    border-radius: 28px 28px 0 0;
    min-height: calc(100vh - 84px);
    padding: 34px 22px 50px;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    text-align: center;
}

.resultado-main::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("../imagenes/msfondodos.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.20;
    z-index: 0;
}

.resultado-main > * {
    position: relative;
    z-index: 1;
}

.bloque-alerta {
    text-align: center;
    margin-bottom: 28px;
}

.img-alerta {
    width: 220px;
    max-width: 100%;
    display: block;
    margin: 0 auto 20px;
}

.texto-deteccion {
    color: #b57edc;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
}

.titulo-resultado {
    font-family: 'Audiowide', sans-serif;
    font-size: 42px;
    font-weight: 400;
    color: #8a4fc4;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.bajada-resultado {
    max-width: 340px;
    margin: 0 auto 24px;
    color: #00437a;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 500;
}

.contenedor-tarjetas {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tarjeta-resultado {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    background-color: #d7eaf4;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.tarjeta-lila {
    background-color: #f3e8ff;
}

.tarjeta-resultado summary {
    list-style: none;
    cursor: pointer;
}

.cabecera-tarjeta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    text-align: left;
}

.circulo-icono-resultado {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icono-resultado-svg {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transform: translateY(1px);
}

.texto-cabecera-resultado {
    flex: 1;
}

.texto-cabecera-resultado h2 {
    margin: 0;
    color: #00437a;
    font-size: 20px;
    font-weight: 800;
}

.texto-cabecera-resultado p {
    margin: 4px 0 0;
    color: #4c5f7a;
    font-size: 13px;
    line-height: 1.3;
}

.tarjeta-resultado summary::-webkit-details-marker {
    display: none;
}

.tarjeta-resultado summary::after {
    content: "";
    width: 24px;
    height: 24px;
    background-image: url("../imagenes/flecha.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform .25s ease;
    flex-shrink: 0;
}

.tarjeta-resultado[open] summary::after {
    transform: rotate(180deg);
}

.contenido-resultado {
    padding: 0 18px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.4s ease-in-out;
}

.tarjeta-resultado[open] .contenido-resultado {
    max-height: 800px;
    opacity: 1;
    padding: 0 18px 22px;
}

.contenido-resultado article {
    background-color: #ffffff;
    border-radius: 18px;
    padding: 16px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}

.contenido-resultado h3 {
    color: #00437a;
    font-size: 15px;
    margin: 0 0 6px;
    font-weight: 800;
}

.contenido-resultado p {
    color: #333333;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.acciones-resultado {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100% !important;
    margin: 40px auto 0;
    padding: 0 20px;
    box-sizing: border-box;
}

.acciones-resultado h2 {
    color: #8a4fc4;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 22px 0;
    text-align: center;
    width: 100%;
    padding-top: 30px;
}

.acciones-cards {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.acciones-cards a {
    width: 100%;
    min-height: auto;
    background-color: transparent;
    padding: 18px 0;
    text-decoration: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15);
    
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.acciones-cards a:last-of-type {
    border-bottom: none;
}

.acciones-cards .icono-accion,
.acciones-cards .descripcion-card {
    display: none;
}

.acciones-cards strong {
    color: #00437a;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
}

.acciones-cards .flecha-card {
    width: 12px;
    height: auto;
    flex-shrink: 0;
}

.enlace-inicio {
    display: block;
    margin-top: 28px;
    color: #b57edc;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: underline;
}

@media (min-width: 768px) and (max-width: 1023px) {

    .contenedor-tarjetas {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        align-items: start;
    }

    .tarjeta-resultado {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    body .resultado-main .acciones-resultado {
        width: 100%;
        max-width: 900px;
        margin: 50px auto 0;
        padding: 0 40px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    body .resultado-main .acciones-resultado h2 {
        font-size: 24px;
        text-align: center;
        margin-bottom: 28px;
        color: #8a4fc4;
        width: 100%;
    }

    body .resultado-main .acciones-cards {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        justify-content: center;
    }

    body .resultado-main .acciones-cards a {
        width: 100%;
        min-height: 120px;
        background-color: #ffffff;
        border-radius: 24px;
        padding: 22px 26px;
        text-decoration: none;
        color: #00437a;
        border-bottom: none;
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
        display: grid;
        grid-template-columns: auto 1fr 24px;
        grid-template-areas:
            "icono titulo flecha"
            "icono texto flecha";
        column-gap: 14px;
        align-items: center;
        text-align: left;
    }

    body .resultado-main .acciones-cards .icono-accion {
        display: flex;
        grid-area: icono;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        margin-right: 4px;
    }

    body .resultado-main .acciones-cards .icono-svg {
        width: 30px;
        height: 30px;
        object-fit: contain;
    }

    body .resultado-main .acciones-cards strong {
        grid-area: titulo;
        color: #00437a;
        font-size: 22px;
        font-weight: 700;
        text-align: left;
        margin: 0;
        display: flex;
        align-items: center;
    }

    body .resultado-main .acciones-cards .descripcion-card {
        display: block;
        grid-area: texto;
        font-size: 15px;
        color: #00437a;
        text-align: left;
        margin: 0;
    }

    body .resultado-main .acciones-cards .flecha-card {
        grid-area: flecha;
        width: 22px;
        height: 22px;
        justify-self: end;
        object-fit: contain;
    }

}

@media (min-width: 1024px) {

    .contenedor-tarjetas {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        
        display: grid;
        grid-template-columns: repeat(2, 450px);
        gap: 24px; 
        justify-content: center; 
        align-items: start;
    }

    .contenido-resultado {
        padding: 0 18px 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.4s ease-in-out;
    }

    .tarjeta-resultado[open] .contenido-resultado {
        max-height: 800px;
        opacity: 1;
        padding: 0 18px 22px;
    }

    .tarjeta-resultado {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .acciones-resultado {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 1000px; 
        margin: 60px auto 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .acciones-resultado h2 {
        font-size: 24px;
        text-align: center;
        margin-bottom: 22px;
        width: 100%;
    }

    .acciones-cards {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        width: 100%;
        margin: 0 auto;
    }

    .acciones-cards a {
        width: auto;
        min-height: 110px;
        background-color: #ffffff;
        border-radius: 24px;
        padding: 24px 26px;
        text-decoration: none;
        color: #00437a;
        border-bottom: none;
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);

        display: grid;
        grid-template-columns: 48px 1fr 28px;
        grid-template-areas:
            "icono titulo flecha"
            "icono texto flecha";
        column-gap: 18px;
        align-items: center;
        text-align: left;
        
        transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    }

    .acciones-cards a:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
        background-color: #def0ff;
    }

    .acciones-cards .icono-accion {
        display: flex;
        grid-area: icono;
        width: 48px;
        height: 48px;
        align-self: center;
        align-items: center;
        justify-content: center;
    }

    .acciones-cards .icono-svg {
        width: 30px;
        height: 30px;
        object-fit: contain;
    }

    .acciones-cards strong {
        grid-area: titulo;
        font-size: 20px;
        line-height: 1.15;
        margin-bottom: -10px;
    }

    .acciones-cards .descripcion-card {
        display: block;
        grid-area: texto;
        font-size: 14px;
        line-height: 1.35;
        margin: 0;
    }

    .flecha-card {
        grid-area: flecha;
        width: 24px;
        height: 24px;
        align-self: center;
        justify-self: end;
    }
}

/* PANTALLA ¿QUÉ HACER? */

.contenido-que-hacer {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    border-radius: 28px 28px 0 0;
    padding: 14px 15px 30px;
    z-index: 1;
    width: 100%;
    margin: 0 auto;
}

.contenido-que-hacer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../imagenes/msfondodos.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.25;
    z-index: -1;
    pointer-events: none;
}

.cabecera-pantalla {
    text-align: center;
    margin: 30px 0;
}

.titulo-principal-violeta {
    color: #7E4CA5;
    font-size: 30px;
    font-weight: 300;
    font-family: 'Audiowide';
    margin-bottom: 12px;
}

.bajada-violeta {
    color: #B57EDC;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    opacity: 0.8;
    max-width: 80%;
    text-align: center;
    margin: 0 auto;
}

.bloque-paso {
    width: 100%;
    max-width: 340px;
    margin-bottom: 26px;
}

.info-paso {
    text-align: center;
    margin-bottom: 12px;
}
.circulo-info{
    width:58px;
    height:58px;

    display:flex;
    justify-content:center;
    align-items:center;

    margin:0 auto 12px;
}

.icono-info{
    width:30px;
    height:30px;
    object-fit:contain;
}

.info-paso h2 {
    color: #B57EDC;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.info-paso p {
    color: #B57EDC;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

.paso-tarjeta {
    width: 100%;
    background-color: #E6F0FA;
    border-radius: 30px;
    padding: 0;
    box-sizing: border-box;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.paso-tarjeta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.paso-tarjeta summary {
    cursor: pointer;
    list-style: none;
}

.paso-tarjeta summary::-webkit-details-marker {
    display: none;
}

.subtitulo-icono {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px 20px;
    text-align: center;
}

.subtitulo-icono::after {
    content: "";
    position: absolute;
    right: 22px;
    width: 24px;
    height: 24px;
    background-image: url("../imagenes/flecha.svg");
     background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.25s ease;
}

.paso-tarjeta[open] .subtitulo-icono::after {
    transform: rotate(180deg);
}

.titulo-con-icono {
    color: #004B87;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.contenido-desplegable {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 20px 0;
    box-sizing: border-box;
    
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.4s ease-in-out;
}

.paso-tarjeta[open] .contenido-desplegable {
    max-height: 1200px;
    opacity: 1;
    padding: 0 20px 24px;
}

.lista-que-hacer {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
    margin: 0 0 18px;
    list-style: none;
}

.lista-que-hacer li {
    background-color: #ffffff;
    color: #004B87;
    border-radius: 18px;
    padding: 14px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.comparar-situacion {
    width: 100%;
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(126, 76, 165, 0.18);
    text-align: center;
}

.pregunta-tarjeta {
    color: #004B87;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.texto-tarjeta-centro,
.texto-tarjeta-izq {
    color: #555555;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 18px;
}

.btn-comparar {
    width: 100%;
    max-width: 230px;
    height: 46px;
    background-color: #7E4CA5;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
    box-shadow: 0 5px 14px rgba(126,76,165,.25);
}

.btn-comparar:hover {
    background-color: #6f3f95;
}


.mensaje-simulador {
    width: 100%;
    min-height: 120px;
    border: none;
    border-radius: 18px;
    background-color: #ffffff;
    padding: 18px;
    box-sizing: border-box;
    resize: vertical;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #004B87;
    box-shadow: inset 0 0 0 2px #d9e8f7;
    margin-bottom: 18px;
}

.mensaje-simulador:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #7E4CA5;
}

.mensaje-simulador::placeholder {
    color: #7a9bb8;
}

.contenedor-btn-interno {
    width: 100%;
    display: flex;
    justify-content: center;
}

.btn-interno-violeta {
    background-color: #7E4CA5;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
}

.btn-interno-violeta:hover {
    background-color: #6d3b93;
}

.lista-apoyo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 16px 0 20px;
    flex-wrap: wrap;
}
.lista-apoyo li {
    min-width: 110px;
    padding: 14px 20px;
    background-color: #ffffff;
    color: #004B87;
    border-radius: 18px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
    transition: .25s;
    cursor: pointer;
}

.lista-apoyo li:hover {
    background-color: #e2cdf3;
}

.acciones-resultado {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 280px;
    margin-top: 20px;
}

.btn-resultado {
    background-color: #7E4CA5;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    width: 80%;
    height: 50px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(126, 76, 165, 0.3);
}

.enlace-inicio {
    color: #B57EDC;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    margin-top: 8px;
}

@media (min-width:768px) and (max-width:1023px){

    .contenido-que-hacer{
        padding:40px 40px 50px;
    }

    .cabecera-pantalla{
        margin-bottom:40px;
    }

    .titulo-principal-violeta{
        font-size:38px;
    }

    .bajada-violeta{
        font-size:18px;
    }

    .bloque-paso {
        width: 100%;
        max-width: 370px;
        margin: 0 auto 26px;
    }

    .info-paso h2{
        font-size:24px;
    }

    .info-paso p{
        font-size:16px;
    }

    .paso-tarjeta{
        border-radius:34px;
    }

    .subtitulo-icono{
        padding:26px 28px;
    }

    .titulo-con-icono{
        font-size:20px;
    }

    .contenido-desplegable{
        padding:0 28px 28px;
    }

    .lista-que-hacer li{
        font-size:16px;
        padding:18px;
    }

    .pregunta-tarjeta{
        font-size:22px;
    }

    .texto-tarjeta-centro,
    .texto-tarjeta-izq{
        font-size:16px;
    }

    .btn-comparar,
    .btn-interno-violeta{
        height:52px;
        font-size:16px;
    }

    .mensaje-simulador{
        min-height:150px;
        font-size:16px;
    }
    body.que-hacer-page {
        background-color: #ffffff;
    }

    body.que-hacer-page .contenido-que-hacer {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        min-height: calc(100vh - 90px);
        background-color: #ffffff;
    }

    .acciones-resultado .btn-resultado,
    .acciones-resultado a.btn-resultado {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {

    .contenido-que-hacer {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
        gap: 40px;
        max-width: 2000px;
        margin: 0 auto;
        padding: 60px 24px;
    }

    .cabecera-pantalla {
        grid-column: span 3;
        margin-bottom: 40px;
    }

    .titulo-principal-violeta {
        font-size: 42px;
    }

    .bajada-violeta {
        font-size: 18px;
    }

    .bloque-paso {
        max-width: none;
        margin-bottom: 0;
    }



    .info-paso h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }

    .info-paso p {
        font-size: 15px;
    }

    .titulo-con-icono {
        font-size: 18px;
    }

    .lista-que-hacer li {
        font-size: 15px;
    }

    .pregunta-tarjeta {
        font-size: 18px;
    }

    .texto-tarjeta-centro,
    .texto-tarjeta-izq {
        font-size: 15px;
    }

    .acciones-resultado {
        grid-column: span 3;
        max-width: 320px;
        margin-top: 50px;
        justify-self: center;
        
    }

    .acciones-resultado .btn-resultado,
    .acciones-resultado a.btn-resultado {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
}

