/* =========================================
   AGENCIA85∞ — Styles v18.0 (No Sidebar)
   ========================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --emerald: #2DD47B;
    --emerald-dim: rgba(45,212,123,0.15);
    --bronze: #FEAF62;
    --red: #FF4B4B;
    --black: #06080A; 
    --dark: #0A0D12;
    --glass: rgba(10, 14, 20, 0.4);
    --glass-border: rgba(255,255,255,0.05);
    --text: #FFFFFF;
    --text-dim: rgba(255,255,255,0.55);
    --text-body: rgba(255,255,255,0.75);
    --font-title: 'Anton', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
}

html { font-size: 16px; scrollbar-width: thin; scrollbar-color: var(--emerald) var(--black); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }

body { 
    font-family: var(--font-body); 
    background-color: var(--black); 
    background-image: none;
    color: var(--text); 
    overflow-x: hidden; 
    cursor: none; 
    -webkit-font-smoothing: antialiased; 
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--emerald); color: var(--black); }
a { color: inherit; text-decoration: none; }
strong { color: var(--text); font-weight: 500; }
em { color: var(--emerald); font-style: normal; font-weight: 500; }
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); }

/* ======== ACCESIBILIDAD ======== */
.skip-link { position: absolute; top: -40px; left: 0; background: var(--emerald); color: var(--black); padding: 8px 16px; z-index: 100000; font-weight: 600; transition: top 0.2s; border-bottom-right-radius: 8px; }
.skip-link:focus { top: 0; outline: none; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 4px; border-radius: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }

/* Progress */
.page-progress { position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 100001; pointer-events: none; }
.page-progress-fill { width: 0%; height: 100%; background: var(--emerald); transition: width 0.1s linear; }

/* Back to top */
.back-to-top { position: fixed; bottom: 7rem; right: 2rem; z-index: 9990; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); background: rgba(6,8,10,0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--emerald); display: flex; align-items: center; justify-content: center; cursor: none; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.4s, transform 0.4s var(--ease), border-color 0.3s, background 0.3s; }
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
.back-to-top:hover { border-color: var(--emerald); background: rgba(45,212,123,0.1); }

/* Cursor */
.cursor { width: 8px; height: 8px; background: var(--emerald); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 99999; transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), background 0.3s; }
.cursor-follower { width: 40px; height: 40px; border: 1px solid rgba(45,212,123,0.4); border-radius: 50%; position: fixed; top: 0; left: 0; pointer-events: none; z-index: 99998; transition: width 0.4s var(--ease-out), height 0.4s var(--ease-out), border-color 0.3s, background 0.3s; }
body.cursor-hover .cursor { width: 0px; height: 0px; }
body.cursor-hover .cursor-follower { width: 64px; height: 64px; border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
@media (pointer: coarse) { .cursor, .cursor-follower { display: none; } body { cursor: auto; } .back-to-top, .btn, .btn--glow, button, a, .glass-card, .copy-action { cursor: pointer; } }

/* Loader */
#loader { position: fixed; inset: 0; background: var(--black); z-index: 100000; display: flex; align-items: center; justify-content: center; }
.loader-inner { text-align: center; }
.loader-logo-wrap { display: flex; align-items: baseline; justify-content: center; gap: 0.2em; margin-bottom: 2.5rem; }
.loader-bar { width: 200px; height: 2px; background: rgba(255,255,255,0.06); margin: 0 auto 1.5rem; border-radius: 2px; overflow: hidden; }
.loader-fill { width: 0%; height: 100%; background: var(--emerald); border-radius: 2px; }
.loader-text { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }

/* Copy Tooltip */
.copy-tooltip { position: fixed; background: var(--emerald); color: var(--black); padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; pointer-events: none; z-index: 999999; opacity: 0; transform: translateY(10px) scale(0.9); transition: opacity 0.2s, transform 0.2s; box-shadow: 0 4px 15px rgba(45,212,123,0.3); }
.copy-tooltip.visible { opacity: 1; transform: translateY(0) scale(1); }

/* GSAP Text Reveal Setup */
.reveal-text-anim { opacity: 1; }
.reveal-line-wrap { overflow: hidden; display: inline-block; padding-bottom: 0.1em; }
.reveal-line-inner { display: inline-block; transform: translateY(115%); will-change: transform; }

/* ======== NAV ======== */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 9997; padding: 2rem 0; transition: all 0.4s var(--ease-out); display: flex; justify-content: center; pointer-events: none; }
.nav-inner { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.5rem, 5vw, 4rem); display: flex; align-items: center; justify-content: space-between; transition: all 0.4s var(--ease-out); pointer-events: all; }

#navbar.scrolled { padding: 1.5rem 0; }
#navbar.scrolled .nav-inner { 
    max-width: 1100px; 
    background: rgba(6,8,10,0.7); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    padding: 0.8rem 1.5rem; 
    border-radius: 100px; 
    border: 1px solid rgba(255,255,255,0.08); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); 
}

.nav-logo { font-family: var(--font-title); font-size: 1.2rem; display: flex; align-items: baseline; gap: 0.1em; letter-spacing: 0.02em; }
.logo-text { color: var(--text); } 
.logo-number { color: var(--emerald); font-size: 1.4rem; }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.5); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--emerald); }

.nav-social { display: flex; gap: 1rem; align-items: center; }
.nav-social a { color: rgba(255,255,255,0.4); transition: color 0.2s; display: flex; align-items: center; justify-content: center; }
.nav-social a:hover { color: var(--emerald); }

.nav-toggle { display: none; background: none; border: none; cursor: none; padding: 0.5rem; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }
@media (max-width: 1100px) { 
    .nav-links, .nav-social { display: none; } 
    .nav-toggle { display: flex; cursor: pointer; } 
    #navbar.scrolled .nav-inner { max-width: 90%; border-radius: 20px; }
}

/* Mobile Menu */
#mobile-menu { position: fixed; inset: 0; background: rgba(6,8,10,0.98); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); z-index: 9998; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); }
#mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu-inner { display: flex; flex-direction: column; gap: 1.5rem; text-align: center; }
.mobile-menu-inner a { font-family: var(--font-title); font-size: clamp(2rem, 8vw, 3.5rem); text-transform: uppercase; color: var(--text); transition: color 0.2s; letter-spacing: 0.02em; }
.mobile-menu-inner a:hover { color: var(--emerald); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.75rem; font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 60px; padding: 1.2rem 2.5rem; transition: all 0.3s var(--ease-out); position: relative; overflow: hidden; cursor: none; justify-content: center; }
@media (pointer: coarse) { .btn { cursor: pointer; } }
.btn--primary { background: var(--emerald); color: var(--black); border: 1px solid var(--emerald); }
.btn--primary:hover { background: #35f58c; border-color: #35f58c; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(45,212,123,0.3); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.15); }
.btn--ghost:hover { border-color: #FFFFFF; background: rgba(255,255,255,0.05); transform: translateY(-2px); }
.btn--full { width: 100%; }

/* Submit Hover Effect */
.btn-submit-hover .btn-text { transition: transform 0.3s; display: inline-block; }
.btn-submit-hover:hover .btn-text { transform: translateX(5px); }

/* Sticky CTA */
.sticky-cta-bar { display: flex; position: fixed; top: -100px; left: 50%; transform: translateX(-50%); background: rgba(6,8,10,0.9); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid rgba(45,212,123,0.3); border-radius: 50px; padding: 0.6rem 1.5rem; align-items: center; gap: 1.5rem; z-index: 9996; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: top 0.4s var(--ease-out); }
.sticky-cta-bar.visible { top: 2rem; }
.sticky-cta-text { font-size: 0.9rem; color: #fff; font-weight: 500; }
.sticky-cta-btn { color: var(--emerald); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.sticky-cta-close { background: none; border: none; color: rgba(255,255,255,0.4); font-size: 1.2rem; cursor: pointer; padding: 0 0.5rem; transition: color 0.2s; }
.sticky-cta-close:hover { color: #fff; }
@media (max-width: 768px) { .sticky-cta-bar { bottom: -100px; top: auto; width: 90%; border-radius: 12px; padding: 1rem; flex-direction: column; text-align: center; gap: 0.8rem; } .sticky-cta-bar.visible { bottom: 1rem; top: auto; } .sticky-cta-close { position: absolute; top: 0.5rem; right: 0.5rem; } }

/* ======== OPTIMIZED SPOTLIGHT CARDS ======== */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 45px rgba(45, 212, 123, 0.12); 
    border-color: rgba(45, 212, 123, 0.25);
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), 
        rgba(45, 212, 123, 0.18), 
        transparent 50%
    );
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
    will-change: background;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px; 
    background: radial-gradient(
        350px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), 
        rgba(45, 212, 123, 1) 0%,     
        rgba(45, 212, 123, 0.6) 20%,  
        transparent 60%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
    will-change: background;
}

.glass-card:hover::before,
.glass-card:hover::after {
    opacity: 1; 
}

.glass-card > * {
    position: relative;
    z-index: 1;
}

/* ======== WHATSAPP FLOTANTE ======== */
.wpp-float { position: fixed; bottom: 2.5rem; right: 2.5rem; z-index: 9991; display: flex; align-items: center; gap: 0.75rem; background: #25D366; color: #fff; border-radius: 60px; padding: 0.85rem 1.5rem 0.85rem 1.1rem; box-shadow: 0 8px 32px rgba(37,211,102,0.25); transition: transform 0.3s var(--ease-out), box-shadow 0.3s; cursor: pointer; text-decoration: none; }
.wpp-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 12px 40px rgba(37,211,102,0.4); }
.wpp-float-ring { position: absolute; inset: 0; border-radius: 60px; border: 2px solid rgba(255,255,255,0.4); animation: wppRing 2s ease-in-out infinite; pointer-events: none; }
@keyframes wppRing { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.08); opacity: 0; } }
.wpp-float-label { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.03em; white-space: nowrap; }
@media (max-width: 500px) { .wpp-float { bottom: 1.5rem; right: 1.5rem; padding: 1rem; border-radius: 50%; } .wpp-float-label { display: none; } }

/* ======== HERO ======== */
#hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding-top: 80px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
#hero-canvas { width: 100%; height: 100%; pointer-events: none; opacity: 0.6; } 

.hero-giant-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--font-title); font-size: clamp(8rem, 25vw, 26rem); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.15); white-space: nowrap; pointer-events: none; z-index: 1; user-select: none; }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 2rem; max-width: 1000px; }

.hero-badge { display: inline-flex; align-items: center; justify-content: center; gap: 1.5rem; margin-bottom: 3.5rem; width: 100%; }
.badge-line { width: 40px; height: 1px; background: rgba(255,255,255,0.3); }
.badge-text { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.35em; text-transform: uppercase; color: var(--emerald); }

.hero-title { font-family: var(--font-title); font-size: clamp(4rem, 10vw, 9rem); line-height: 0.9; text-transform: uppercase; margin-bottom: 3rem; letter-spacing: 0.02em; }
.title-line { display: block; overflow: hidden; padding-bottom: 0.05em; } 
.title-word { display: inline-block; transform: translateY(115%); color: #FFFFFF; } 
.title-line.accent .title-word { color: var(--emerald); } 

.hero-sub { font-size: clamp(1rem, 1.8vw, 1.2rem); font-weight: 300; line-height: 1.8; color: var(--text-dim); max-width: 680px; margin: 0 auto 4rem; letter-spacing: 0.01em; }
.hero-sub strong { color: #fff; font-weight: 500; }
.hero-actions { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

.hero-scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; opacity: 0.5; }
.scroll-label { font-size: 0.55rem; letter-spacing: 0.25em; text-transform: uppercase; color: #fff; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, #fff, transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 1; transform: scaleY(1); } 50% { opacity: 0.2; transform: scaleY(0.3); transform-origin: top; } }

/* ======== INFINITOS FLOTANTES 3D ======== */
.hero-inf { position: absolute; top: 0; bottom: 0; z-index: 1; display: flex; align-items: center; pointer-events: none; will-change: transform; }
.hero-inf--left { left: -6vw; width: clamp(280px, 38vw, 650px); animation: floatLeft 8s ease-in-out infinite; }
.hero-inf--right { right: -6vw; width: clamp(280px, 38vw, 650px); animation: floatRight 9s ease-in-out infinite; }
.hero-inf picture, .hero-inf img { width: 100%; height: auto; display: block; }
.hero-inf img { filter: brightness(0.9); user-select: none; }
@keyframes floatLeft { 0% { transform: translateY(0px) rotate(-2deg); } 50% { transform: translateY(-20px) rotate(1deg); } 100% { transform: translateY(0px) rotate(-2deg); } }
@keyframes floatRight { 0% { transform: translateY(-10px) rotate(2deg); } 50% { transform: translateY(15px) rotate(-1deg); } 100% { transform: translateY(-10px) rotate(2deg); } }
@media (max-width: 900px) { .hero-inf--left { left: -25vw; width: 65vw; opacity: 0.3; } .hero-inf--right { right: -25vw; width: 65vw; opacity: 0.3; } }
@media (max-width: 560px) { .hero-inf { display: none; } }

/* Metrics */
.metrics-bar { padding: 3rem 0; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); background: var(--black); position: relative; z-index: 5; }
.metrics-track { display: flex; align-items: center; justify-content: center; gap: 5rem; flex-wrap: wrap; max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.metric-item { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.metric-top { display: flex; align-items: baseline; gap: 0.1em; }
.metric-number { font-family: var(--font-title); font-size: clamp(3rem, 5vw, 4.5rem); color: var(--emerald); line-height: 1; letter-spacing: 0.02em; }
.metric-suffix { font-family: var(--font-title); font-size: clamp(1.5rem, 2.5vw, 2.5rem); color: var(--emerald); }
.metric-prefix { font-family: var(--font-title); font-size: clamp(2rem, 3.5vw, 3.5rem); color: var(--emerald); }
.metric-label { font-size: 0.65rem; font-weight: 500; letter-spacing: 0.25em; text-transform: uppercase; color: var(--text-dim); text-align: center; }
.metric-divider { color: rgba(255,255,255,0.1); font-size: 0.6rem; }
@media (max-width: 768px) { .metrics-track { gap: 3rem; } .metric-divider { display: none; } }

/* ======== MARQUEE GIGANTE OUTLINE ======== */
.marquee-bar { padding: 3rem 0; background: transparent; overflow: hidden; position: relative; }
.marquee-bar::before, .marquee-bar::after { content: ''; position: absolute; top: 0; bottom: 0; width: 15vw; z-index: 2; pointer-events: none; }
.marquee-bar::before { left: 0; background: linear-gradient(90deg, var(--black), transparent); }
.marquee-bar::after { right: 0; background: linear-gradient(-90deg, var(--black), transparent); }
.marquee-track { display: flex; gap: 4rem; white-space: nowrap; animation: marqueeScroll 40s linear infinite; width: max-content; will-change: transform; }
.marquee-track span { font-family: var(--font-title); font-size: clamp(4rem, 8vw, 7rem); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.15); letter-spacing: 0.02em; transition: color 0.3s, -webkit-text-stroke 0.3s; cursor: default; }
.marquee-track span:hover { color: var(--emerald); -webkit-text-stroke: 0px; }
.marquee-dot { color: transparent !important; -webkit-text-stroke: 1px rgba(255,255,255,0.1); font-size: clamp(3rem, 5vw, 4rem) !important; }
@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Section */
.section { padding: clamp(6rem, 14vw, 12rem) 0; position: relative; z-index: 2; }
.section-dark { background: rgba(255,255,255,0.01); border-top: 1px solid rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.03); } 
.section-header { text-align: center; margin-bottom: clamp(4rem, 8vw, 7rem); }
.section-index { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--emerald); display: block; margin-bottom: 1.5rem; opacity: 0.9; }
.section-title { font-family: var(--font-title); font-size: clamp(3.5rem, 7vw, 6.5rem); text-transform: uppercase; margin-bottom: 1.5rem; font-weight: 400; letter-spacing: 0.01em; line-height: 1; color: #fff; }
.section-subtitle { font-size: clamp(1rem, 1.4vw, 1.15rem); font-weight: 300; color: var(--text-dim); max-width: 650px; margin: 0 auto; line-height: 1.7; }

/* Prologue */
.prologue-wrapper { max-width: 900px; margin: 0 auto; text-align: center; }
.prologue-text { display: flex; flex-direction: column; gap: 1.5rem; }
.prologue-line { font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 300; line-height: 1.8; color: var(--text-body); }
.prologue-line.highlight { font-weight: 400; color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.prologue-line.giant { font-family: var(--font-title); font-size: clamp(4.5rem, 9vw, 8rem); text-transform: uppercase; color: var(--emerald); line-height: 1; margin-top: 2.5rem; font-weight: 400; letter-spacing: 0.02em; }

/* Philosophy Fused */
.philosophy-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 6rem; align-items: center; }
.statement { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 300; line-height: 1.4; margin-bottom: 2.5rem; color: #fff; }
.body-text { font-size: clamp(1rem, 1.3vw, 1.1rem); font-weight: 300; line-height: 1.9; color: var(--text-body); margin-bottom: 1.5rem; }
.truth-orb { position: relative; width: 340px; height: 340px; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.orb-ring { position: absolute; border-radius: 50%; border: 1px solid; }
.orb-ring--1 { width: 340px; height: 340px; border-color: rgba(255,255,255,0.05); animation: orbSpin 30s linear infinite; }
.orb-ring--2 { width: 240px; height: 240px; border-color: rgba(255,255,255,0.03); animation: orbSpin 20s linear infinite reverse; border-style: dashed; }
.orb-ring--3 { width: 140px; height: 140px; border-color: rgba(45,212,123,0.15); animation: orbSpin 15s linear infinite; }
.orb-core { width: 40px; height: 40px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 60px rgba(45,212,123,0.8); animation: orbPulse 4s ease-in-out infinite; }
.orb-label { position: absolute; bottom: -3rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-dim); text-align: center; line-height: 1.6; }
@keyframes orbSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); box-shadow: 0 0 90px rgba(45,212,123,1); } }
@media (max-width: 900px) { .philosophy-grid { grid-template-columns: 1fr; gap: 5rem; } .truth-orb { width: 260px; height: 260px; } .orb-ring--1 { width: 260px; height: 260px; } .orb-ring--2 { width: 180px; height: 180px; } .orb-ring--3 { width: 100px; height: 100px; } }

/* ======== SERVICES (8 Grid) ======== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
@media (min-width: 1200px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1199px) and (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card { padding: 0; cursor: none; min-height: 320px; }
.service-card-front, .service-card-detail { padding: 3rem 2.5rem; position: absolute; inset: 0; display: flex; flex-direction: column; transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.service-card-front { opacity: 1; transform: translateY(0); }
.service-card-detail { opacity: 0; transform: translateY(30px); justify-content: center; background: rgba(45,212,123,0.02); padding: 2rem; }
.service-icon { color: var(--emerald); margin-bottom: 2rem; opacity: 0.9; filter: drop-shadow(0 0 10px rgba(56,205,141,0.2)); }
.service-icon svg { width: 40px; height: 40px; }
.service-card h3 { font-family: var(--font-title); font-size: 1.6rem; text-transform: uppercase; margin-bottom: 1rem; line-height: 1.15; font-weight: 400; letter-spacing: 0.02em; color: #fff; }
.service-card p { font-size: 0.95rem; font-weight: 300; line-height: 1.7; color: var(--text-dim); }
.service-card-hint { display: none; font-size: 0.75rem; color: var(--emerald); margin-top: auto; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.service-card-detail ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 2rem; }
.service-card-detail ul li { font-size: 0.9rem; font-weight: 300; color: rgba(255,255,255,0.9); padding-left: 1.5rem; position: relative; line-height: 1.5; }
.service-card-detail ul li::before { content: '→'; position: absolute; left: 0; color: var(--emerald); font-size: 0.8rem; font-weight: bold; }
.service-detail-cta { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--emerald); background: none; border: none; font-family: var(--font-body); cursor: pointer; text-align: left; }

@media (pointer: fine) {
    .service-card:hover .service-card-front { opacity: 0; transform: translateY(-20px); }
    .service-card:hover .service-card-detail { opacity: 1; transform: translateY(0); }
}
@media (pointer: coarse) {
    .service-card { cursor: pointer; }
    .service-card-hint { display: block; }
}
.service-card.flipped .service-card-front, .service-card:focus-visible .service-card-front { opacity: 0; transform: translateY(-20px); pointer-events: none; }
.service-card.flipped .service-card-detail, .service-card:focus-visible .service-card-detail { opacity: 1; transform: translateY(0); pointer-events: all; }

/* TECH STACK MARQUEE */
.tech-marquee-wrapper { margin-top: 5rem; border-top: 1px solid rgba(255,255,255,0.03); padding-top: 3rem; text-align: center; }
.tech-marquee-label { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.5rem; }
.tech-marquee { padding: 1rem 0; overflow: hidden; position: relative; }
.tech-marquee::before, .tech-marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 10vw; z-index: 2; pointer-events: none; }
.tech-marquee::before { left: 0; background: linear-gradient(90deg, var(--black), transparent); }
.tech-marquee::after { right: 0; background: linear-gradient(-90deg, var(--black), transparent); }
.tech-track { display: flex; gap: 3rem; white-space: nowrap; animation: marqueeScroll 25s linear infinite; width: max-content; }
.tech-track span { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: rgba(255,255,255,0.3); letter-spacing: 0.05em; transition: color 0.3s; cursor: default; }
.tech-track span:hover { color: var(--emerald); }

/* ======== ROI CALCULATOR ======== */
.calc-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: stretch; padding: 4rem; }
.calc-inputs { display: flex; flex-direction: column; gap: 3rem; justify-content: center; }
.calc-group { display: flex; flex-direction: column; gap: 1rem; }
.calc-label-row { display: flex; justify-content: space-between; align-items: baseline; }
.calc-label-row label { font-size: 0.95rem; font-weight: 300; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.calc-val-display { font-family: var(--font-title); font-size: 2rem; color: #fff; }
.calc-val-display span { color: var(--emerald); }
.calc-slider { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 4px; background: rgba(255,255,255,0.1); outline: none; }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--emerald); cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 0 15px rgba(45,212,123,0.5); }
.calc-slider::-webkit-slider-thumb:hover { transform: scale(1.2); box-shadow: 0 0 20px rgba(45,212,123,0.8); }

.calc-results { background: rgba(0,0,0,0.4); border-radius: 16px; padding: 3rem 2.5rem; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,0.04); }
.result-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.result-label { font-size: 0.9rem; color: var(--text-dim); font-weight: 300; }
.result-number { font-size: 1.5rem; font-weight: 600; color: #fff; }
.result-row.highlight .result-label { color: #fff; }
.result-row.highlight .result-number { font-size: 2.2rem; }
.neon-text { color: var(--emerald) !important; text-shadow: 0 0 20px rgba(45,212,123,0.4); }
.calc-divider { width: 100%; height: 1px; background: rgba(255,255,255,0.1); margin: 2rem 0; }
.result-impact { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.impact-box { display: flex; flex-direction: column; gap: 0.5rem; }
.impact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
.impact-val { font-family: var(--font-title); font-size: 2rem; color: #fff; }
.calc-note { font-size: 0.7rem; color: rgba(255,255,255,0.3); font-style: italic; text-align: center; margin-top: auto; }
@media (max-width: 950px) { .calc-grid { grid-template-columns: 1fr; padding: 2.5rem; gap: 3rem; } .result-impact { grid-template-columns: 1fr; } }


/* LOOPS */
.loops-layout { max-width: 800px; margin: 0 auto; }
.loops-timeline { position: relative; padding-left: 80px; }
.timeline-track { position: absolute; left: 30px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.05); }
.timeline-progress { width: 100%; height: 0%; background: var(--emerald); transition: height 0.3s; box-shadow: 0 0 15px rgba(45,212,123,0.3); }
.loop-step { position: relative; padding: 3.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.03); transition: opacity 0.6s var(--ease); }
.step-dot { position: absolute; left: -60px; top: 4rem; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--emerald); background: var(--black); transition: background 0.4s, box-shadow 0.4s, transform 0.4s; }
.loop-step.in-view .step-dot { background: var(--emerald); box-shadow: 0 0 20px rgba(45,212,123,0.5); transform: scale(1.3); }
.step-letter-wrap { display: flex; align-items: baseline; gap: 1.2rem; margin-bottom: 0.8rem; }
.step-letter { font-family: var(--font-title); font-size: 3rem; color: var(--emerald); line-height: 1; }
.step-name { font-family: var(--font-title); font-size: 1.6rem; text-transform: uppercase; font-weight: 400; letter-spacing: 0.02em; color: #fff; }
.step-tagline { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--bronze); margin-bottom: 1.2rem; opacity: 0.9; }
.step-desc { font-size: 1.05rem; font-weight: 300; line-height: 1.8; color: var(--text-dim); }

/* ======== PORTFOLIO (10 Grid) ======== */
.portfolio-filters { display: flex; gap: 1rem; justify-content: center; margin-bottom: 4rem; flex-wrap: wrap; }
.filter-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text-dim); padding: 0.6rem 1.5rem; border-radius: 40px; font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all 0.3s; text-transform: uppercase; letter-spacing: 0.05em; }
.filter-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.filter-btn.active { background: var(--emerald); color: var(--black); border-color: var(--emerald); }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2.5rem; }
.portfolio-card { display: flex; flex-direction: column; padding: 0; cursor: pointer; transition: transform 0.4s var(--ease-out), opacity 0.4s, scale 0.4s; transform-origin: center; }
.portfolio-card.hidden { display: none; } 
.portfolio-img { height: 200px; position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,0.05); }
.portfolio-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 2rem; color: rgba(255,255,255,0.2); background-size: cover; background-position: center; transition: transform 0.6s var(--ease-out); }

/* Gradients for new categories */
.bg-retail { background: linear-gradient(135deg, #1a1a1a, #2a2a2a); }
.bg-b2b { background: linear-gradient(135deg, #111, #222); }
.bg-eventos { background: linear-gradient(135deg, #0a0a0a, #1f1f1f); }
.bg-inmobiliario { background: linear-gradient(135deg, #161c24, #1f2937); }
.bg-salud { background: linear-gradient(135deg, #0f172a, #1e293b); }
.bg-saas { background: linear-gradient(135deg, #171717, #262626); }
.bg-servicios { background: linear-gradient(135deg, #0f1219, #1a202c); }

.portfolio-overlay { position: absolute; inset: 0; background: rgba(45,212,123,0.8); z-index: 2; display: flex; align-items: center; justify-content: center; color: var(--black); font-weight: 700; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; opacity: 0; transition: opacity 0.3s; }
.portfolio-card:hover .portfolio-placeholder { transform: scale(1.05); }
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-content { padding: 2rem 2rem; flex: 1; display: flex; flex-direction: column; align-items: flex-start; }
.portfolio-tag { font-size: 0.65rem; font-weight: 600; color: var(--emerald); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 0.8rem; }
.portfolio-content h3 { font-family: var(--font-title); font-size: 1.6rem; color: #fff; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 0.8rem; line-height: 1.1; }
.portfolio-content p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 1.5rem; font-weight: 300; }
.btn-open-modal { background: none; border: none; color: #fff; font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 2px; cursor: pointer; transition: border-color 0.2s, color 0.2s; margin-top: auto; }
.portfolio-card:hover .btn-open-modal { color: var(--emerald); border-color: var(--emerald); }

/* ======== MODAL (PORTFOLIO & EXIT) ======== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 100000; display: flex; align-items: center; justify-content: flex-end; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease-out); }
.modal-overlay.open { opacity: 1; pointer-events: all; }

/* Modal Drawer (Portfolio) */
.modal-drawer { width: 100%; max-width: 600px; height: 100vh; background: var(--black); border-left: 1px solid rgba(255,255,255,0.05); border-radius: 0; transform: translateX(100%); transition: transform 0.5s var(--ease-out); display: flex; flex-direction: column; position: relative; }
.modal-overlay.open .modal-drawer { transform: translateX(0); }
.modal-close { position: absolute; top: 1.5rem; right: 1.5rem; width: 40px; height: 40px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; color: #fff; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; z-index: 10; }
.modal-close:hover { background: var(--emerald); color: var(--black); border-color: var(--emerald); transform: rotate(90deg); }
.modal-content { padding: 4rem 3rem; overflow-y: auto; height: 100%; }

/* Modal Content Styling */
.mc-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.mc-tag { font-size: 0.75rem; color: var(--emerald); text-transform: uppercase; letter-spacing: 0.15em; font-weight: 600; display: block; }
.mc-read-time { font-size: 0.7rem; color: var(--text-dim); display: flex; align-items: center; gap: 0.4rem; background: rgba(255,255,255,0.05); padding: 0.3rem 0.6rem; border-radius: 20px; }

.mc-title { font-family: var(--font-title); font-size: 3rem; color: #fff; text-transform: uppercase; line-height: 1; margin-bottom: 2.5rem; }
.mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.mc-box h4 { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.8rem; }
.mc-box p { font-size: 0.95rem; color: #fff; line-height: 1.6; }

/* Modal Impact Bars */
.mc-bars-container { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mc-bar-item { display: flex; flex-direction: column; gap: 0.4rem; }
.mc-bar-label { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; display: flex; justify-content: space-between; }
.mc-bar-val { font-weight: 600; color: #fff; }
.mc-bar-bg { width: 100%; height: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; overflow: hidden; }
.mc-bar-fill { height: 100%; border-radius: 4px; width: 0; transition: width 1s var(--ease-out); }

.mc-stack { margin-bottom: 3rem; }
.mc-stack h4 { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.mc-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.mc-tags span { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 0.3rem 0.8rem; border-radius: 4px; font-size: 0.75rem; color: rgba(255,255,255,0.8); }
.mc-quote { font-size: 1.1rem; font-style: italic; color: var(--emerald); line-height: 1.6; margin-bottom: 1rem; border-left: 2px solid var(--emerald); padding-left: 1.5rem; }
.mc-author { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 3rem; padding-left: 1.5rem; }
@media (max-width: 600px) { .modal-drawer { max-width: 100vw; } .modal-content { padding: 4rem 1.5rem; } .mc-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Exit Intent Modal */
.exit-overlay { justify-content: center; }
.exit-modal { width: 100%; max-width: 500px; background: rgba(10,14,20,0.95); padding: 3rem; text-align: center; border-radius: 16px; transform: translateY(30px) scale(0.95); transition: transform 0.4s var(--ease-out); }
.exit-overlay.open .exit-modal { transform: translateY(0) scale(1); }
.exit-modal h3 { font-family: var(--font-title); font-size: 2.5rem; color: #fff; text-transform: uppercase; margin-bottom: 1rem; }
.exit-modal p { font-size: 1.05rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 2.5rem; }
.exit-actions { display: flex; flex-direction: column; gap: 1rem; }
.exit-close { right: 1rem; top: 1rem; }

/* ======== SOCIAL PROOF TOAST ======== */
.social-toast { position: fixed; bottom: 2rem; left: 2rem; z-index: 9990; display: flex; align-items: flex-start; gap: 1rem; padding: 1.2rem 1.5rem; background: rgba(10,14,20,0.9); border-radius: 12px; border-left: 3px solid var(--emerald); width: 300px; transform: translateX(-150%); transition: transform 0.5s var(--ease-out); pointer-events: none; }
.social-toast.visible { transform: translateX(0); pointer-events: all; }
.toast-icon { font-size: 1.2rem; line-height: 1; }
.toast-time { font-size: 0.7rem; color: var(--emerald); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 0.3rem; }
.toast-desc { font-size: 0.85rem; color: #fff; line-height: 1.4; }
.toast-close { position: absolute; top: 0.5rem; right: 0.5rem; background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; font-size: 1rem; }
@media (max-width: 768px) { .social-toast { display: none; } }

/* ======== TESTIMONIALES ======== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.testimonial-card { padding: 3.5rem 3rem; display: flex; flex-direction: column; }
.testimonial-quote { font-family: var(--font-title); font-size: 5rem; color: var(--emerald); opacity: 0.15; line-height: 0.5; margin-bottom: 1.5rem; }
.testimonial-card p { font-size: 1.1rem; font-weight: 300; line-height: 1.8; color: var(--text-dim); flex: 1; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 1.2rem; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,0.04); padding-top: 2rem; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--emerald); color: var(--black); display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 1.3rem; flex-shrink: 0; box-shadow: 0 4px 15px rgba(45,212,123,0.3); }
.testimonial-author div { display: flex; flex-direction: column; gap: 0.2rem; }
.testimonial-author strong { font-size: 1rem; color: #fff; }
.testimonial-author span { font-size: 0.75rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 950px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ======== EQUIPO ======== */
.team-intro { max-width: 950px; margin: 0 auto 5rem; padding: 4.5rem 4rem; display: flex; flex-direction: column; gap: 2.5rem; align-items: center; text-align: center; }
.team-intro-text p { font-size: 1.2rem; font-weight: 300; line-height: 1.8; color: var(--text-dim); margin-bottom: 1.5rem; }
.team-values { display: flex; gap: 5rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; padding-top: 3rem; border-top: 1px solid rgba(255,255,255,0.04); width: 100%; }
.team-value { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.team-value-num { font-family: var(--font-title); font-size: 3.5rem; color: var(--emerald); line-height: 1; font-weight: 400; letter-spacing: 0.02em; }
.team-value-label { font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.5); }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.team-card { padding: 3.5rem 2.5rem; text-align: center; display: flex; flex-direction: column; align-items: center; }
.team-avatar { width: 96px; height: 96px; border-radius: 50%; padding: 5px; background: rgba(255,255,255,0.05); margin-bottom: 2rem; }
.team-avatar-inner { width: 100%; height: 100%; border-radius: 50%; background: var(--emerald); display: flex; align-items: center; justify-content: center; font-family: var(--font-title); font-size: 2.5rem; color: var(--black); }
.team-name { font-family: var(--font-title); font-size: 1.6rem; text-transform: uppercase; margin-bottom: 0.4rem; font-weight: 400; letter-spacing: 0.02em; color: #fff; }
.team-role { font-size: 0.8rem; color: var(--emerald); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; }
.team-bio { font-size: 0.95rem; font-weight: 300; line-height: 1.7; color: var(--text-dim); margin-bottom: 2rem; flex: 1; }
.team-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.team-tags span { font-size: 0.7rem; padding: 0.4rem 0.8rem; background: rgba(255,255,255,0.03); border-radius: 8px; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.04); }
@media (max-width: 1024px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .team-grid { grid-template-columns: 1fr; } .team-intro { padding: 3rem 1.5rem; } .team-values { gap: 3rem; } }

/* Code */
.code-wrapper { display: grid; grid-template-columns: 0.4fr 0.6fr; gap: 6rem; align-items: start; }
.code-header { position: sticky; top: 120px; }
.code-list { display: flex; flex-direction: column; }
.code-rule { display: flex; align-items: center; gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.03); transition: padding-left 0.4s var(--ease-out), border-color 0.4s; }
.code-rule:hover { padding-left: 2rem; border-bottom-color: rgba(45,212,123,0.3); }
.rule-num { font-family: var(--font-title); font-size: 1.8rem; color: var(--emerald); opacity: 0.3; flex-shrink: 0; line-height: 1; font-weight: 400; transition: opacity 0.4s; }
.code-rule:hover .rule-num { opacity: 0.8; }
.rule-line { width: 30px; height: 1px; background: rgba(255,255,255,0.1); flex-shrink: 0; transition: background 0.4s, width 0.4s; }
.code-rule:hover .rule-line { background: var(--emerald); width: 60px; }
.code-rule p { font-size: 1.05rem; font-weight: 300; line-height: 1.8; color: var(--text-body); }
@media (max-width: 768px) { .code-wrapper { grid-template-columns: 1fr; gap: 3rem; } .code-header { position: static; } }

/* ======== FAQ ACCORDION ======== */
.faq-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.04); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2.5rem 0; background: none; border: none; color: #fff; font-family: var(--font-body); font-size: clamp(1.1rem, 1.5vw, 1.25rem); font-weight: 400; text-align: left; cursor: pointer; transition: color 0.3s; }
.faq-question:hover, .faq-question:focus-visible { color: var(--emerald); }
.faq-question span:first-child { flex: 1; }
.faq-icon { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 300; flex-shrink: 0; color: var(--emerald); transition: transform 0.4s var(--ease-out), background 0.3s, border-color 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(45,212,123,0.1); border-color: rgba(45,212,123,0.4); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease-out), padding 0.4s var(--ease-out); padding: 0; }
.faq-item.open .faq-answer { max-height: 500px; padding-bottom: 2.5rem; }
.faq-answer p { font-size: 1rem; font-weight: 300; line-height: 1.9; color: var(--text-dim); padding-right: 4rem; }
@media (max-width: 600px) { .faq-answer p { padding-right: 0; } }

/* ======== CTA & FORMULARIO ======== */
.section-cta { min-height: 100vh; display: flex; align-items: center; overflow: hidden; position: relative; background: var(--black); padding-top: 8rem; padding-bottom: 8rem; border-top: 1px solid rgba(255,255,255,0.02); }

/* Z-INDEX FIX: Fondo detrás, contenido delante */
.cta-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; } 
.cta-orb { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; }
.cta-orb--1 { width: 500px; height: 500px; background: rgba(45,212,123,0.04); top: 5%; left: 5%; }
.cta-orb--2 { width: 450px; height: 450px; background: rgba(254,175,98,0.03); bottom: 5%; right: 5%; }

.cta-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 6rem; align-items: center; position: relative; z-index: 2; max-width: 1300px; margin: 0 auto; }
.cta-content { text-align: left; }
.cta-title { font-family: var(--font-title); font-size: clamp(4rem, 7vw, 6.5rem); text-transform: uppercase; line-height: 0.95; margin-bottom: 1rem; font-weight: 400; letter-spacing: 0.01em; color: #fff; }
.cta-highlight { font-family: var(--font-title); font-size: clamp(3rem, 5vw, 4.5rem); text-transform: uppercase; color: var(--emerald); margin-bottom: 2.5rem; font-weight: 400; }
.cta-body { font-size: 1.1rem; font-weight: 300; line-height: 1.85; color: var(--text-dim); margin-bottom: 3.5rem; max-width: 500px; }

.contact-methods { display: flex; flex-direction: column; gap: 1.8rem; }
.or-divider { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.4); text-align: center; display: flex; align-items: center; gap: 1.5rem; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }

/* CONTENEDOR DEL FORMULARIO */
.cta-form { padding: 4rem 3.5rem; } 
.cta-form h3 { font-family: var(--font-title); font-size: 2.2rem; text-transform: uppercase; margin-bottom: 2rem; font-weight: 400; letter-spacing: 0.02em; color: #fff; }

/* Floating Labels System Pro */
.form-group { position: relative; margin-bottom: 2rem; z-index: 2; }

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(0,0,0,0.6); 
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 1.6rem 1.2rem 0.6rem; 
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 300;
    transition: border-color 0.3s var(--ease-out), background 0.3s;
}
.form-group textarea { resize: vertical; min-height: 140px; }

.form-group input::placeholder, 
.form-group textarea::placeholder { color: transparent; }

.form-group label { 
    position: absolute; 
    top: 1.25rem; 
    left: 1.2rem; 
    font-size: 1rem; 
    font-weight: 300; 
    color: rgba(255,255,255,0.5); 
    transition: all 0.3s var(--ease-out); 
    pointer-events: none; 
}
.required { color: var(--emerald); }

.form-group input:focus ~ label, 
.form-group textarea:focus ~ label, 
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label,
.form-group.is-filled label { 
    top: 0.5rem; 
    font-size: 0.7rem; 
    font-weight: 600; 
    color: var(--emerald); 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
}

.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--emerald); background: rgba(45,212,123,0.03); }
.form-group.has-error input, .form-group.has-error textarea { border-color: var(--red); background: rgba(255,75,75,0.05); }
.form-group.has-error input:focus ~ label, .form-group.has-error textarea:focus ~ label, .form-group.has-error.is-filled label { color: var(--red); }
.form-group.has-success input, .form-group.has-success textarea { border-color: var(--emerald); }

.form-error { display: block; font-size: 0.8rem; color: var(--red); margin-top: 0.5rem; min-height: 18px; opacity: 0; transition: opacity 0.3s; position: absolute; bottom: -1.6rem; left: 0; font-weight: 500; }
.form-group.has-error .form-error { opacity: 1; }

.form-success-icon { position: absolute; right: 1rem; top: 1.25rem; color: var(--emerald); opacity: 0; transition: opacity 0.3s, transform 0.3s; transform: scale(0.5); pointer-events: none; }
.form-group.has-success .form-success-icon { opacity: 1; transform: scale(1); }

.char-counter { position: absolute; right: 1rem; bottom: -1.2rem; font-size: 0.7rem; color: rgba(255,255,255,0.4); }

.form-privacy { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 2.5rem; margin-top: 1.5rem; }
.form-privacy input { margin-top: 0.3rem; accent-color: var(--emerald); width: 18px; height: 18px; cursor: pointer; }
.form-privacy label { font-size: 0.9rem; color: var(--text-dim); font-weight: 300; line-height: 1.6; cursor: pointer; }
.form-privacy a { color: var(--emerald); text-decoration: underline; transition: color 0.2s; }
.form-privacy a:hover { color: #fff; }

.cta-bg-text { position: absolute; bottom: -15%; right: -5%; font-family: var(--font-title); font-size: clamp(10rem, 30vw, 35rem); color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,0.06); line-height: 1; pointer-events: none; z-index: 1; user-select: none; }
@media (max-width: 900px) { .cta-layout { grid-template-columns: 1fr; gap: 5rem; } .cta-content { text-align: center; } .cta-body { margin-inline: auto; } .cta-form { padding: 3rem 2rem; } }

/* Footer */
#footer { padding: 5rem 0 2rem; border-top: 1px solid rgba(255,255,255,0.04); background: var(--black); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem; margin-bottom: 5rem; }
.footer-logo { font-family: var(--font-title); font-size: 1.4rem; display: block; margin-bottom: 1rem; font-weight: 400; letter-spacing: 0.02em; }
.footer-logo strong { color: var(--emerald); font-weight: 400; }
.footer-tagline { font-size: 0.95rem; font-weight: 300; color: var(--text-dim); line-height: 1.7; margin-bottom: 2rem; max-width: 280px; }
.footer-social { display: flex; gap: 1.2rem; }
.footer-social a { color: rgba(255,255,255,0.4); transition: color 0.3s, transform 0.3s; }
.footer-social a:hover, .footer-social a:focus-visible { color: var(--emerald); transform: translateY(-3px); filter: drop-shadow(0 0 10px rgba(45,212,123,0.3)); }
.footer-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; color: var(--emerald); opacity: 0.7; display: block; margin-bottom: 1.5rem; }
.footer-nav a, .footer-contact a { display: block; font-size: 0.95rem; font-weight: 300; color: var(--text-dim); padding: 0.4rem 0; transition: color 0.2s; margin-bottom: 0.4rem; }
.footer-nav a:hover, .footer-nav a:focus-visible, .footer-contact a:hover, .footer-contact a:focus-visible, .copy-action:hover { color: #fff; }
.footer-location { display: block; font-size: 0.9rem; font-weight: 300; color: rgba(255,255,255,0.3); padding: 0.3rem 0; margin-top: 1.5rem; font-style: italic; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.05); font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { transition: color 0.3s; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: #fff; }
.footer-mantra { color: var(--emerald); opacity: 0.6; font-weight: 500; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 3rem; } .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; } .footer-legal { justify-content: center; } }

/* ======== COOKIE BANNER ======== */
.cookie-banner { position: fixed; bottom: -100%; left: 0; right: 0; background: rgba(6,8,10,0.98); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-top: 1px solid rgba(45,212,123,0.2); z-index: 9995; transition: bottom 0.6s var(--ease-out); padding: 1.5rem 0; box-shadow: 0 -10px 40px rgba(0,0,0,0.8); }
.cookie-banner.visible { bottom: 0; }
.cookie-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cookie-inner p { font-size: 0.9rem; font-weight: 300; color: var(--text-dim); line-height: 1.6; flex: 1; }
.cookie-inner a { color: var(--emerald); text-decoration: underline; }
.cookie-actions { display: flex; gap: 1rem; align-items: center; }
.cookie-decline { background: none; border: none; color: rgba(255,255,255,0.5); font-family: var(--font-body); font-size: 0.85rem; cursor: pointer; text-decoration: underline; transition: color 0.2s; }
.cookie-decline:hover { color: #fff; }
@media (max-width: 768px) { .cookie-inner { flex-direction: column; text-align: center; gap: 1.5rem; } }

section[id] { scroll-margin-top: 80px; }
