/* --- IMPORTACIÓN DE FUENTES --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@600;700;800&display=swap'); 

@font-face {
    font-family: 'Garet';
    src: url('fuentes/Garet-Book.woff2') format('woff2'),
         url('fuentes/Garet-Book.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; 
}

/* --- RESETEO GENERAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Garet', sans-serif; /* Garet para todo el texto por defecto */
}

body {
    background-color: #f8fafc;
    width: 100%;
    overflow-x: hidden; 
}

/* --- HEADER INSTITUCIONAL --- */
.header-texto {
    background-color: #2F7F88;
    width: 100%; 
    position: sticky;
    top: 0;
    padding: 5px 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-texto {
    display: flex;
    justify-content: space-between; /* Mantiene el logo a la izquierda y el botón a la derecha */
    align-items: center;
    padding: 0 5%;
    height: 75px;
    max-width: 100%; 
    margin: 0 auto;
}

/* Logo alineado a la izquierda */
.logo {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    cursor: pointer;
    color: #ffffff;
    /* Se elimina el margin-left negativo y el position relative para que fluya natural */
}

/* Ya no necesitamos nav-spacer si usamos space-between y quitamos el centrado forzado */
.nav-spacer {
    display: none; 
}

.btn-volver {
    font-family: 'Garet', sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-weight: normal;
    font-size: 1.20rem; /* Ajuste sutil del tamaño */
    padding: 8px 12px;
    border-radius: 6px;
    transition: color 0.3s ease, transform 0.2s ease;
}

.btn-volver:hover {
    color: #f1c40f;
    transform: translateX(-3px);
}

/* --- HOJA EN BLANCO Y TEXTO LEGIBLE --- */
.contenedor-hoja {
    max-width: 850px;
    margin: 50px auto 90px;
    padding: 0 20px;
}

.hoja-texto {
    background-color: #ffffff;
    padding: 50px 60px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hoja-texto p {
    font-family: 'Garet', sans-serif;
    color: #1e293b;
    font-size: 1.125rem; 
    line-height: 1.8; 
    text-align: justify;
    hyphens: auto;
    margin-bottom: 24px;
}

.hoja-texto p:last-child {
    margin-bottom: 0;
}

/* --- FOOTER NEGRO --- */
.footer-negro {
    background-color: #000000;
    width: 100%;
    padding: 20px 0;
}

.footer-contenido-simple {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: center; /* Centra el texto del footer */
}

.texto-derechos {
    font-family: 'Garet', sans-serif; /* Aplica Garet al footer */
    color: #d1d5db;
    margin: 0;
}

/* --- ADAPTACIÓN MÓVIL --- */
@media (max-width: 768px) {
    .nav-texto {
        padding: 0 20px;
        height: 70px;
    }

    .logo {
        font-size: 1.3rem; 
        letter-spacing: 1px;
    }

    .btn-volver {
        font-size: 1.05rem; 
        font-weight: normal; 
        padding: 6px 0;
    }

    .hoja-texto {
        padding: 28px 20px;
    }

    .hoja-texto p {
        font-size: 1rem;
        text-align: left; /* Alineación izquierda en móviles para mejor lectura */
        line-height: 1.7;
    }

    .contenedor-logos-institucionales {
        gap: 14px;              /* Reduce la distancia entre logos en pantallas pequeñas */
        padding: 10px 12px;
    }

    .logo-institucional {
        max-height: 50px;      /* Escala hacia abajo el alto máximo en celular */
    }
}