/* style.css - The Division Bell / Human Soul */

:root {
    /* Paleta Orgánica: Cielo, Piedra, Tierra */
    --void-dark: #0f1319;
    --sky-haze: #2c3e50;
    --stone-blue: #5D737E;
    --hope-amber: #d4a373; /* Un dorado suave, no neón */
    --mist: rgba(255, 255, 255, 0.05);
    
    --text-main: #e0e6ed;
    --text-secondary: #9aa5b1;
    
    /* Tipografías */
    --font-heading: 'Cinzel', serif; /* Majestuosa, como las estatuas */
    --font-body: 'Lora', serif; /* Legible, literaria, humana */
}

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

body {
    background-color: var(--void-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.9; /* Más espacio para respirar */
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* TEXTURA DE GRANO (FILM GRAIN) - Para quitarle lo "digital" */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 99;
    opacity: 0.4;
}

/* FONDO ATMOSFÉRICO - El Cielo de Division Bell */
.background-scape {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 50% 100%, #2c3e50 0%, #0f1319 60%),
        radial-gradient(circle at 80% 20%, rgba(93, 115, 126, 0.2) 0%, transparent 40%);
}

.container {
    max-width: 850px;
    margin: 0 auto;
    padding: 6rem 2rem;
    position: relative;
    z-index: 1;
}

/* TIPOGRAFÍA HUMANA */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.05em;
}

header {
    text-align: center;
    margin-bottom: 8rem;
    position: relative;
}

/* La línea divisoria de luz */
header::after {
    content: '';
    display: block;
    width: 1px;
    height: 100px;
    background: linear-gradient(to bottom, var(--hope-amber), transparent);
    margin: 2rem auto 0;
    opacity: 0.5;
}

h1 {
    font-size: 3.5rem;
    color: var(--text-main);
    text-shadow: 0 0 30px rgba(212, 163, 115, 0.2);
    margin-bottom: 1.5rem;
}

.intro-quote {
    font-style: italic;
    color: var(--hope-amber);
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* SECCIONES */
section { margin-bottom: 6rem; }

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.section-line {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.1);
}

.section-title {
    font-size: 1.2rem;
    color: var(--stone-blue);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* TARJETAS - Menos caja, más atmósfera */
.card {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 2.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-radius: 4px;
    transition: all 0.5s ease;
    margin-bottom: 2rem; /* Separación vertical */
    position: relative;
}

/* Brillo sutil al hacer hover */
.card:hover {
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.card:hover h3 {
    color: var(--hope-amber); /* El título se ilumina */
}

.card-meta {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--stone-blue);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* FOOTER */
footer {
    text-align: center;
    margin-top: 8rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    color: #555;
    font-family: var(--font-heading);
}

/* --- MOBILE OPTIMIZATION (Al final de style.css) --- */

@media (max-width: 768px) {
    /* Ajustar contenedor para que no tenga tanto margen */
    .container {
        padding: 6rem 1.5rem 4rem 1.5rem; /* Menos padding lateral */
        max-width: 100%;
    }

    /* Títulos más pequeños en móvil */
    h1 {
        font-size: 2.5rem; /* Bajamos de 3.5rem a 2.5rem */
        line-height: 1.2;
    }

    .intro-text {
        font-size: 1rem;
    }

    /* Las tarjetas ocupan todo el ancho */
    .grid {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 1.5rem;
    }

    /* Ajuste del menú lateral en el artículo (simbolos.html) */
    .sidebar {
        width: 100% !important;
        height: 60px;
        bottom: 0;
        top: auto;
        flex-direction: row;
        justify-content: space-around;
        padding: 0;
        border-right: none;
        border-top: 1px solid rgba(255,255,255,0.1);
        background: rgba(15, 19, 25, 0.98);
    }

    .sidebar:hover { width: 100% !important; }
    
    .nav-link { 
        flex-direction: column; 
        padding: 5px 0; 
        border-left: none;
        border-top: 2px solid transparent;
        font-size: 0.7rem;
    }

    .nav-link:hover {
        border-top-color: var(--hope-amber);
        background: transparent;
    }

    .nav-icon { min-width: auto; font-size: 1.2rem; margin-bottom: 2px; }
    .nav-text { opacity: 1; font-size: 0.6rem; display: block; }
    
    /* Ajuste para que el contenido no quede tapado por la barra de abajo */
    .pl-20 { padding-left: 0 !important; }
    .min-h-screen { padding-bottom: 80px; }
}