/* ==========================================================================
   Valnex // Bosque Nativo & Auditoría de Movilidad (/css/site.css)
   Arquitectura Orgánica, Asimétrica y Fluida (Sin Cuadrículas Rígidas)
   ========================================================================== */

:root {
    --forest-white: #FCFDF9;
    --forest-cream: #F4F7F2;
    --forest-moss: #3A5A40;
    --forest-leaf: #588157;
    --forest-sage: #A3B18A;
    --forest-emerald: #2B4527;
    --river-sky: #E0F2FE;
    --river-blue: #0284C7;
    --river-deep: #0369A1;
    --earth-sand: #D4A373;
    --earth-brown: #283618;
    --text-charcoal: #1C241E;
    --text-muted: #4F5D53;
    
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

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

html {
    background-color: var(--forest-white);
    color: var(--text-charcoal);
    font-family: var(--font-sans);
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--forest-white);
    color: var(--text-charcoal);
    line-height: 1.8;
    position: relative;
    overflow-x: hidden;
}

/* --- Disclaimer Superior Asimétrico --- */
.organic-disclaimer {
    background: linear-gradient(90deg, var(--earth-brown), var(--forest-moss));
    color: var(--forest-white);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 0.75rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1000;
    font-weight: 500;
    border-bottom: 2px solid var(--forest-sage);
}

.organic-disclaimer span {
    color: var(--earth-sand);
    font-weight: 700;
}

/* --- Pantalla de Carga Natural (Índice) --- */
.nature-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--forest-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-seed {
    width: 60px;
    height: 60px;
    border: 3px solid var(--forest-sage);
    border-top: 3px solid var(--forest-moss);
    border-radius: 50% 50% 50% 0;
    transform: rotate(45deg);
    animation: sproutRotate 1.2s infinite ease-in-out;
}

.loader-text {
    margin-top: 2rem;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    color: var(--forest-moss);
    text-transform: uppercase;
}

@keyframes sproutRotate {
    0% { transform: rotate(45deg) scale(0.9); }
    50% { transform: rotate(225deg) scale(1.1); border-radius: 50%; }
    100% { transform: rotate(405deg) scale(0.9); }
}

/* --- Navegación Flotante Minimalista --- */
.organic-nav {
    position: fixed;
    top: 3rem;
    right: 4rem;
    z-index: 900;
    background: rgba(252, 253, 249, 0.85);
    backdrop-filter: blur(12px);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(163, 177, 138, 0.3);
    box-shadow: 0 10px 30px rgba(58, 90, 64, 0.08);
}

.nav-leaf-cluster {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.organic-nav-item {
    text-decoration: none;
    color: var(--text-charcoal);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    transition: color 0.3s ease;
}

.organic-nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--forest-leaf);
    transition: width 0.3s ease;
}

.organic-nav-item:hover::after,
.organic-nav-item.active::after {
    width: 100%;
}

.organic-nav-item:hover,
.organic-nav-item.active {
    color: var(--forest-moss);
}

/* --- Partículas de Polinización y Hojas Flotantes --- */
.forest-particle {
    position: absolute;
    background-color: var(--forest-sage);
    border-radius: 50% 0 50% 50%;
    opacity: 0.4;
    pointer-events: none;
    animation: floatLeaf 15s infinite linear;
}

@keyframes floatLeaf {
    0% { transform: translateY(0) rotate(0deg) translateX(0); }
    50% { transform: translateY(-150px) rotate(180deg) translateX(50px); }
    100% { transform: translateY(-300px) rotate(360deg) translateX(-20px); opacity: 0; }
}

/* --- Escenas Asimétricas del Bosque (8 Secciones Mínimo) --- */
.forest-scene {
    position: relative;
    padding: 10rem 6rem;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

/* 01 — ENTRADA AL BOSQUE (Hero) */
.scene-entrance {
    background: linear-gradient(180deg, rgba(252,253,249,1) 0%, rgba(224,242,254,0.3) 100%);
    padding-top: 12rem;
}

.entrance-composition {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
}

.entrance-title {
    font-family: var(--font-serif);
    font-size: 4.8rem;
    font-weight: 300;
    line-height: 1.1;
    color: var(--forest-emerald);
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.entrance-title span {
    font-style: italic;
    color: var(--river-deep);
}

.entrance-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 550px;
}

.organic-blob-mask-1 {
    width: 100%;
    height: 550px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(43, 69, 39, 0.15);
    position: relative;
    transition: border-radius 1s ease;
}

.organic-blob-mask-1:hover {
    border-radius: 50% 50% 30% 70% / 50% 70% 30% 50%;
}

.organic-blob-mask-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 0.8s ease;
}

.organic-blob-mask-1:hover img {
    transform: scale(1.12);
}

/* 02 — CAPAS DEL BOSQUE */
.scene-layers {
    background-color: var(--forest-cream);
    position: relative;
}

.layers-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5rem;
}

.layer-column {
    flex: 1;
    background: var(--forest-white);
    padding: 4rem 3rem;
    border-radius: 40px 10px 40px 10px;
    box-shadow: 0 20px 40px rgba(163, 177, 138, 0.1);
    position: relative;
    margin-top: calc(var(--i, 0) * 4rem);
}

.layer-column h3 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--forest-moss);
    margin-bottom: 1.5rem;
}

/* 03 — EL RÍO */
.scene-river {
    background: linear-gradient(135deg, var(--forest-white) 0%, var(--river-sky) 100%);
    position: relative;
}

.river-flow-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.river-quote-box {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--river-deep);
    border-left: 4px solid var(--river-blue);
    padding-left: 2.5rem;
}

.river-graphic-wave {
    width: 100%;
    height: 380px;
    background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1000&q=80') center/cover;
    border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%;
    animation: waveMorph 8s infinite ease-in-out alternate;
}

@keyframes waveMorph {
    0% { border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%; }
    100% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
}

/* 04 — VIDA DEL BOSQUE */
.scene-wildlife {
    background-color: var(--forest-white);
}

.wildlife-asymmetric-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 3rem;
    align-items: center;
}

.wildlife-node {
    padding: 3rem;
    background: var(--forest-cream);
    border-radius: 30px;
    transition: transform 0.4s ease, background 0.4s ease;
}

.wildlife-node:hover {
    transform: translateY(-10px);
    background: var(--forest-sage);
    color: var(--forest-white);
}

.wildlife-node h4 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* 05 — CAMINATA */
.scene-walk {
    background: linear-gradient(180deg, var(--forest-white) 0%, var(--forest-cream) 100%);
    position: relative;
}

.walk-path-vertical {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-left: 2px dashed var(--forest-sage);
    padding-left: 4rem;
}

.walk-milestone {
    margin-bottom: 6rem;
    position: relative;
}

.walk-milestone::before {
    content: '';
    position: absolute;
    left: -4.43rem;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    background-color: var(--forest-moss);
    border-radius: 50%;
    border: 4px solid var(--forest-white);
}

.walk-milestone h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--forest-emerald);
    margin-bottom: 1rem;
}

/* 06 — FLORA */
.scene-flora {
    background-color: var(--forest-white);
}

.flora-collage {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 300px 300px;
    gap: 2rem;
}

.flora-img-1 { grid-column: 1 / span 2; grid-row: 1 / span 2; border-radius: 200px 20px 200px 20px; object-fit: cover; width: 100%; height: 100%; }
.flora-img-2 { grid-column: 3 / span 2; grid-row: 1; border-radius: 20px 150px 20px 150px; object-fit: cover; width: 100%; height: 100%; }
.flora-img-3 { grid-column: 3; grid-row: 2; border-radius: 50%; object-fit: cover; width: 100%; height: 100%; }
.flora-text-box { grid-column: 4; grid-row: 2; display: flex; flex-direction: column; justify-content: center; padding: 2rem; background: var(--forest-cream); border-radius: 20px; }

/* 07 — LUZ */
.scene-light {
    background: radial-gradient(circle at 70% 30%, rgba(224,242,254,0.6) 0%, rgba(252,253,249,1) 70%);
    text-align: center;
    padding: 12rem 2rem;
}

.light-monumental-text {
    font-family: var(--font-serif);
    font-size: 5rem;
    font-weight: 300;
    color: var(--forest-emerald);
    line-height: 1.1;
    max-width: 1000px;
    margin: 0 auto 3rem auto;
    letter-spacing: -0.03em;
}

.light-monumental-text span {
    color: var(--river-blue);
    font-style: italic;
}

/* 08 — ECOSISTEMA */
.scene-ecosystem {
    background-color: var(--forest-cream);
    position: relative;
}

.ecosystem-network {
    display: flex;
    justify-content: space-around;
    gap: 3rem;
    flex-wrap: wrap;
}

.ecosystem-node {
    background: var(--forest-white);
    padding: 3.5rem;
    border-radius: 50%;
    width: 320px;
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 25px 50px rgba(58, 90, 64, 0.08);
    transition: transform 0.5s ease, background 0.5s ease, color 0.5s ease;
}

.ecosystem-node:hover {
    transform: scale(1.06);
    background: var(--forest-moss);
    color: var(--forest-white);
}

.ecosystem-node h4 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* 09 — CIERRE (Salida del Bosque) */
.scene-exit {
    background: linear-gradient(180deg, var(--forest-cream) 0%, var(--forest-emerald) 100%);
    color: var(--forest-white);
    text-align: center;
    padding: 14rem 2rem;
}

.exit-title {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--forest-white);
}

.exit-btn {
    display: inline-block;
    background-color: var(--earth-sand);
    color: var(--earth-brown);
    padding: 1.2rem 3.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.exit-btn:hover {
    background-color: var(--forest-white);
    transform: translateY(-3px);
}

/* Botones Orgánicos Generales */
.organic-btn {
    display: inline-block;
    background-color: var(--forest-moss);
    color: var(--forest-white);
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none;
    border-radius: 30px;
    transition: background 0.3s ease, transform 0.2s ease;
}

.organic-btn:hover {
    background-color: var(--forest-emerald);
    transform: translateY(-2px);
}

/* Footer Natural de Salida */
.organic-footer {
    background-color: var(--earth-brown);
    color: #D4D8D0;
    padding: 5rem 4rem;
    text-align: center;
    font-size: 0.85rem;
}

.organic-footer a {
    color: var(--earth-sand);
    text-decoration: none;
    margin: 0 1rem;
}

@media(max-width: 1024px) {
    .entrance-composition, .layers-layout, .river-flow-container, .wildlife-asymmetric-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .flora-collage {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .flora-img-1, .flora-img-2, .flora-img-3, .flora-text-box {
        grid-column: 1;
        grid-row: auto;
        border-radius: 20px;
    }
    .forest-scene {
        padding: 6rem 2rem;
    }
    .organic-nav {
        top: 4rem;
        right: 1.5rem;
        padding: 0.5rem 1rem;
    }
}