/* ============================================
   DIGITAL LAVROS — MAIN STYLES
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
    /* Base Darks */
    --bg-primary: #080808;
    --bg-secondary: #0a0a0f;
    --bg-elevated: #111118;
    --bg-card: #0d0d14;

    /* Accent: Electric Blue / Cyan AI */
    --accent-primary: #00d4ff;
    --accent-secondary: #0066ff;
    --accent-glow: rgba(0, 212, 255, 0.15);
    --accent-gradient: linear-gradient(135deg, #00d4ff, #0066ff);

    /* Accent: Subtle Purple */
    --purple-accent: #7b61ff;
    --purple-glow: rgba(123, 97, 255, 0.1);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.2);
    --text-dark: #1a1a1a;

    /* Borders & Surfaces */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-active: rgba(0, 212, 255, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-display: 'Syncopate', sans-serif;
    --font-body: 'Manrope', sans-serif;
    --fs-hero: clamp(2.8rem, 8vw, 8rem);
    --fs-h2: clamp(2rem, 5vw, 5rem);
    --fs-h3: clamp(1.15rem, 2vw, 1.75rem);
    --fs-body: clamp(0.9rem, 1.1vw, 1.125rem);
    --fs-small: 0.875rem;

    /* Spacing */
    --section-py: clamp(60px, 10vh, 120px);
    --section-px: clamp(20px, 5vw, 80px);
    --gap-lg: clamp(40px, 5vw, 80px);
    --gap-md: clamp(20px, 3vw, 40px);
    --gap-sm: clamp(12px, 1.5vw, 20px);
}

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

html {
    scroll-behavior: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

::-webkit-scrollbar { display: none; }
body { scrollbar-width: none; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    cursor: none;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

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

img { max-width: 100%; display: block; }
ul { list-style: none; }

/* --- Cursor Magnético --- */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 12px; height: 12px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor.active {
    width: 60px; height: 60px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    mix-blend-mode: normal;
}

/* --- Loader --- */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.loader-half {
    height: 50vh;
    width: 100%;
    background: #000;
    position: relative;
    overflow: hidden;
}

.loader-text-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9001;
    overflow: hidden;
}

.loader-text {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 8px;
}

.loader-counter {
    position: fixed;
    bottom: 10vh;
    right: 10vw;
    z-index: 9002;
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
}

/* --- Navegación --- */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 8000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem var(--section-px);
    transition: background-color 0.4s, backdrop-filter 0.4s, transform 0.4s;
}

.main-nav.scrolled {
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
}

.main-nav.hidden {
    transform: translateY(-100%);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 44px;
    width: auto;
    border-radius: 8px;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-cta { display: block; }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 8001;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: transform 0.4s, opacity 0.4s;
    transform-origin: center;
}

.nav-hamburger.open span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-hamburger.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* --- Menú Móvil --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 7999;
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--text-primary); }

.mobile-menu-cta {
    margin-top: 1rem;
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary) !important;
    border-radius: 60px;
}

/* --- Botón Magnético --- */
.magnetic-btn-wrapper {
    display: inline-block;
    cursor: none;
}

.magnetic-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 60px;
    font-weight: 700;
    font-size: var(--fs-small);
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    transition: background 0.3s, border-color 0.3s;
    white-space: nowrap;
}

.magnetic-btn.primary {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #000;
}

.magnetic-btn.primary:hover {
    box-shadow: 0 0 30px var(--accent-glow);
}

.magnetic-btn.secondary {
    border-color: var(--text-secondary);
}

.magnetic-btn.secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.magnetic-btn.small {
    padding: 0.55rem 1.4rem;
    font-size: 0.7rem;
}

.magnetic-btn.large {
    padding: 1.1rem 3rem;
    font-size: 0.95rem;
}

.magnetic-btn.dark {
    background: #000;
    color: #fff;
    border-color: #000;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
}

.magnetic-btn.dark::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 0, 0, 0.4);
    animation: spin 12s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- Secciones Generales --- */
.section-header {
    margin-bottom: var(--gap-lg);
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-active);
    border-radius: 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

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

/* --- Hero Particles (CSS-only, replaces Three.js) --- */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15), transparent 70%);
    animation: heroFloat 20s ease-in-out infinite;
}

.hero-particles::before {
    width: 600px;
    height: 600px;
    top: -10%;
    left: -10%;
    animation-duration: 25s;
}

.hero-particles::after {
    width: 500px;
    height: 500px;
    bottom: -15%;
    right: -10%;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.1), transparent 70%);
    animation-duration: 30s;
    animation-direction: reverse;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(5%, 10%) scale(1.1); }
    50% { transform: translate(-5%, 5%) scale(0.95); }
    75% { transform: translate(8%, -5%) scale(1.05); }
}

.hero-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 212, 255, 0.5);
    border-radius: 50%;
    animation: particleDrift linear infinite;
}

@keyframes particleDrift {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* Mesh grid background */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 5rem var(--section-px) 0;
    max-width: 1100px;
}

.hero-badge {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 6vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title .line { display: block; }
.hero-title .word { overflow: hidden; display: inline-block; padding-bottom: 0.1em; }
.hero-title .char { display: inline-block; transform-origin: 50% 100%; }

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-metrics {
    display: flex;
    justify-content: center;
    gap: clamp(2rem, 5vw, 5rem);
    margin-bottom: 3rem;
}

.metric { text-align: center; }

.metric-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.metric-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- SERVICIOS --- */
.services {
    padding: var(--section-py) var(--section-px);
    max-width: 1300px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-md);
}

.service-card {
    position: relative;
    padding: clamp(2rem, 3vw, 3rem);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color 0.4s;
}

.service-card:hover { border-color: var(--border-active); }

.service-card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
    transform: translate(-50%, -50%);
}

.service-card:hover .service-card-glow { opacity: 1; }

.service-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
    font-size: var(--fs-h3);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- BENEFICIOS --- */
.benefits {
    padding: var(--section-py) 0;
}

.text-scrub-section {
    padding: 15vh var(--section-px);
    min-height: 80vh;
    display: flex;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.text-scrub {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-muted);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--gap-md);
    padding: var(--section-py) var(--section-px);
    max-width: 1100px;
    margin: 0 auto;
}

.benefit-item {
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    border-top: 1px solid var(--border-subtle);
}

.benefit-number {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--accent-primary);
    letter-spacing: 3px;
    display: block;
    margin-bottom: 1rem;
}

.benefit-item h3 {
    font-size: var(--fs-h3);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.benefit-item p {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- PROCESO --- */
.process {
    padding: var(--section-py) var(--section-px);
    overflow: hidden;
}

.process .section-header {
    max-width: 1100px;
    margin: 0 auto var(--gap-lg);
}

.process-track {
    overflow: hidden;
}

.process-steps {
    display: flex;
    gap: clamp(2rem, 4vw, 5rem);
    padding: 2rem 0;
    width: max-content;
}

.step {
    width: clamp(300px, 30vw, 450px);
    flex-shrink: 0;
    position: relative;
}

.step-number {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.step h3 {
    font-size: var(--fs-h3);
    font-weight: 700;
    margin-bottom: 1rem;
}

.step p {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-line {
    position: absolute;
    top: 2rem;
    right: -3vw;
    width: 3vw;
    color: var(--border-subtle);
    display: block;
}

/* --- TECNOLOGÍA --- */
.tech {
    padding: var(--section-py) 0;
}

.tech .section-header {
    padding: 0 var(--section-px);
    max-width: 1100px;
    margin: 0 auto var(--gap-lg);
}

.tech-marquee-wrapper {
    overflow: hidden;
    padding: var(--gap-md) 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.velocity-marquee {
    display: flex;
    width: max-content;
}

.velocity-marquee span {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 10rem);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.15);
    padding: 0 clamp(1rem, 2vw, 2rem);
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 700;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-md);
    padding: var(--gap-lg) var(--section-px);
    max-width: 1300px;
    margin: 0 auto;
}

.tech-card {
    padding: clamp(1.5rem, 2vw, 2rem);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: border-color 0.3s;
}

.tech-card:hover { border-color: var(--border-active); }

.tech-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-primary);
    margin-bottom: 1.25rem;
}

.tech-icon svg { width: 100%; height: 100%; }

.tech-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tech-card p {
    font-size: var(--fs-small);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- METODOLOGÍA --- */
.methodology {
    padding: var(--section-py) var(--section-px);
    max-width: 900px;
    margin: 0 auto;
}

.method-timeline {
    position: relative;
    padding: var(--gap-md) 0;
}

.method-line-svg {
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    color: var(--border-subtle);
    overflow: visible;
}

.method-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.method-step {
    display: flex;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    padding: clamp(1.5rem, 2.5vw, 2rem) 0;
    position: relative;
}

.method-dot {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.method-dot::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    transform: scale(0);
    transition: transform 0.4s;
}

.method-step.active .method-dot::after { transform: scale(1); }

.method-content h3 {
    font-size: var(--fs-h3);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.method-content p {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.7;
}

.philosophy {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-sm);
    margin-top: var(--gap-lg);
    justify-content: center;
}

.philosophy-item {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 60px;
    font-size: var(--fs-small);
    color: var(--text-secondary);
    background: var(--glass-bg);
    transition: border-color 0.3s, color 0.3s;
}

.philosophy-item:hover {
    border-color: var(--border-active);
    color: var(--accent-primary);
}

/* --- PRECIOS --- */
.pricing {
    padding: var(--section-py) var(--section-px);
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: clamp(2rem, 3vw, 3rem);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-active);
}

.pricing-card.highlighted {
    border-color: var(--accent-primary);
    box-shadow: 0 0 60px var(--accent-glow), 0 0 120px rgba(0, 212, 255, 0.05);
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.04), transparent);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 1.2rem;
    background: var(--accent-gradient);
    color: #000;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 60px;
    white-space: nowrap;
}

.plan-tag {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.price-amount {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.price-period {
    font-size: var(--fs-small);
    color: var(--text-secondary);
}

.plan-setup {
    font-size: var(--fs-small);
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.plan-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--fs-body);
    color: var(--text-secondary);
}

.check-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent-primary);
}

.plan-cta { display: block; text-align: center; }
.plan-cta .magnetic-btn { width: 100%; }

/* --- FAQ --- */
.faq {
    padding: var(--section-py) var(--section-px);
    max-width: 800px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem 0;
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    font-weight: 600;
    text-align: left;
    color: var(--text-primary);
    transition: color 0.3s;
}

.faq-question:hover { color: var(--accent-primary); }

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s, color 0.3s;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    color: var(--accent-primary);
}

.faq-answer {
    height: 0;
    overflow: hidden;
    opacity: 0;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* --- DEMO / FORMULARIO --- */
.demo-section {
    padding: var(--section-py) var(--section-px);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
}

.demo-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    align-items: center;
    position: relative;
}

.demo-text p {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 1.5rem;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1rem 0 0.75rem;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text-primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus { border-color: var(--accent-primary); }

.form-group label {
    position: absolute;
    left: 0;
    top: 1rem;
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: transform 0.3s, font-size 0.3s, color 0.3s;
    transform-origin: left top;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label {
    transform: translateY(-1.5rem) scale(0.8);
    color: var(--accent-primary);
}

/* Hide placeholder so :not(:placeholder-shown) works */
.form-group input::placeholder { color: transparent; }

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s;
}

.form-group input:focus ~ .input-line { transform: scaleX(1); }

.form-submit { width: 100%; margin-top: 0.5rem; }
.form-submit .magnetic-btn { width: 100%; }

.demo-success {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.success-icon {
    width: 60px;
    height: 60px;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
}

.demo-success h3 {
    font-size: var(--fs-h3);
    margin-bottom: 0.5rem;
}

.demo-success p {
    color: var(--text-secondary);
}

/* --- FOOTER --- */
.footer-wrapper {
    height: 150vh;
    position: relative;
    background: var(--bg-primary);
}

.footer-content {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    background: #fff;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    clip-path: circle(0% at 50% 50%);
}

.footer-content h2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.footer-contacts {
    display: flex;
    gap: 2.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-contacts a {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: rgba(0, 0, 0, 0.6);
    transition: color 0.3s;
}

.footer-contacts a:hover { color: #000; }

.footer-btn { margin-top: 3rem; }

.footer-bottom {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: var(--fs-small);
    color: rgba(0, 0, 0, 0.4);
}

.footer-bottom a { transition: color 0.3s; }
.footer-bottom a:hover { color: #000; }


/* ============================================
   VOICE DEMO SECTION
   ============================================ */

.voice-demo {
    padding: var(--section-py) var(--section-px);
    max-width: 1100px;
    margin: 0 auto;
}

.voice-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-lg);
    align-items: center;
}

.voice-demo-text p {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 1.5rem;
}

.voice-phone {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    overflow: hidden;
}

.voice-phone::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0, 212, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.voice-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.voice-avatar svg {
    width: 36px;
    height: 36px;
    color: #000;
}

.voice-avatar-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(0, 212, 255, 0.3);
    opacity: 0;
}

.voice-phone.active .voice-avatar-pulse {
    animation: voicePulse 1.5s ease-out infinite;
}

@keyframes voicePulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}

.voice-caller-name {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    z-index: 1;
}

.voice-status {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    position: relative;
    z-index: 1;
}

.voice-status.active {
    color: #25D366;
}

/* Waveform */
.voice-waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 50px;
    position: relative;
    z-index: 1;
}

.voice-waveform .bar {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 4px;
    transition: height 0.1s;
}

.voice-phone.active .voice-waveform .bar {
    animation: waveBar 0.6s ease-in-out infinite alternate;
}

.voice-waveform .bar:nth-child(1) { animation-delay: 0s; }
.voice-waveform .bar:nth-child(2) { animation-delay: 0.08s; }
.voice-waveform .bar:nth-child(3) { animation-delay: 0.16s; }
.voice-waveform .bar:nth-child(4) { animation-delay: 0.24s; }
.voice-waveform .bar:nth-child(5) { animation-delay: 0.32s; }
.voice-waveform .bar:nth-child(6) { animation-delay: 0.4s; }
.voice-waveform .bar:nth-child(7) { animation-delay: 0.48s; }
.voice-waveform .bar:nth-child(8) { animation-delay: 0.56s; }
.voice-waveform .bar:nth-child(9) { animation-delay: 0.64s; }
.voice-waveform .bar:nth-child(10) { animation-delay: 0.72s; }
.voice-waveform .bar:nth-child(11) { animation-delay: 0.8s; }
.voice-waveform .bar:nth-child(12) { animation-delay: 0.88s; }
.voice-waveform .bar:nth-child(13) { animation-delay: 0.96s; }
.voice-waveform .bar:nth-child(14) { animation-delay: 1.04s; }
.voice-waveform .bar:nth-child(15) { animation-delay: 1.12s; }
.voice-waveform .bar:nth-child(16) { animation-delay: 1.2s; }

@keyframes waveBar {
    0% { height: 6px; }
    100% { height: 40px; }
}

/* Call controls */
.voice-controls {
    display: flex;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.voice-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    padding: 0;
}

.voice-btn:hover { transform: scale(1.1); }

.voice-btn.call-btn {
    background: #25D366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
}

.voice-btn.end-btn {
    background: #ff4444;
    box-shadow: 0 4px 20px rgba(255, 68, 68, 0.4);
    display: none;
}

.voice-phone.active .voice-btn.call-btn { display: none; }
.voice-phone.active .voice-btn.end-btn { display: flex; }

.voice-btn svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* Transcript area */
.voice-transcript {
    width: 100%;
    min-height: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.voice-phone.active .voice-transcript {
    opacity: 1;
}

.voice-transcript .transcript-line {
    margin-bottom: 0.5rem;
}

.voice-transcript .transcript-speaker {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.voice-timer {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}
