@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;
}

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;
}

/*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;
}

.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; /* Permite scroll vertical libre */
    }

    .pantalla-inicio {
        position: relative;
        width: 100%;
        max-width: 960px;
        margin: 0 auto;
        height: 600px; /* Alto fijo controlado para contener tus posiciones absolutas internas */
        display: block;
        flex-grow: 1; /* Empuja estructuralmente al footer hacia abajo */
    }
    .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);
}

.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;
}

.icono-ojo {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: auto;
    opacity: 0.5;
}

.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;
}

/*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%;
        margin: 30px auto 0;
        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-contenedor {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.perfil-foto-box {
    position: relative;
    margin-bottom: 26px;
}

.perfil-foto {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
}

.btn-cambiar-foto {
    position: absolute;
    right: -5px;
    bottom: 8px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background-color: #79b9ea;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.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,
.perfil-modo-seguro,
.perfil-actividad {
    display: none;
}

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

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

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

    .perfil-resumen {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: #ffffff;
        border-radius: 18px;
        padding: 32px 34px;
        box-shadow: 0 8px 22px rgba(0,0,0,0.16);
    }

    .perfil-resumen-foto {
        width: 135px;
        height: 135px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 18px;
    }

    .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-estadisticas {
        width: 100%;
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

   .perfil-estadisticas li{
    display:grid;
    grid-template-columns:30px 1fr auto;
    align-items:center;
    column-gap:18px;
}

    .perfil-estadisticas strong {
        font-size: 22px;
    }

    .perfil-estadisticas img{
    width:22px;
    height:auto;
}

    .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;
    }

    .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: 100
px;
}

    .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: 55px 90px 70px;
        border-radius: 0;
        min-height: calc(100vh - 95px);
    }

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

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

    .perfil-resumen,
    .perfil-modo-seguro,
    .perfil-actividad {
        display: block;
    }

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

    .perfil-resumen-foto {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        object-fit: cover;
        margin-bottom: 18px;
    }

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

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

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

    .perfil-estadisticas {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .perfil-estadisticas li {
        display: grid;
        grid-template-columns: 24px 1fr auto;
        align-items: center;
        column-gap: 18px;
        text-align: left;
    }

    .perfil-estadisticas img {
        width: 18px;
        height: auto;
    }

    .perfil-estadisticas span {
        font-size: 14px;
        color: #2f2f2f;
    }

    .perfil-estadisticas strong {
        font-size: 19px;
        color: #2f2f2f;
    }

    .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-datos-titulo {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 28px;
    }

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

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

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

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

    .campo-label {
        font-size: 12px;
        margin-bottom: 8px;
        color: #245194;
    }

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

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

    .perfil-modo-seguro {
        grid-column: 2;
        grid-row: 2;
        background-color: #d7a8ed;
        border-radius: 22px;
        padding: 34px 30px 28px;
    }

    .perfil-actividad {
        grid-column: 3;
        grid-row: 2;
        background-color: #d7a8ed;
        border-radius: 22px;
        padding: 34px 30px 28px;
    }

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

    .perfil-modo-seguro p {
        color: #6f5b75;
        font-size: 14px;
        line-height: 1.15;
        margin: 0 0 34px;
    }       

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

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

    .switch input {
        display: none;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        inset: 0;
        background-color: #ffe0d0;
        border-radius: 30px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    }

    .slider::before {
        content: "";
        position: absolute;
        width: 26px;
        height: 26px;
        left: 4px;
        top: 3px;
        background-color: #bd93c5;
        border-radius: 50%;
        transition: 0.3s;
    }

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

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

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

    .icono-cierre {
        width: 22px;
        height: auto;
    }

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

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

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

    .perfil-actividad li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 2px solid rgba(111, 91, 117, 0.35);
        padding: 15px 0;
        color: #6f5b75;
        font-size: 18px;
        transition: all 0.25s ease;
        cursor: pointer;
    }

    .perfil-actividad li span {
        font-size: 32px;
        line-height: 1;
    }

    .actividad-btn {
    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;
    text-decoration: none;
    text-align: center;
}

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

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


/* PANTALLA MULTIMEDIA */

.ayuda-desktop {
    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;
}

.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;
}

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

.tematica-icono,
.tematica-texto p {
    display: none;
}

.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;
}

.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;
}

.video-imagen {
    width: 113px;
    height: 169px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.video-imagen-box {
    position: relative;
    flex-shrink: 0;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 48px;
    height: 48px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);

    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.video-play-btn img {
    width: 18px;
}

.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;
    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 {
        padding: 40px 28px 50px;
        border-radius: 28px 28px 0 0;
    }

    .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: 24px 32px;
    }

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

    .tematica-link {
        background-color: #bdd8e9;
        border-radius: 36px;
        min-height: 170px;
        padding: 32px 32px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        column-gap: 20px;
    }

    .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 {
        width: 100%;
    }

    .videos-box {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px 36px;
    }

    .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 {
    padding-top: 70px;
    padding-right: 50px;
    width: 100%;
    max-width: 100%;
}

   .multimedia-contenedor {
    display: grid;
    grid-template-columns: 45% 55%;
    column-gap: 70px;
    align-items: start;
}

    .multimedia-cabecera {
    grid-column: 1;
    grid-row: 1;
}

    .multimedia-ilustracion {
    width: 330px;
}

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

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

    .multimedia-texto-box {
    grid-column: 1;
    grid-row: 2;
}

   .tematicas-box,
.videos-box {
    width: 92%;
    justify-self: start;
}

    .tematicas-titulo {
        text-align: left;
        font-size: 18px;
        margin-bottom: 22px;
    }

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

    .tematica-item {
        border-bottom: none;
       transition: all 0.25s ease;
        cursor: pointer;
    }

    .tematica-item:hover {
        padding-left: 6px;
        border-radius: 8px;
    }

    .tematica-link {
        background-color: #bdd8e9;
        border-radius: 28px;
        min-height: 170px;
        padding: 24px 24px;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: start;
        column-gap: 18px;
    }

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

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

    .tematica-texto p {
        display: block;
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.1;
        color: #4a76a8;
    }

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


.videos-box {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 40px;
    width: 92%;
}

    .videos-titulo {
    text-align: left;
    font-size: 18px;
    margin: 0;
}

   .video-card {
    width: 100%;
    min-height: 190px;
    border-radius: 24px;
    padding: 18px 28px;
    gap: 24px;
    margin: 0;
    transition: all 0.25s ease;
    cursor: pointer;
}

.video-card:hover {
    padding-left: 6px;
    border-radius: 8px;
}

    .video-imagen {
        width: 130px;
        height: 160px;
    }

    .video-titulo {
        font-size: 18px;
    }
}
/* PANTALLA CUESTIONARIO - ANTO */

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;
    }
}

@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;
    }
}

/* PANTALLA: RESULTADOS (ANTO) */
    
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: 30px 18px 40px; 
    box-sizing: border-box; 
    overflow: hidden; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: 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: 32px; 
    width: 100%;
} 

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

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

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

.bajada-resultado { 
    width: 100%;
    max-width: 315px; 
    margin: 0 auto 15px auto; 
    color: #00437a; 
    font-size: 14px; 
    line-height: 1.4; 
    font-weight: 500;
    text-align: center;
} 

.contenedor-tarjetas {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
} 

.tarjeta-resultado { 
    background-color: #d7eaf4; 
    border-radius: 22px; 
    padding: 24px 22px; 
    margin: 0 auto 24px auto; 
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
} 

.tarjeta-resultado:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.tarjeta-resultado h2 { 
    text-align: center; 
    color: #00437a; 
    font-size: 18px; 
    font-weight: 800; 
    margin-bottom: 18px; 
} 

.lista-items { 
    padding-left: 14px; 
    margin: 0;
} 

.lista-items li { 
    color: #00437a; 
    font-size: 13px; 
    line-height: 1.45; 
    margin-bottom: 18px; 

    transition: color 0.25s ease, padding-left 0.25s ease;
    cursor: pointer;
    position: relative;
} 

.lista-items li:hover {
    color: #8a4fc4;
    padding-left: 4px;
}

.lista-items li:last-child { 
    margin-bottom: 0; 
} 

.lista-items strong { 
    font-weight: 800; 
} 

.acciones-resultado {  
    display: flex;  
    flex-direction: column; 
    align-items: center;  
    gap: 12px;  
    margin-top: 30px;  
    width: 100%;
} 

.btn-resultado {  
    width: 100%;  
    max-width: 230px;  
    height: 45px;  
    background-color: #8a4fc4;  
    border-radius: 24px;  
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);  
    transition: all 0.2s ease;  
    box-sizing: border-box;
    cursor: pointer;
} 

.btn-resultado a {
    color: #ffffff;  
    font-family: 'Inter', sans-serif;  
    font-size: 17px;  
    font-weight: 800;  
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

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

.enlace-inicio { 
    color: #b57edc; 
    text-decoration: none;
    font-size: 14px;  
    font-weight: 500;  
    text-decoration: underline;  
    margin-top: 15px;
    display: block;
    text-align: center;
}

@media (min-width: 768px) { 
    .resultado-main { 
        max-width: 1000px;
        margin: 0 auto;
        padding: 40px 30px 60px; 
    } 
    
    .bloque-alerta { 
        max-width: 600px; 
    } 
    
    .img-alerta { 
        width: 280px; 
    } 

    .contenedor-tarjetas {
        display: flex;
        flex-direction: row;
        gap: 20px;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
        max-width: 650px;
        margin: 0 auto;
    }

    .tarjeta-resultado { 
        max-width: 315px; 
        margin: 0;
    } 
}

@media (min-width: 1024px) {
    .resultado-main {
        max-width: 2000px;
        padding: 40px 50px 60px; 
    }
    
    .contenedor-tarjetas {
        gap: 30px;
        max-width: 900px;
    }
    
    .tarjeta-resultado {
        max-width: 420px;
    }

    .acciones-resultado { 
        display: flex;             /* Asegura el contexto flex */
        flex-direction: row;       /* Alinea los botones en fila horizontal */
        justify-content: center;   /* Los centra en pantalla */
        flex-wrap: wrap;           /* Previene desbordes */
        gap: 20px;
        width: 100%;
    } 

    .acciones-resultado button.btn-resultado { 
        width: 200px;              /* Ancho fijo simétrico */
        max-width: 200px;          /* Libera el candado del max-width de mobile */
        margin: 0;
    }
}

/* PANTALLA ¿QUÉ HACER? */

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

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

.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: 0;
    pointer-events: none;
}

.contenido-que-hacer > * {
    position: relative;
    z-index: 1;
}

.cabecera-pantalla {
    text-align: center;
    margin-bottom: 26px;
    max-width: 300px;
}

.titulo-principal-violeta {
    font-family: 'Audiowide', sans-serif;
    color: #8a4fc4;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 8px;
}

.bajada-violeta {
    font-family: 'Audiowide', sans-serif;
    color: #b57edc;
    font-size: 11px;
    line-height: 1.35;
}

.bloque-paso {
    width: 100%;
    max-width: 315px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 26px;
}

.info-paso {
    text-align: center;
    margin-bottom: 10px;
    max-width: 260px;
}

.info-paso h2 {
    color: #8a4fc4;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 5px;
}

.info-paso p {
    color: #49769F;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}

.paso-tarjeta {
    width: 100%;
    background-color: #b7d7ec;
    border-radius: 26px;
    padding: 18px 18px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
    position: relative;
}

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

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

.subtitulo-icono {
    color: #00437a;
    font-size: 12px;
    font-weight: 800;
    text-decoration: underline;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.contenido-desplegable {
    margin-top: 12px;
}

.lista-que-hacer {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.lista-que-hacer li {
    color: #00437a;
    font-size: 11px;
    line-height: 1.35;
    margin-bottom: 4px;
}

.lista-que-hacer li::before {
    content: "• ";
}

.pregunta-tarjeta {
    color: #00437a;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    margin: 10px 0 5px;
}

.texto-tarjeta-centro,
.texto-tarjeta-izq {
    color: #00437a;
    font-size: 11px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.texto-tarjeta-centro {
    text-align: center;
}

.texto-tarjeta-izq {
    text-align: left;
}

.flecha-desplegable {
    width: 28px;
    height: 28px;
    background-color: #49769F;
    border-radius: 50%;
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 3px 6px rgba(0,0,0,.2);
}

.flecha-desplegable::before {
    content: "⌃";
    color: white;
    font-size: 18px;
    font-weight: 800;
    position: absolute;
    top: 4px;
    left: 8px;
}

details.paso-tarjeta[open] .flecha-desplegable {
    transform: translateX(-50%) rotate(180deg);
}

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

.btn-interno-violeta {
    background-color: #8a4fc4;
    color: #ffffff;
    border-radius: 16px;
    padding: 6px 18px;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.botones-multiples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.btn-chico {
    width: 44%;
}

.btn-ancho-completo {
    width: 60%;
}

.acciones-que-hacer {
    width: 100%;
    max-width: 315px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.btn-final-que-hacer {
    width: 220px;
    height: 38px;
    border-radius: 22px;
    background-color: #8a4fc4;
    color: white;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,.18);
}

.enlace-inicio-que-hacer {
    color: #b57edc;
    font-size: 11px;
    font-weight: 600;
    text-decoration: underline;
}

/* TABLET */

@media (min-width: 768px) {
    .contenido-que-hacer {
        padding: 50px 40px 60px;
    }

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

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

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

    .bloque-paso {
        max-width: 550px;
        margin-bottom: 40px;
    }

    .info-paso {
        max-width: 450px;
        margin-bottom: 15px;
    }

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

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

    .paso-tarjeta {
        max-width: 550px;
        padding: 24px 30px;
    }

    .subtitulo-icono {
        font-size: 14px;
    }

    .lista-que-hacer li,
    .texto-tarjeta-centro,
    .texto-tarjeta-izq,
    .pregunta-tarjeta {
        font-size: 14px;
    }

    .btn-interno-violeta {
        font-size: 13px;
        padding: 8px 22px;
    }

    .acciones-que-hacer {
        max-width: 550px;
        gap: 14px;
        margin-top: 20px;
    }

    .btn-final-que-hacer {
        width: 240px;
        height: 44px;
        font-size: 16px;
    }

    .enlace-inicio-que-hacer {
        font-size: 13px;
        margin-top: 5px;
    }
}

/* DESKTOP */

@media (min-width: 1024px) {
    body.que-hacer-page {
        background-color: #245194;
        overflow-y: auto;
    }

    body.que-hacer-page .contenido-que-hacer {
        min-height: calc(100vh - 80px);
        width: 100%;
        padding: 55px 70px 80px;
        border-radius: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "cabecera cabecera"
            "paso1 paso2"
            "paso3 paso3"
            "acciones acciones";
        gap: 42px 34px;
        align-items: start;
        justify-items: center; 
    }

    body.que-hacer-page .contenido-que-hacer::before {
        opacity: 0.22;
        background-size: cover;
        background-position: center;
    }

    body.que-hacer-page .cabecera-pantalla {
        grid-area: cabecera;
        max-width: 620px;
        margin: 0 auto;
        text-align: center;
    }

    body.que-hacer-page .titulo-principal-violeta {
        font-size: 36px;
        color: #8a4fc4;
    }

    body.que-hacer-page .bajada-violeta {
        font-size: 14px;
        color: #8a4fc4;
        font-family: 'Inter', sans-serif;
        font-weight: 700;
    }

    body.que-hacer-page .bloque-paso {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center; 
    }

    body.que-hacer-page .bloque-paso:nth-of-type(2) { grid-area: paso1; }
    body.que-hacer-page .bloque-paso:nth-of-type(3) { grid-area: paso2; }
    body.que-hacer-page .bloque-paso:nth-of-type(4) { 
        grid-area: paso3; 
        max-width: 500px; 
    }

    body.que-hacer-page .info-paso {
        text-align: center; 
    }

    body.que-hacer-page .info-paso h2 {
        color: #8a4fc4;
        font-size: 16px;
    }

    body.que-hacer-page .info-paso p {
        color: #8a4fc4;
        font-size: 12px;
    }

    body.que-hacer-page .paso-tarjeta {
        width: 100%;
        max-width: 500px;
        background-color: #b7d7ec;
        border-radius: 28px;
        padding: 24px 28px;
    }

    body.que-hacer-page .subtitulo-icono {
        font-size: 15px;
    }

    body.que-hacer-page .lista-que-hacer li,
    body.que-hacer-page .texto-tarjeta-centro,
    body.que-hacer-page .texto-tarjeta-izq {
        font-size: 15px;
    }

    body.que-hacer-page .pregunta-tarjeta {
        font-size: 15px;
    }

    body.que-hacer-page .btn-interno-violeta {
        font-size: 14px;
        padding: 8px 24px;
    }

    body.que-hacer-page .acciones-que-hacer {
        grid-area: acciones;
        width: 100%;
        max-width: 100%; 
        display: flex;
        flex-direction: row; 
        justify-content: center; 
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
        margin-top: 20px;
    }

    body.que-hacer-page button.btn-final-que-hacer {
        width: 190px;
        height: 38px;
        background-color: #ffe3d8; 
        color: #00437a;
        border-radius: 22px;
        font-size: 15px;
        font-weight: 800;
        box-shadow: 0 4px 8px rgba(0,0,0,.18);
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.que-hacer-page .enlace-inicio-que-hacer {
        color: #ffffff;
        font-size: 11px;
        text-decoration: underline;
        width: 100%;
        text-align: center;
        display: block;
        order: 3; 
        margin-top: 15px;
        margin-bottom: 0;
    }
}
