/* --- Reset y Configuración Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    color: #e5e5e5;
    font-family: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
}

/* --- Encabezado --- */
header {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;       /* Espaciado elegante entre letras */
    color: #ffffff;
    text-decoration: none;
}

/* Botón Hamburguesa */
.menu-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
    padding: 0;
    z-index: 101;
}

.menu-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-hamburger.active span:nth-child(2) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Menú Desplegable --- */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.98);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.nav-menu {
    list-style: none;
    text-align: center;
    max-height: 70vh;
    overflow-y: auto;
    padding: 20px;
}

.nav-item {
    margin-bottom: 25px;
}

.nav-link {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #888888;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    padding: 5px 15px;
}

.nav-link:hover {
    color: #ffffff;
}

/* --- Bloque de Contenido --- */
main {
    flex: 1;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 30px;
}

.content-article {
    width: 100%;
}

.quote-highlight {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    line-height: 1.4;
    color: #ffffff;
    margin-bottom: 40px;
    font-style: italic;
}

.text-body {
    font-size: 24px;
    font-weight: 400;
    color: #cccccc;
    margin-bottom: 30px;
    letter-spacing: 0.2px;
    text-align: justify; /* Justificado perfecto */
}

/* Color gris oscuro específico para el texto dentro de los paréntesis */
.parentesis-oscuro {
    color: #555555 !important; 
    font-weight: 400;
}

/* --- Botón Sutil --- */
.nav-next-container {
    margin-top: 60px;
    display: flex;
    justify-content: flex-start;
}

.btn-next {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    font-size: 20px;
    color: #888888;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 10px 0;
}

.btn-next:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.btn-next .arrow {
    font-family: sans-serif;
    font-size: 22px;
    line-height: 1;
}

/* --- Pie de Página --- */
footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px;
    font-size: 16px;
    color: #444444;
    text-align: left;
}

/* --- Responsivo --- */
@media (max-width: 768px) {
    header, footer { padding: 30px 20px; }
    main { padding: 40px 20px; }
    .quote-highlight { font-size: 32px; }
    .text-body { 
        font-size: 21px; 
        text-align: left; /* En móviles se desactiva el justificado para no romper palabras */
    }
    .nav-link { font-size: 26px; }
    .btn-next { font-size: 18px; }
}
