/* ==== TOKENS ==== */
:root {
    --bg-deep: #050505; /* Even deeper black */
    --bg-card: rgba(20, 20, 20, 0.4);
    --bg-card-hover: rgba(30, 30, 30, 0.6);
    --gold: #C9A96E;
    --text-white: #f5f5f7; /* Apple style off-white */
    --text-mute: #86868b;
    --font-main: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-deep);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.04em; }

/* UTILS */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.section-padding { padding: 8rem 0; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.gold { color: var(--gold); }

/* TYPOGRAPHY */
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem; display: block; }
.serif-title { font-family: var(--font-serif); font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.serif-title.small { font-size: 1.7rem; margin-bottom: 1.5rem; letter-spacing: 0; }
.section-header-left { text-align: left; margin-bottom: 3rem; }

/* ==== BUTTONS ==== */
.btn-primary, .btn-secondary, .btn-nav {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--text-white);
    color: var(--bg-deep);
    padding: 1.2rem 2.8rem;
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}
.btn-primary:hover {
    background-color: var(--gold);
    color: var(--bg-deep);
    box-shadow: 0 4px 20px rgba(201, 169, 110, 0.3);
    transform: scale(1.02);
}

.btn-secondary {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-white);
    padding: 1.2rem 2.8rem;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    background-color: rgba(255,255,255,0.08);
}

.btn-large {
    font-size: 1.15rem;
    padding: 1.4rem 4rem;
}

/* ==== NAVBAR ==== */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 1rem 0;
}
.nav-container {
    max-width: 1400px; margin: 0 auto; padding: 0 5%;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    display: flex;
    align-items: center;
}
.site-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}
.site-logo:hover {
    transform: scale(1.05);
}

.nav-links { display: flex; gap: 3rem; list-style: none; }
.nav-links a { color: var(--text-mute); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-white); }
.btn-nav {
    border: 1px solid var(--border-subtle);
    padding: 0.6rem 1.8rem;
    font-size: 0.9rem;
}
.btn-nav:hover { background: var(--text-white); color: var(--bg-deep); }
.mobile-menu { display: none; font-size: 1.5rem; cursor: pointer; }

/* ==== HERO ==== */
.hero {
    position: relative;
    height: 100vh; min-height: 700px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    overflow: hidden; text-align: center;
}
.hero-video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(5,5,5,0.4) 0%, rgba(5,5,5,0.8) 100%);
    z-index: 1;
}

/* Subtle Animated Overlay (Grid/Waves) */
.hero-overlay-animated {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    background-image: 
        linear-gradient(rgba(201, 169, 110, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 169, 110, 0.1) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.15;
    animation: pan-grid 90s linear infinite;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

@keyframes pan-grid {
    0% { background-position: 0 0; }
    100% { background-position: 800px 800px; }
}

.hero-content {
    position: relative; z-index: 3; padding: 0 5%; max-width: 1000px;
}
.hero h1 { font-size: clamp(3.5rem, 7vw, 6rem); line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -0.05em; background: linear-gradient(180deg, #fff 0%, #aaa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent;}
.hero p { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--text-mute); margin-bottom: 3.5rem; max-width: 700px; margin-left: auto; margin-right: auto;}
.hero-actions { display: flex; justify-content: center; gap: 1.5rem; }

.scroll-indicator {
    position: absolute; bottom: 50px; z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: 15px;
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px; color: rgba(255,255,255,0.4);
    opacity: 0.8; transition: var(--transition);
}
.scroll-indicator:hover { opacity: 1; }
.scroll-indicator .line {
    width: 1px; height: 50px; background: rgba(255,255,255,0.1); position: relative; overflow: hidden;
}
.scroll-indicator .line::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 50%;
    background: var(--gold); animation: scroll-down 2.5s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes scroll-down {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(250%); }
}

/* ==== SERVICES ==== */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.service-card {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: var(--transition);
}
.service-card:hover { border-color: rgba(201, 169, 110, 0.2); transform: translateY(-5px); }

.card-top { margin-bottom: 2rem; }
.card-badge { 
    display: inline-block; border: 1px solid rgba(201, 169, 110, 0.3); color: var(--gold); 
    padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 1.5rem;
}
.icon-box { 
    width: 3.5rem; height: 3.5rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.icon-box .card-icon { width: 1.5rem; height: 1.5rem; color: var(--gold); }

.card-body p { font-size: 0.95rem; line-height: 1.6; color: #a1a1aa; margin-bottom: 2rem; }

.card-footer { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 1.5rem; margin-top: auto; }
.card-footer span { font-size: 0.75rem; color: #71717a; line-height: 1.4; display: block; }

/* ==== 360 EXPERIENCE ==== */
.section-title h2 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; letter-spacing: -0.04em; }
.section-title p { color: var(--text-mute); font-size: 1.3rem; }

.iframe-container {
    margin-top: 4rem;
    width: 100%; height: 75vh; min-height: 600px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(201, 169, 110, 0.1);
    position: relative;
    background: #000;
}
.iframe-container iframe { width: 100%; height: 100%; border: none; }

.experience-footer { margin-top: 5rem; }
.experience-footer p {
    font-size: 1.3rem; color: var(--text-mute); margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* ==== BENEFITS ==== */
.benefits {
    position: relative;
    background-image: url('./paisaje.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
.benefits::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, #050505 0%, rgba(10,10,10,0.8) 50%, #050505 100%);
    z-index: 1;
}
.benefits .container { position: relative; z-index: 2; }

.benefits-grid {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 6rem 0;
}
.benefit-item {
    text-align: center; flex: 1; border-right: 1px solid var(--border-subtle);
}
.benefit-item:last-child { border-right: none; }
.benefit-item h4 {
    font-size: clamp(1.8rem, 3vw, 2.8rem); letter-spacing: -0.03em;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* ==== HOW IT WORKS ==== */
.steps-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem;
}
.step { position: relative; }
.step-num {
    font-size: 1.2rem; color: var(--gold); font-weight: 700; margin-bottom: 1.5rem; display: block;
    font-family: monospace; letter-spacing: 2px;
}
.step h3 { font-size: 2.2rem; line-height: 1.2; letter-spacing: -0.03em; }

/* ==== PRICING ==== */
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: start;
}
.price-tier {
    padding: 3.5rem 2.5rem; 
    border-radius: 16px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; flex-direction: column; text-align: left; transition: var(--transition);
}
.price-tier:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.price-tier.highlight {
    border: 1px solid var(--gold);
    background: #0a0a0a;
    position: relative;
    transform: scale(1.03);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}
.price-tier.highlight:hover { transform: scale(1.03) translateY(-5px); }

.popular-badge {
    position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
    background: var(--gold); color: #000; font-size: 0.75rem; font-weight: 700;
    letter-spacing: 1.5px; padding: 0.5rem 1.5rem; border-radius: 30px;
}

.tier-header { border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 2rem; margin-bottom: 2rem; }
.tier-header h3 { font-size: 1.25rem; font-family: var(--font-main); letter-spacing: 0; color: #f5f5f7; margin-bottom: 0.5rem; }
.tier-header p { color: #71717a; font-size: 0.95rem; line-height: 1.5; min-height: 3em; }

.features-list { list-style: none; margin-bottom: 3rem; flex-grow: 1; min-height: 330px; }
.features-list li {
    display: flex; align-items: flex-start; gap: 0.8rem;
    font-size: 0.95rem; color: #d4d4d8; margin-bottom: 1.2rem; line-height: 1.5;
}
.features-list li i { color: var(--gold); font-size: 1.2rem; margin-top: 0.1rem; }

.btn-outline-gold {
    display: flex; justify-content: center; align-items: center;
    width: 100%; padding: 1.2rem; border-radius: 8px;
    border: 1px solid rgba(201, 169, 110, 0.3);
    color: var(--gold); font-weight: 600; font-size: 0.95rem;
    transition: var(--transition);
}
.btn-outline-gold:hover { background: rgba(201, 169, 110, 0.08); border-color: var(--gold); }

.btn-solid-gold {
    display: flex; justify-content: center; align-items: center;
    width: 100%; padding: 1.2rem; border-radius: 8px;
    background: var(--gold);
    color: #000; font-weight: 700; font-size: 0.95rem;
    transition: var(--transition);
}
.btn-solid-gold:hover { background: #b0915a; }

/* ==== FINAL CTA ==== */
.final-cta {
    position: relative;
    background-image: url('./paisaje2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    min-height: 80vh;
}
.final-cta::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, #050505 0%, rgba(10,10,10,0.6) 50%, #050505 100%);
    z-index: 1;
}
.final-cta .container { position: relative; z-index: 2; width: 100%; }
.massive-text {
    font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.1; letter-spacing: -0.05em;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.site-footer {
    text-align: center; padding: 4rem 0; border-top: 1px solid var(--border-subtle);
    color: var(--text-mute); font-size: 0.95rem;
}

/* ==== FLOATING WHATSAPP ==== */
.floating-wa {
    position: fixed; bottom: 40px; right: 40px;
    width: 65px; height: 65px; border-radius: 50%;
    background: #25D366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem; z-index: 9999;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4); }
    100% { transform: translateY(0px); }
}
.floating-wa:hover { 
    transform: scale(1.1) translateY(-5px); 
    background: #1ebc59; 
    animation-play-state: paused;
}

/* ==== ANIMATIONS ==== */
.reveal {
    opacity: 0; transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up {
    opacity: 0; transform: translateY(50px);
    animation: fadeUpAnim 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeUpAnim {
    to { opacity: 1; transform: translateY(0); }
}
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }

/* ==== RESPONSIVE ==== */
@media (max-width: 992px) {
    .services-grid, .pricing-grid, .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
    .price-tier.highlight { transform: scale(1); }
    .benefits-grid { flex-direction: column; gap: 3rem; border: none; padding: 2rem 0; }
    .benefit-item { border-right: none; width: 100%; border-bottom: 1px solid var(--border-subtle); padding-bottom: 2.5rem; }
    .benefit-item:last-child { border-bottom: none; }
    .floating-wa { bottom: 20px; right: 20px; width: 55px; height: 55px; font-size: 1.8rem; }
}

@media (max-width: 768px) {
    .nav-links, .btn-nav { display: none; }
    .mobile-menu { display: block; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions a { width: 100%; display: flex; }
    .section-padding { padding: 6rem 0; }
}

/* ==== MOBILE PARALLAX FIX ==== */
@media (hover: none) and (pointer: coarse), (-webkit-touch-callout: none) {
    .benefits, .final-cta {
        background-attachment: scroll;
    }
}
