/* ===========================================================
   CODICE DIGITAL — Design System v2
   =========================================================== */

:root {
    --primary: #00d4ff;
    --primary-2: #0099ff;
    --primary-3: #5b8cff;
    --violet: #8b5cf6;
    --pink: #ec4899;
    --accent: #ffb703;
    --green: #22c55e;
    --red: #ef4444;

    --bg-darker: #050714;
    --bg-dark: #0a0f1f;
    --bg-mid: #0f172a;
    --bg-card: rgba(17, 24, 39, 0.6);
    --bg-soft: #f8fafc;

    --text-light: #e2e8f0;
    --text-mid: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-dark: #0f172a;

    --border: rgba(148, 163, 184, 0.12);
    --border-hover: rgba(0, 212, 255, 0.4);
    --border-light: #e2e8f0;

    --gradient: linear-gradient(135deg, #00d4ff 0%, #0099ff 50%, #5b8cff 100%);
    --gradient-violet: linear-gradient(135deg, #00d4ff 0%, #8b5cf6 100%);
    --gradient-warm: linear-gradient(135deg, #ffb703 0%, #ec4899 100%);
    --gradient-mesh: radial-gradient(at 27% 37%, rgba(0,212,255,.18) 0px, transparent 50%),
                     radial-gradient(at 97% 21%, rgba(139,92,246,.14) 0px, transparent 50%),
                     radial-gradient(at 52% 99%, rgba(91,140,255,.18) 0px, transparent 50%),
                     radial-gradient(at 10% 80%, rgba(0,212,255,.10) 0px, transparent 50%);

    --shadow-glow: 0 0 40px rgba(0,212,255,.25);
    --shadow-md: 0 4px 14px rgba(0,0,0,.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.15);
    --shadow-xl: 0 30px 80px rgba(0,0,0,.25);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
::selection { background: rgba(0,212,255,.3); color: #fff; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--primary-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }

img, svg { max-width: 100%; display: block; }

button { font-family: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.15; color: var(--text-dark); letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; letter-spacing: -.01em; }

p { color: #475569; }

.icon { width: 24px; height: 24px; flex-shrink: 0; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 28px; height: 28px; }
.icon-lg { width: 36px; height: 36px; }
.icon-xl { width: 48px; height: 48px; }

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient);
    z-index: 999;
    box-shadow: 0 0 12px rgba(0,212,255,.6);
    transition: width .1s linear;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: rgba(5, 7, 20, 0.7);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    transition: padding .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled {
    background: rgba(5, 7, 20, 0.92);
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    font-weight: 800;
    transition: transform .2s var(--ease);
}
.brand:hover { transform: translateY(-1px); color: #fff; }

.brand-mark {
    background: var(--gradient);
    color: #001025;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(0,212,255,.4), inset 0 1px 0 rgba(255,255,255,.4);
    position: relative;
    overflow: hidden;
}
.brand-mark::after {
    content:'';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shine 4s ease-in-out infinite;
}
@keyframes shine { 0%,90%,100%{transform:translateX(-100%)} 95%{transform:translateX(100%)} }

.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.05rem; letter-spacing: 1.5px; }
.brand-text em { font-style: normal; font-size: .72rem; color: var(--primary); letter-spacing: 4px; font-weight: 600; margin-top: 3px; }

.main-nav { display: flex; align-items: center; gap: 2.25rem; }
.main-nav a {
    color: var(--text-light);
    font-weight: 500;
    font-size: .95rem;
    position: relative;
    padding: .35rem 0;
    transition: color .2s;
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:not(.btn-cta)::after {
    content:'';
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transition: all .25s var(--ease);
    transform: translateX(-50%);
}
.main-nav a:not(.btn-cta):hover::after,
.main-nav a:not(.btn-cta).active::after { width: 100%; }

.btn-cta {
    background: var(--gradient);
    color: #001025 !important;
    padding: .65rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0,212,255,.35);
    transition: all .25s var(--ease);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,212,255,.5); }

.nav-toggle {
    display: none;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 11px;
    cursor: pointer;
    color: #fff;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .9rem 1.85rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all .25s var(--ease);
    text-decoration: none;
    white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }

.btn-primary {
    background: var(--gradient);
    color: #001025;
    box-shadow: 0 10px 30px rgba(0,212,255,.35), inset 0 1px 0 rgba(255,255,255,.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,212,255,.5); color: #001025; }

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.25);
    backdrop-filter: blur(10px);
}
.btn-outline:hover { background: rgba(255,255,255,.08); color: #fff; border-color: var(--primary); }

.btn-dark { background: #001025; color: #fff; }
.btn-dark:hover { background: #000a1c; color: #fff; transform: translateY(-2px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    background: var(--bg-darker);
    color: var(--text-light);
    padding: 7rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content:'';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
    pointer-events: none;
}
.hero::after {
    content:'';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148,163,184,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 50%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 50%, transparent 90%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 { color: #fff; margin-bottom: 1.4rem; }
.hero h1 .grad {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero p.lead { font-size: 1.15rem; color: var(--text-mid); margin-bottom: 2.25rem; max-width: 580px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(0,212,255,.1);
    color: var(--primary);
    padding: .45rem 1rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0,212,255,.25);
    backdrop-filter: blur(10px);
}
.hero-badge::before {
    content: '';
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--green);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1; transform:scale(1)} 50%{opacity:.5; transform:scale(.85)} }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}
.hero-stat strong {
    display: block;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: #fff;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -.02em;
}
.hero-stat span { color: var(--text-muted); font-size: .85rem; margin-top: .4rem; display: block; }

/* ============= HERO MOCKUP (dashboard simulado) ============= */
.hero-mock {
    background: linear-gradient(160deg, rgba(15,23,42,.95) 0%, rgba(10,15,31,.95) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow-xl), 0 0 80px rgba(0,212,255,.12);
    position: relative;
    backdrop-filter: blur(20px);
    transform: perspective(1500px) rotateY(-6deg) rotateX(3deg);
    transition: transform .6s var(--ease);
}
.hero-mock:hover { transform: perspective(1500px) rotateY(-2deg) rotateX(1deg); }
.hero-mock::before {
    content:'';
    position: absolute;
    inset: -2px;
    background: var(--gradient);
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: .25;
    filter: blur(20px);
}

.mock-bar { display: flex; align-items: center; gap: .5rem; padding-bottom: .85rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.mock-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-bar .dot.r { background: #ff5f56; }
.mock-bar .dot.y { background: #ffbd2e; }
.mock-bar .dot.g { background: #27c93f; }
.mock-bar .title { margin-left: auto; margin-right: auto; font-family: 'JetBrains Mono', monospace; font-size: .8rem; color: var(--text-muted); }

.mock-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .65rem .85rem;
    border-radius: 10px;
    background: rgba(255,255,255,.02);
    border: 1px solid var(--border);
    margin-bottom: .55rem;
    font-size: .88rem;
    transition: all .3s var(--ease);
}
.mock-row:hover { background: rgba(0,212,255,.05); border-color: rgba(0,212,255,.2); }

.mock-row .live {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    flex-shrink: 0;
    animation: pulse 2.2s ease-in-out infinite;
}
.mock-row .live.warn { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation-delay: .4s; }

.mock-row .label { color: var(--text-light); font-weight: 500; flex: 1; }
.mock-row .value { color: var(--text-muted); font-family: 'JetBrains Mono', monospace; font-size: .8rem; }
.mock-row .badge-ok { background: rgba(34,197,94,.15); color: var(--green); padding: .15rem .55rem; border-radius: 50px; font-size: .72rem; font-weight: 600; border: 1px solid rgba(34,197,94,.3); }

.mock-chart { margin-top: 1rem; padding: .85rem; background: rgba(0,212,255,.04); border: 1px solid var(--border); border-radius: 10px; }
.mock-chart-head { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-muted); margin-bottom: .65rem; font-family: 'JetBrains Mono', monospace; }
.mock-chart-head strong { color: var(--primary); }
.mock-bars { display: flex; align-items: flex-end; gap: 5px; height: 50px; }
.mock-bars span {
    flex: 1;
    background: var(--gradient);
    border-radius: 3px 3px 0 0;
    opacity: .85;
    animation: barRise 1.4s var(--ease) backwards;
}
@keyframes barRise { from { height: 0; opacity: 0; } }

/* Floating elements decorativos */
.hero-float {
    position: absolute;
    background: linear-gradient(135deg, rgba(0,212,255,.15), rgba(139,92,246,.1));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,212,255,.2);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .5rem;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}
.hero-float .icon { color: var(--primary); }
.hero-float-1 { top: 10%; right: -3%; animation-delay: 0s; }
.hero-float-2 { bottom: 18%; left: -8%; animation-delay: 2s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* ============================================================
   MARQUEE de marcas
   ============================================================ */
.marquee-section {
    background: #fff;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-light);
}
.marquee-label {
    text-align: center;
    color: var(--text-dim);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
    display: flex;
    gap: 4rem;
    animation: scroll 35s linear infinite;
    width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
    color: var(--text-dim);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -.02em;
    white-space: nowrap;
    transition: color .25s;
    font-family: 'Inter', sans-serif;
}
.marquee-item:hover { color: var(--primary-2); }
@keyframes scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 6rem 0; position: relative; }

.section-head { text-align: center; max-width: 740px; margin: 0 auto 4rem; }
.section-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--primary-2);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: .35rem 1rem;
    background: rgba(0,212,255,.08);
    border: 1px solid rgba(0,212,255,.2);
    border-radius: 50px;
}
.section-head h2 { color: var(--text-dark); }
.section-head p { color: var(--text-dim); margin-top: 1rem; font-size: 1.05rem; }

.dark-section { background: var(--bg-darker); color: var(--text-light); position: relative; overflow: hidden; }
.dark-section::before {
    content:'';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148,163,184,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
    pointer-events: none;
}
.dark-section::after {
    content:'';
    position: absolute;
    top: -20%; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(circle, rgba(0,212,255,.1) 0%, transparent 60%);
    pointer-events: none;
}
.dark-section h2 { color: #fff; }
.dark-section .section-head .eyebrow { color: var(--primary); background: rgba(0,212,255,.1); border-color: rgba(0,212,255,.25); }
.dark-section .section-head p { color: var(--text-muted); }
.dark-section > .container { position: relative; z-index: 1; }

/* ============================================================
   CARDS de servicio
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all .35s var(--ease);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content:'';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease);
}
.service-card::after {
    content:'';
    position: absolute;
    top: -50%; right: -50%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(0,212,255,.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity .35s;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0,32,80,.12), 0 0 0 1px rgba(0,212,255,.2);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }

.service-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0,212,255,.12) 0%, rgba(91,140,255,.12) 100%);
    color: var(--primary-2);
    display: grid; place-items: center;
    margin-bottom: 1.25rem;
    transition: all .35s var(--ease);
    border: 1px solid rgba(0,212,255,.15);
}
.service-icon .icon { width: 30px; height: 30px; }
.service-card:hover .service-icon { transform: scale(1.05) rotate(-4deg); background: var(--gradient); color: #fff; box-shadow: 0 12px 24px rgba(0,212,255,.35); border-color: transparent; }

.service-card h3 { color: var(--text-dark); margin-bottom: .55rem; }
.service-card p { font-size: .95rem; color: var(--text-dim); line-height: 1.6; }

.service-card ul { list-style: none; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--border-light); }
.service-card ul li { font-size: .88rem; color: #475569; padding: .35rem 0; padding-left: 1.5rem; position: relative; }
.service-card ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 11px;
    width: 14px; height: 14px;
    background: var(--gradient);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ============================================================
   PRODUCT CARDS (dark)
   ============================================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: rgba(15,23,42,.5);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    transition: all .35s var(--ease);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.product-card::before {
    content:'';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity .35s;
    z-index: -1;
}
.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,212,255,.12);
    background: rgba(15,23,42,.8);
}
.product-card .product-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(0,212,255,.08);
    display: grid; place-items: center;
    border: 1px solid rgba(0,212,255,.2);
    color: var(--primary);
    margin-bottom: 1.1rem;
    transition: all .35s var(--ease);
    font-weight: 800;
    font-size: 1.2rem;
}
.product-card .product-icon .icon { width: 28px; height: 28px; }
.product-card:hover .product-icon { background: var(--gradient); color: #001025; border-color: transparent; transform: scale(1.05); }
.product-card h3 { color: #fff; }
.product-card p { color: var(--text-muted); font-size: .92rem; }
.product-card .product-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.product-card .product-tags span {
    background: rgba(0,212,255,.08);
    color: var(--primary);
    font-size: .73rem;
    padding: .3rem .75rem;
    border-radius: 50px;
    border: 1px solid rgba(0,212,255,.18);
    font-weight: 500;
}

/* ============================================================
   FEATURES (Por qué elegirnos)
   ============================================================ */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}
.feature {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(15,23,42,.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all .35s var(--ease);
    backdrop-filter: blur(10px);
}
.feature:hover { transform: translateY(-5px); border-color: var(--border-hover); background: rgba(15,23,42,.7); }
.feature-icon {
    width: 76px; height: 76px;
    margin: 0 auto 1.25rem;
    background: var(--gradient);
    color: #001025;
    border-radius: 50%;
    display: grid; place-items: center;
    box-shadow: 0 14px 30px rgba(0,212,255,.3), inset 0 1px 0 rgba(255,255,255,.3);
    position: relative;
}
.feature-icon::before {
    content:'';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(0,212,255,.3);
    animation: ping 3s ease-in-out infinite;
}
@keyframes ping { 0%{opacity:1;transform:scale(1)} 100%{opacity:0;transform:scale(1.3)} }
.feature-icon .icon { width: 32px; height: 32px; }
.feature h3 { color: #fff; font-size: 1.1rem; margin-top: .5rem; }
.feature p { color: var(--text-muted); font-size: .92rem; }

/* ============================================================
   TIMELINE / Proceso
   ============================================================ */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    counter-reset: step;
}
.timeline::before {
    content:'';
    position: absolute;
    top: 32px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,.3) 10%, rgba(0,212,255,.3) 90%, transparent);
    z-index: 0;
}
.timeline-step {
    position: relative;
    text-align: center;
    padding: 0 1rem;
    z-index: 1;
}
.timeline-num {
    counter-increment: step;
    width: 64px; height: 64px;
    margin: 0 auto 1rem;
    background: var(--bg-darker);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.4rem;
    font-family: 'JetBrains Mono', monospace;
    box-shadow: 0 0 0 6px rgba(0,212,255,.08), 0 0 30px rgba(0,212,255,.2);
    transition: all .35s var(--ease);
}
.timeline-num::before { content: counter(step, decimal-leading-zero); }
.timeline-step:hover .timeline-num { background: var(--gradient); color: #001025; transform: scale(1.08); }
.timeline-step h3 { color: #fff; margin-bottom: .5rem; font-size: 1.1rem; }
.timeline-step p { color: var(--text-muted); font-size: .9rem; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.testimonial {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: all .35s var(--ease);
}
.testimonial::before {
    content: '"';
    position: absolute;
    top: 1rem; right: 1.5rem;
    font-family: 'Georgia', serif;
    font-size: 5rem;
    line-height: 1;
    color: rgba(0,212,255,.15);
    font-weight: 800;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(0,212,255,.25); }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 1rem; color: #fbbf24; }
.testimonial-stars .icon { width: 18px; height: 18px; fill: #fbbf24; stroke: #fbbf24; }
.testimonial-text { color: #334155; font-size: .98rem; line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .85rem; padding-top: 1rem; border-top: 1px solid var(--border-light); }
.testimonial-avatar {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--gradient);
    color: #001025;
    display: grid; place-items: center;
    font-weight: 800;
    font-size: 1rem;
}
.testimonial-author strong { display: block; color: var(--text-dark); font-size: .95rem; }
.testimonial-author span { color: var(--text-dim); font-size: .82rem; }

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: .85rem; }
.faq-item {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all .25s var(--ease);
    overflow: hidden;
}
.faq-item:hover { border-color: rgba(0,212,255,.3); }
.faq-item.open { border-color: var(--primary); box-shadow: 0 10px 30px rgba(0,212,255,.1); }
.faq-q {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.02rem;
}
.faq-toggle {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(0,212,255,.1);
    color: var(--primary-2);
    display: grid; place-items: center;
    transition: all .3s var(--ease);
    flex-shrink: 0;
}
.faq-toggle .icon { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.faq-item.open .faq-toggle { background: var(--gradient); color: #001025; }
.faq-item.open .faq-toggle .icon { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
}
.faq-a-inner { padding: 0 1.5rem 1.4rem; color: #475569; line-height: 1.7; }

/* ============================================================
   CTA Banner
   ============================================================ */
.cta-banner {
    background: var(--bg-darker);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content:'';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0,212,255,.18), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139,92,246,.14), transparent 50%);
}
.cta-banner-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: var(--text-mid); font-size: 1.1rem; margin-bottom: 2rem; }

/* ============================================================
   Page hero
   ============================================================ */
.page-hero {
    background: var(--bg-darker);
    color: #fff;
    padding: 5.5rem 0 4.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content:'';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh);
}
.page-hero::after {
    content:'';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148,163,184,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 50%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, #000 50%, transparent 90%);
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero p { color: var(--text-mid); max-width: 700px; margin: 1rem auto 0; font-size: 1.05rem; }
.page-hero .breadcrumbs { color: var(--text-muted); font-size: .85rem; margin-bottom: .75rem; letter-spacing: 1px; }
.page-hero .breadcrumbs a { color: var(--text-muted); }
.page-hero .breadcrumbs a:hover { color: var(--primary); }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 2.5rem;
    align-items: start;
}
.contact-info {
    background: var(--bg-darker);
    color: var(--text-light);
    padding: 2.75rem;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}
.contact-info::before {
    content:'';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(0,212,255,.15), transparent 60%);
    pointer-events: none;
}
.contact-info > * { position: relative; }
.contact-info h3 { color: #fff; margin-bottom: 1.5rem; font-size: 1.4rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.info-item .info-ic {
    background: var(--gradient);
    color: #001025;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid; place-items: center;
    flex-shrink: 0;
    box-shadow: 0 8px 18px rgba(0,212,255,.3);
}
.info-item strong { display: block; color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: .15rem; font-weight: 600; }
.info-item a, .info-item span { color: var(--text-light); font-size: .95rem; }
.info-item a:hover { color: var(--primary); }

.contact-form {
    background: #fff;
    padding: 2.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: .45rem;
    color: var(--text-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: .85rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    font-family: inherit;
    font-size: .95rem;
    transition: all .2s var(--ease);
    background: #fff;
    color: var(--text-dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,212,255,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }

.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: .95rem;
    border: 1px solid;
    display: flex;
    align-items: flex-start;
    gap: .65rem;
}
.alert-success { background: #ecfdf5; color: #065f46; border-color: #6ee7b7; }
.alert-error { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--bg-darker);
    color: var(--text-muted);
    padding: 4.5rem 0 0;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.site-footer::before {
    content:'';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1.5fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1.2rem; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col ul li { padding: .35rem 0; font-size: .92rem; }
.footer-col ul li a { color: var(--text-muted); transition: color .2s, padding-left .25s var(--ease); display: inline-block; }
.footer-col ul li a:hover { color: var(--primary); padding-left: 4px; }
.footer-about { font-size: .92rem; margin-top: 1rem; line-height: 1.7; max-width: 380px; }
.footer-social { display: flex; gap: .65rem; margin-top: 1.25rem; }
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    display: grid; place-items: center;
    color: var(--text-muted);
    transition: all .25s var(--ease);
}
.footer-social a:hover { background: var(--gradient); color: #001025; border-color: transparent; transform: translateY(-2px); }
.contact-list li { display: flex; align-items: center; gap: .6rem; }
.contact-list .icon { color: var(--primary); width: 16px; height: 16px; }
.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .85rem;
}

/* ============================================================
   FAB - WhatsApp flotante
   ============================================================ */
.fab-whatsapp {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: grid; place-items: center;
    box-shadow: 0 12px 32px rgba(37,211,102,.45);
    z-index: 90;
    transition: all .3s var(--ease);
    animation: bounceIn 1s var(--ease) .8s backwards;
}
.fab-whatsapp:hover { transform: scale(1.08); color: #fff; box-shadow: 0 16px 40px rgba(37,211,102,.6); }
.fab-whatsapp::before {
    content:'';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25d366;
    animation: ping 2.5s ease-in-out infinite;
}
.fab-whatsapp .icon { width: 30px; height: 30px; stroke-width: 2; }
@keyframes bounceIn { from { transform: scale(0); opacity: 0; } 60% { transform: scale(1.15); } to { transform: scale(1); opacity: 1; } }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .nav-toggle { display: grid; place-items: center; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 1.5rem;
        gap: .75rem;
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s var(--ease);
        align-items: stretch;
    }
    .main-nav.open { max-height: 500px; }
    .main-nav a { padding: .75rem .5rem; border-radius: 8px; }
    .main-nav a:hover { background: rgba(255,255,255,.04); }
    .main-nav a.btn-cta { text-align: center; }

    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-mock { transform: none; max-width: 540px; margin: 0 auto; }
    .hero-mock:hover { transform: none; }
    .hero-float-1, .hero-float-2 { display: none; }

    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .timeline { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .timeline::before { display: none; }
}

@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
    section { padding: 4rem 0; }
    .hero { padding: 4.5rem 0 4rem; }
    .timeline { grid-template-columns: 1fr; }
    .fab-whatsapp { width: 54px; height: 54px; bottom: 18px; right: 18px; }
}
