/* ============================================
   PATAGONIA LACUSTRE · LANDING
   somospatagonialacustre.cl
   Paleta inspirada en el territorio del Ranco
   ============================================ */

/* ===== VARIABLES ===== */
:root {
    /* Paleta principal - Sepia / Dorado / Bosque
       Inspirada en el logo y en expediciones clásicas */
    --color-sepia-profundo: #5a4423;
    --color-sepia: #8b6f47;
    --color-dorado: #b89968;
    --color-dorado-claro: #d4b88a;
    --color-crema: #f5ecd8;
    
    --color-bosque-profundo: #3a4a35;
    --color-bosque: #5b6e4a;
    --color-bosque-claro: #8aa176;
    
    --color-lago: #34536b;
    --color-lago-claro: #6e8aa3;
    
    --color-atardecer: #c8702f;
    --color-atardecer-claro: #e09558;
    
    /* Neutros */
    --color-piedra: #2d2820;
    --color-niebla: #9a9285;
    --color-papel: #faf6ed;
    --color-blanco: #ffffff;
    --color-negro: #1a1612;
    
    /* Tipografía */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    
    /* Espaciado */
    --section-pad: clamp(4rem, 10vw, 8rem);
    --container: min(1200px, 92vw);
    
    /* Transiciones */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-piedra);
    background: var(--color-papel);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s var(--ease);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ===== UTILIDADES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    background: var(--color-sepia-profundo);
    color: var(--color-blanco);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.01em;
    border-radius: 50px;
    transition: all 0.3s var(--ease);
    cursor: pointer;
    border: 2px solid var(--color-sepia-profundo);
}

.btn:hover {
    background: var(--color-bosque);
    border-color: var(--color-bosque);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(90, 68, 35, 0.3);
}

.btn--small {
    padding: 0.6rem 1.3rem;
    font-size: 0.9rem;
}

.btn--hero {
    background: var(--color-blanco);
    color: var(--color-sepia-profundo);
    border-color: var(--color-blanco);
    padding: 1.1rem 2.4rem;
    font-size: 1.05rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn--hero:hover {
    background: var(--color-sepia-profundo);
    color: var(--color-blanco);
    border-color: var(--color-sepia-profundo);
}

.btn--cta {
    padding: 1.2rem 2.8rem;
    font-size: 1.1rem;
    background: var(--color-blanco);
    color: var(--color-sepia-profundo);
    border-color: var(--color-blanco);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
}

.btn--cta:hover {
    background: var(--color-atardecer);
    color: var(--color-blanco);
    border-color: var(--color-atardecer);
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.4s var(--ease);
    background: transparent;
}

.header.scrolled {
    background: rgba(90, 68, 35, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    padding: 0.6rem 0;
}

.header__inner {
    width: var(--container);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--color-blanco);
    transition: opacity 0.3s var(--ease);
}

.header__logo img {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s var(--ease);
}

.header__logo:hover img {
    transform: scale(1.05) rotate(-3deg);
}

.header__logo-text {
    letter-spacing: 0.02em;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__nav a {
    color: var(--color-blanco);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    position: relative;
}

.header__nav a:not(.btn):hover {
    color: var(--color-atardecer-claro);
}

.header__nav a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-atardecer);
    transition: width 0.3s var(--ease);
}

.header__nav a:not(.btn):hover::after {
    width: 100%;
}

.header__nav .btn {
    background: var(--color-atardecer);
    border-color: var(--color-atardecer);
    color: var(--color-blanco);
}

.header__nav .btn:hover {
    background: var(--color-blanco);
    color: var(--color-sepia-profundo);
    border-color: var(--color-blanco);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.25) 50%,
        rgba(90, 68, 35, 0.75) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-blanco);
    padding: 2rem;
    width: var(--container);
    max-width: 800px;
}

.hero__logo {
    width: clamp(90px, 12vw, 140px);
    height: clamp(90px, 12vw, 140px);
    margin: 0 auto 2rem;
    filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5));
    animation: heroLogoIn 1.2s var(--ease) 0.3s both;
}

.hero__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin-bottom: 0.8rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: heroTitleIn 1.2s var(--ease) 0.5s both;
}

.hero__tagline {
    font-size: clamp(1.15rem, 2.5vw, 1.5rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    margin-bottom: 1.2rem;
    opacity: 0.95;
    animation: heroTitleIn 1.2s var(--ease) 0.7s both;
}

.hero__sub {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 300;
    line-height: 1.5;
    max-width: 540px;
    margin: 0 auto 2.5rem;
    opacity: 0.88;
    animation: heroTitleIn 1.2s var(--ease) 0.9s both;
}

.hero .btn--hero {
    animation: heroTitleIn 1.2s var(--ease) 1.1s both;
}

.hero__scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-blanco);
    text-align: center;
    opacity: 0.8;
    z-index: 2;
    animation: scrollHintIn 1.5s var(--ease) 1.5s both;
}

.hero__scroll-hint span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero__scroll-dot {
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes heroLogoIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollHintIn {
    from { opacity: 0; }
    to { opacity: 0.8; }
}

@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.3; }
}

/* ===== SECCIONES ===== */
.section {
    padding: var(--section-pad) 0;
    overflow: hidden;
}

.section--reveal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    width: var(--container);
    margin: 0 auto;
    align-items: center;
}

.section--reverse .section__media {
    order: 2;
}

.section__media {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4 / 5;
}

.section__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
    will-change: transform;
}

.section__media:hover img {
    transform: scale(1.04);
}

.section__content {
    padding: 1rem 0;
}

.section__eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-atardecer);
    margin-bottom: 1.5rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--color-atardecer);
}

.section__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
    color: var(--color-sepia-profundo);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section__text {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.75;
    color: var(--color-piedra);
    max-width: 540px;
}

.section__list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.section__list li {
    padding-left: 1.8rem;
    position: relative;
    font-size: 1rem;
    color: var(--color-piedra);
    line-height: 1.5;
}

.section__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    background: var(--color-atardecer);
    border-radius: 50%;
}

/* ===== CTA FINAL ===== */
.cta {
    position: relative;
    padding: clamp(5rem, 12vw, 9rem) 0;
    overflow: hidden;
    text-align: center;
    color: var(--color-blanco);
}

.cta__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(90, 68, 35, 0.7) 0%,
        rgba(200, 112, 47, 0.4) 100%
    );
}

.cta__content {
    position: relative;
    z-index: 2;
    width: var(--container);
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem;
}

.cta__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta__sub {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta__nota {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
    letter-spacing: 0.05em;
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    color: var(--color-blanco);
    overflow: hidden;
    padding: clamp(4rem, 8vw, 6rem) 0 2rem;
}

.footer__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.footer__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(90, 68, 35, 0.93),
        rgba(58, 74, 53, 0.95)
    );
}

.footer__content {
    position: relative;
    z-index: 2;
    width: var(--container);
    margin: 0 auto;
}

.footer__brand {
    text-align: center;
    margin-bottom: 3rem;
}

.footer__brand img {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3));
}

.footer__brand h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.footer__brand p {
    font-size: 0.95rem;
    opacity: 0.85;
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__col {
    text-align: center;
}

.footer__col h4 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-atardecer-claro);
    margin-bottom: 1rem;
}

.footer__col a,
.footer__col span {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s var(--ease);
}

.footer__col a:hover {
    color: var(--color-blanco);
}

.footer__soon {
    opacity: 0.6;
    font-style: italic;
}

.footer__bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.7;
    letter-spacing: 0.02em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .header__logo-text {
        display: none;
    }
    
    .header__nav {
        gap: 1rem;
    }
    
    .section--reveal {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .section--reverse .section__media {
        order: 0;
    }
    
    .section__media {
        aspect-ratio: 4 / 3;
    }
    
    .hero__sub {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .header__nav a:not(.btn) {
        display: none;
    }
    
    .btn {
        padding: 0.9rem 1.6rem;
        font-size: 0.95rem;
    }
    
    .btn--hero {
        padding: 1rem 2rem;
    }
}

/* ===== ANIMACIONES SCROLL (clases para GSAP) ===== */
.reveal-up {
    opacity: 0;
    transform: translateY(60px);
}

.reveal-fade {
    opacity: 0;
}

/* Sin animaciones para usuarios que prefieren reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
