/* Base Styles & Typography */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;800&family=Cinzel:wght@700;900&display=swap');

:root {
    --gold-primary: #d4af37;
    --gold-light: #f1c40f;
    --gold-dim: #b8962e;
    --bg-dark: #050505;
    --text-light: #f3f3f3;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Film grain overlay — efecto cinemático */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.032;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 180px 180px;
}

/* Utilities */
.gold-text { color: var(--gold-primary); }
.border-gold { border-color: var(--gold-primary); }

/* Gold shimmer animation para headline */
@keyframes goldShimmer {
    0%   { background-position: -400% center; }
    100% { background-position:  400% center; }
}
.gold-shimmer {
    background: linear-gradient(90deg,
        var(--gold-dim) 0%,
        var(--gold-light) 25%,
        #fff5c2 40%,
        var(--gold-primary) 55%,
        var(--gold-light) 70%,
        var(--gold-dim) 100%);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 7s linear infinite;
}

/* Buttons */
.btn-gold {
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-light));
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.55);
}

/* ── NAVBAR ─────────────────────────────── */
nav {
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease !important;
}
nav.nav-scrolled {
    background: rgba(0, 0, 0, 0.97) !important;
    box-shadow: 0 2px 40px rgba(212, 175, 55, 0.07);
    border-bottom-color: rgba(212, 175, 55, 0.14) !important;
}
.nav-logo-img {
    height: 34px;
    width: 34px;
    object-fit: contain;
    transition: opacity 0.3s ease, transform 0.3s ease;
    filter: drop-shadow(0 0 6px rgba(212,175,55,0.3));
}
.nav-logo-img:hover { opacity: 0.82; transform: scale(1.06); }

/* ── HERO ───────────────────────────────── */
.hero-bg {
    position: relative;
    background: linear-gradient(rgba(0,0,0,0.52), rgba(0,0,0,0.88)), url('lautaro.jpg');
    background-size: cover;
    background-position: center 20%;
    background-attachment: fixed;
}

/* Badge animado */
@keyframes borderPulse {
    0%, 100% { border-color: rgba(212,175,55,0.35); box-shadow: 0 0 0 rgba(212,175,55,0); }
    50%       { border-color: rgba(212,175,55,0.75); box-shadow: 0 0 16px rgba(212,175,55,0.12); }
}
.hero-badge { animation: borderPulse 3.5s ease-in-out infinite; }

/* ── SCROLL INDICATOR ───────────────────── */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    opacity: 0;
    animation: fadeInIndicator 1s ease 2s forwards;
}
@keyframes fadeInIndicator { to { opacity: 1; } }
.scroll-indicator-text {
    font-size: 0.58rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}
.scroll-indicator-line {
    width: 1px; height: 44px;
    background: rgba(212,175,55,0.15);
    position: relative; overflow: hidden;
    border-radius: 4px;
}
.scroll-indicator-dot {
    position: absolute; top: -14px; left: 0;
    width: 1px; height: 14px;
    background: linear-gradient(to bottom, transparent, var(--gold-primary));
    animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop {
    0%   { top: -14px; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { top: 44px;  opacity: 0; }
}

/* ── SECTION DIVIDER ────────────────────── */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(212,175,55,0.22), transparent);
    margin: 0;
    border: none;
}

/* ── STATS SECTION ──────────────────────── */
.stats-section {
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: relative;
}
.stat-number {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gold-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 0 40px rgba(212,175,55,0.18);
    transition: text-shadow 0.4s ease;
}
.stat-number:hover { text-shadow: 0 0 60px rgba(212,175,55,0.35); }
.stat-label {
    font-size: 0.65rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    line-height: 1.6;
}
.stat-divider {
    width: 1px; min-height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.07), transparent);
    align-self: center; flex-shrink: 0;
}
.stats-source {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.15);
    font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase;
}
.stats-source i { font-size: 0.75rem; }

/* Mobile stats grid (5 items) */
@media (max-width: 767px) {
    .stats-wrap {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        flex-direction: unset !important;
        flex-wrap: unset !important;
    }
    .stats-wrap .stat-divider { display: none !important; }
    .stats-wrap .stat-last-mobile { grid-column: span 2; border-top: 1px solid rgba(255,255,255,0.04); }
}

/* ── PORTFOLIO ──────────────────────────── */
.portfolio-item {
    position: relative; overflow: hidden;
    border-radius: 16px; background: #0a0a0a;
    border: 1px solid #1a1a1a;
    transition: all 0.4s ease;
}
.portfolio-item:hover {
    transform: translateY(-8px);
    border-color: var(--gold-primary);
    box-shadow: 0 20px 50px rgba(212,175,55,0.18);
}
.portfolio-item img {
    width: 100%; height: 280px;
    object-fit: cover; transition: transform 0.5s ease, filter 0.5s ease;
}
.portfolio-item:hover img { transform: scale(1.12); filter: brightness(1.08); }

/* Flagship Lautaro */
.portfolio-featured {
    border-color: rgba(212,175,55,0.22) !important;
    box-shadow: 0 0 0 1px rgba(212,175,55,0.06), inset 0 0 40px rgba(212,175,55,0.02);
}
.portfolio-featured img { height: 340px; }
.portfolio-featured:hover {
    box-shadow: 0 24px 60px rgba(212,175,55,0.25) !important;
}
.portfolio-flagship-badge {
    position: absolute; top: 14px; right: 14px;
    background: linear-gradient(45deg, var(--gold-dim), var(--gold-primary));
    color: #000;
    font-size: 0.5rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.18em;
    padding: 4px 12px; border-radius: 20px;
    z-index: 10;
}

.portfolio-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    padding: 28px 24px 24px;
    transition: padding 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay { padding-bottom: 28px; }

.portfolio-cta {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px;
    font-size: 0.67rem; font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase; letter-spacing: 0.14em;
    opacity: 0; transform: translateY(8px);
    transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}
.portfolio-item:hover .portfolio-cta { opacity: 1; transform: translateY(0); }

/* ── PROCESS ────────────────────────────── */
.process-grid { position: relative; }
@media (min-width: 768px) {
    .process-grid::before {
        content: '';
        position: absolute;
        top: 32px;
        left: calc(16.66% + 40px);
        right: calc(16.66% + 40px);
        height: 1px;
        background: linear-gradient(to right,
            rgba(212,175,55,0.25), rgba(212,175,55,0.08), rgba(212,175,55,0.25));
        pointer-events: none;
    }
}
.process-number {
    width: 64px; height: 64px;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.28);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    position: relative; z-index: 1;
}
.process-step { background: rgba(18,18,18,0.6); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 2rem; transition: border-color 0.3s ease, transform 0.3s ease; }
.process-step:hover { border-color: rgba(212,175,55,0.22); transform: translateY(-4px); }
.process-step:hover .process-number { background: rgba(212,175,55,0.14); box-shadow: 0 0 24px rgba(212,175,55,0.12); }

/* ── VIDEO CONTAINER ────────────────────── */
.video-container {
    position: relative; padding-bottom: 56.25%;
    height: 0; overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(212,175,55,0.18);
    box-shadow: 0 0 60px rgba(212,175,55,0.08);
}
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* ── SERVICE CARDS ──────────────────────── */
.service-card {
    background: rgba(14,14,14,0.9);
    backdrop-filter: blur(10px);
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    border: 1px solid #262626;
}
@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.service-card .w-14 { animation: float 4s ease-in-out infinite; }
.service-card:hover {
    transform: translateY(-14px) scale(1.02) !important;
    border-color: var(--gold-primary);
    box-shadow: 0 12px 40px rgba(212,175,55,0.18);
    z-index: 10;
}
.service-badge {
    position: absolute; top: -13px; left: 50%;
    transform: translateX(-50%);
    background: var(--gold-primary); color: #000;
    font-size: 0.6rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.12em;
    padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.price-tag { font-size: 1.2rem; font-weight: 800; color: var(--gold-primary); margin: 0.75rem 0 1rem; }
.benefits { list-style: none; padding: 0; margin: 0; }
.benefits li { font-size: 0.78rem; color: #666; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.benefits li:last-child { border-bottom: none; }
.promo-tag { display: block; margin-top: 1rem; font-size: 0.68rem; color: #555; font-style: italic; }

/* ── WHY US ─────────────────────────────── */
.why-us-section { background: linear-gradient(to bottom, #050505, #070707); }
.why-us-card {
    background: rgba(12,12,12,0.95);
    border: 1px solid rgba(212,175,55,0.09);
    border-radius: 20px; padding: 2.5rem 2rem; text-align: center;
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.why-us-card:hover {
    border-color: rgba(212,175,55,0.42); transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(212,175,55,0.07);
}
.why-us-icon {
    width: 72px; height: 72px;
    background: rgba(212,175,55,0.06);
    border: 1px solid rgba(212,175,55,0.18);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.why-us-card:hover .why-us-icon { background: rgba(212,175,55,0.13); border-color: rgba(212,175,55,0.4); }

/* ── CTA PATHS ──────────────────────────── */
.cta-path-card {
    background: rgba(12,12,12,0.85);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px; padding: 2.5rem 2rem; text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
}
.cta-path-card:hover {
    border-color: rgba(212,175,55,0.32); transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(212,175,55,0.06);
}

/* ── METRIC PILLS (hero) ────────────────── */
.metric-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--gold-primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.metric-pill:hover {
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.55);
}

/* ── TAGS & MISC ────────────────────────── */
.category-tag {
    display: inline-block;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.32);
    color: var(--gold-primary);
    font-size: 0.6rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.16em;
    padding: 4px 10px; border-radius: 20px;
}

/* ── FOOTER ─────────────────────────────── */
footer {
    background: linear-gradient(to bottom, #030303, #000) !important;
}
.trust-check {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.72rem; color: #3a3a3a; letter-spacing: 0.04em;
}
.trust-check i { color: var(--gold-primary); font-size: 0.6rem; }
.footer-logo-text {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.15em;
}

/* ── ANIMATIONS ─────────────────────────── */
.animate-on-scroll {
    opacity: 0 !important;
    transform: translateY(28px) !important;
    transition: opacity 0.75s ease-out, transform 0.75s ease-out !important;
    will-change: opacity, transform;
}
.animate-on-scroll.visible { opacity: 1 !important; transform: translateY(0) !important; }

/* Particles */
#particles-js {
    position: absolute; width: 100%; height: 100%;
    top: 0; left: 0; z-index: 0; pointer-events: none;
}
