/* ============================================================
   AutomatizayDigitaliza — Premium SaaS Design
   Inspiración: Stripe · Notion · Linear
   Paleta: #227dcc · #3d45d9 · #0f172a · #f8fafc
   ============================================================ */

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

:root {
    /* Marca */
    --blue:         #227dcc;
    --blue-dark:    #1a6ab5;
    --indigo:       #3d45d9;
    --gradient:     linear-gradient(135deg, #227dcc 0%, #3d45d9 100%);
    --gradient-135: linear-gradient(135deg, #3d45d9 0%, #227dcc 100%);

    /* Neutros */
    --ink:          #0f172a;
    --ink-2:        #1e293b;
    --ink-3:        #334155;
    --muted:        #64748b;
    --subtle:       #94a3b8;
    --border:       #e2e8f0;
    --border-2:     #cbd5e1;
    --surface:      #f8fafc;
    --surface-2:    #f1f5f9;
    --white:        #ffffff;

    /* Dark (secciones oscuras) */
    --dark:         #060d1a;
    --dark-card:    #0f1929;
    --dark-border:  #1e2d45;
    --dark-muted:   rgba(255,255,255,.45);

    /* Semáforo */
    --green:        #10b981;
    --red:          #ef4444;
    --amber:        #f59e0b;

    /* Radios */
    --r-btn:        12px;
    --r-card:       16px;
    --r-lg:         24px;
    --r-xl:         32px;

    /* Sombras */
    --shadow-xs:    0 1px 2px rgba(0,0,0,.05);
    --shadow-sm:    0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
    --shadow-md:    0 4px 8px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.07);
    --shadow-lg:    0 8px 16px rgba(0,0,0,.08), 0 24px 56px rgba(0,0,0,.1);
    --shadow-blue:  0 4px 20px rgba(34,125,204,.3);
    --shadow-blue-hover: 0 8px 32px rgba(34,125,204,.45);
}

/* ── BASE ──────────────────────────────────────────────────── */
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', 'Inter', sans-serif;
    letter-spacing: -.02em;
    line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }
a   { text-decoration: none; color: inherit; transition: color .2s; }
ul  { list-style: none; }
button { font-family: inherit; }

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── HELPERS ───────────────────────────────────────────────── */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: .875rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 540px;
    margin: .75rem auto 0;
    text-align: center;
    line-height: 1.7;
}

.section-desc {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.75;
    margin-top: .75rem;
}

/* ── LUCIDE ICON BASE ──────────────────────────────────────── */
svg[class*="lucide"] {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.6rem;
    border-radius: var(--r-btn);
    font-family: 'Inter', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    border: 1.5px solid transparent;
    white-space: nowrap;
    text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--shadow-blue-hover);
}
.btn-primary:active { transform: translateY(0) scale(.99); }

.btn-ghost {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    border-color: rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.35);
    transform: translateY(-1px);
}

.btn-white {
    background: var(--white);
    color: var(--indigo);
    font-weight: 700;
    border-color: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.btn-white:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 32px rgba(0,0,0,.22);
}

.btn-outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}
.btn-outline:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-hero   { padding: .95rem 2rem; font-size: .95rem; }
.btn-grande { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-nav-cta { padding: .55rem 1.25rem; font-size: .82rem; }
.btn-submit  { width: 100%; padding: 1rem; font-size: .95rem; justify-content: center; }

/* ── LOGO CIRCLE ───────────────────────────────────────────── */
.logo-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    overflow: hidden;
    box-shadow:
        0 0 0 2px rgba(34,125,204,.25),
        0 0 16px rgba(34,125,204,.2),
        0 2px 8px rgba(0,0,0,.12);
    transition: box-shadow .2s;
}
.logo-circle:hover {
    box-shadow:
        0 0 0 2px rgba(34,125,204,.5),
        0 0 28px rgba(34,125,204,.35),
        0 4px 12px rgba(0,0,0,.15);
}
.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.logo-circle-sm {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 4px;
}

/* ── NAVBAR ────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    padding: .85rem 0;
    background: rgba(6, 13, 26, .82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .3s;
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -.01em;
}
.brand-name-light { color: rgba(255,255,255,.8); }

.nav-menu {
    display: flex;
    gap: 1.75rem;
    margin-left: auto;
}
.nav-menu a {
    font-size: .85rem;
    font-weight: 500;
    color: rgba(255,255,255,.6);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--white); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    margin-left: auto;
    background: none;
    border: none;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all .25s ease;
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
    position: relative;
    background: var(--dark);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

/* Background orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}
.hero-orb-1 {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(34,125,204,.22) 0%, transparent 70%);
    top: -200px; left: -150px;
}
.hero-orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(61,69,217,.18) 0%, transparent 70%);
    bottom: -100px; right: -100px;
}
.hero-orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(34,125,204,.12) 0%, transparent 70%);
    top: 40%; left: 50%;
    transform: translate(-50%, -50%);
}

/* Dot grid overlay */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: rgba(34,125,204,.12);
    border: 1px solid rgba(34,125,204,.3);
    color: #93c5fd;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .04em;
    padding: .45rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 6px; height: 6px;
    background: #34d399;
    border-radius: 50%;
    box-shadow: 0 0 6px #34d399;
    animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

.hero h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.2rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 1.25rem;
    line-height: 1.12;
}

.hero-sub {
    font-size: 1.1rem;
    color: rgba(255,255,255,.6);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 480px;
}
.hero-sub strong { color: rgba(255,255,255,.9); }

.hero-ctas {
    display: flex;
    gap: .875rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}
.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 500;
    color: rgba(255,255,255,.5);
}
.trust-pill svg { width: 14px; height: 14px; color: var(--green); }

/* Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    border-radius: 28px;
    background: #0d1f2d;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255,255,255,.07),
        0 32px 80px rgba(0,0,0,.7),
        0 0 0 12px rgba(34,125,204,.04),
        0 0 80px rgba(34,125,204,.1);
    animation: floatPhone 6s ease-in-out infinite;
}
@keyframes floatPhone {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}

.phone-notch {
    width: 72px; height: 5px;
    background: rgba(255,255,255,.08);
    border-radius: 3px;
    margin: 12px auto 0;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .7rem 1rem;
    background: #0f2233;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.chat-avatar-wrap { position: relative; }
.chat-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .68rem;
    color: var(--white);
    letter-spacing: -.01em;
}
.online-dot {
    position: absolute;
    bottom: 1px; right: 1px;
    width: 9px; height: 9px;
    background: #34d399;
    border-radius: 50%;
    border: 2px solid #0f2233;
}

.chat-name  { font-size: .8rem; font-weight: 600; color: #e2e8f0; }
.chat-status { font-size: .66rem; color: #34d399; }

.chat-messages {
    padding: .9rem;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    background: #071520;
    min-height: 255px;
}

.msg {
    max-width: 84%;
    padding: .5rem .8rem;
    border-radius: 10px;
    font-size: .74rem;
    line-height: 1.45;
}
.msg-time {
    display: block;
    font-size: .58rem;
    color: rgba(255,255,255,.3);
    text-align: right;
    margin-top: .2rem;
}
.msg-in  { background: #0f2233; color: #cbd5e1; align-self: flex-start; border-bottom-left-radius: 3px; }
.msg-out { background: #064e3b; color: #d1fae5; align-self: flex-end;   border-bottom-right-radius: 3px; }
.msg-out strong { color: #6ee7b7; }
.msg.confirmed  { background: #022c22; border: 1px solid rgba(52,211,153,.18); }
.msg-label {
    align-self: center;
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.35);
    font-size: .6rem;
    padding: .22rem .7rem;
    border-radius: 50px;
    text-align: center;
    max-width: 100%;
}

.chat-footer-mock  { padding: .55rem .8rem; background: #0f2233; border-top: 1px solid rgba(255,255,255,.04); }
.chat-input-mock   { background: #1a3448; border-radius: 20px; padding: .4rem .9rem; font-size: .7rem; color: rgba(255,255,255,.25); }

/* Floating badges */
.float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: .45rem .9rem;
    font-size: .72rem;
    font-weight: 600;
    color: rgba(255,255,255,.8);
    white-space: nowrap;
}
.float-badge svg { width: 13px; height: 13px; color: #34d399; }

.float-badge-1 {
    top: 24px; right: -56px;
    animation: floatBadge1 5s ease-in-out infinite;
}
.float-badge-2 {
    bottom: 40px; left: -64px;
    animation: floatBadge2 5s ease-in-out 1.5s infinite;
}
@keyframes floatBadge1 {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%       { transform: translateY(-6px) rotate(1deg); }
}
@keyframes floatBadge2 {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50%       { transform: translateY(6px) rotate(-1deg); }
}

/* ── MÉTRICAS ──────────────────────────────────────────────── */
.metricas {
    background: var(--surface);
    padding: 4.5rem 0;
    border-bottom: 1px solid var(--border);
}

.metricas-label {
    text-align: center;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--subtle);
    margin-bottom: 2.25rem;
}

.metricas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.metrica-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: var(--shadow-sm);
}
.metrica-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity .2s;
}
.metrica-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.metrica-card:hover::before { opacity: 1; }

.metrica-destacada {
    border-color: rgba(34,125,204,.3);
    box-shadow: 0 0 0 1px rgba(34,125,204,.2), var(--shadow-sm);
}
.metrica-destacada::before { opacity: 1; }

.metrica-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}
.metrica-icon svg {
    width: 22px; height: 22px;
    color: var(--blue);
    stroke-width: 1.75;
}

.metrica-numero {
    font-family: 'Poppins', sans-serif;
    font-size: 2.6rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: .5rem;
}

.metrica-texto {
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.45;
}

/* ── PROBLEMAS ─────────────────────────────────────────────── */
.problemas {
    padding: 7rem 0;
    background: var(--white);
}

.problemas-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.problemas-texto h2 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 1rem;
}

.problemas-lista {
    margin-top: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: .875rem;
}

.problema-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.problema-item:hover {
    border-color: #fca5a5;
    box-shadow: 0 4px 20px rgba(239,68,68,.06);
    transform: translateX(3px);
}

.problema-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.problema-icon svg { width: 18px; height: 18px; color: var(--red); stroke-width: 1.75; }

.problema-item strong { display: block; font-size: .875rem; font-weight: 700; color: var(--ink); margin-bottom: .2rem; }
.problema-item p      { font-size: .8rem; color: var(--muted); line-height: 1.55; }

/* Coste Card */
.coste-card {
    background: var(--dark);
    border-radius: var(--r-lg);
    padding: 2rem;
    color: var(--white);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--dark-border);
    position: sticky;
    top: 96px;
}

.coste-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--subtle);
    margin-bottom: 1.5rem;
}
.coste-title svg { width: 15px; height: 15px; color: var(--amber); }

.coste-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .7rem 0;
    border-bottom: 1px solid var(--dark-border);
    font-size: .83rem;
    color: rgba(255,255,255,.55);
}
.coste-valor       { font-weight: 700; }
.coste-valor.rojo  { color: #f87171; }
.coste-valor.grande { font-size: 1.3rem; font-weight: 900; }

.coste-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    font-size: .83rem;
    color: rgba(255,255,255,.55);
}
.coste-nota {
    font-size: .65rem;
    color: rgba(255,255,255,.25);
    margin-top: 1.25rem;
    line-height: 1.5;
}

/* ── SOLUCIÓN ──────────────────────────────────────────────── */
.solucion {
    padding: 7rem 0;
    background: var(--surface);
    text-align: center;
}

.solucion h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: .5rem;
}

.pasos-grid {
    display: grid;
    grid-template-columns: 1fr 40px 1fr 40px 1fr;
    gap: 1rem;
    align-items: center;
    margin-top: 4rem;
}

.paso-conector {
    display: flex;
    justify-content: center;
    color: var(--border-2);
}
.paso-conector svg { width: 22px; height: 22px; }

.paso-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2.25rem 2rem;
    text-align: center;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
    box-shadow: var(--shadow-sm);
}
.paso-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(34,125,204,.2);
}

.paso-destacado {
    border-color: rgba(34,125,204,.35);
    box-shadow: 0 0 0 1px rgba(34,125,204,.2), var(--shadow-md);
    background: linear-gradient(160deg, rgba(34,125,204,.03), rgba(61,69,217,.04));
}
.paso-destacado:hover {
    box-shadow: 0 0 0 1px rgba(34,125,204,.35), var(--shadow-lg);
}

.paso-numero {
    font-family: 'Poppins', sans-serif;
    font-size: .65rem;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.paso-icon-wrap {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    transition: background .2s, border-color .2s;
}
.paso-icon-wrap svg { width: 24px; height: 24px; color: var(--blue); stroke-width: 1.75; }

.paso-icon-featured {
    background: var(--gradient);
    border-color: transparent;
}
.paso-icon-featured svg { color: var(--white); }

.paso-card h3 { font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: .7rem; }
.paso-card p  { font-size: .82rem; color: var(--muted); line-height: 1.65; }

.solucion-extras {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 3.5rem;
}

.extra-item {
    display: flex;
    align-items: center;
    gap: .55rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: .5rem 1.1rem;
    font-size: .8rem;
    font-weight: 500;
    color: var(--muted);
    box-shadow: var(--shadow-xs);
    transition: border-color .2s, box-shadow .2s;
}
.extra-item:hover { border-color: rgba(34,125,204,.3); box-shadow: var(--shadow-sm); }
.extra-icon { display: flex; }
.extra-icon svg { width: 15px; height: 15px; color: var(--blue); stroke-width: 2; }

/* ── DEMO OFERTA ───────────────────────────────────────────── */
.demo-oferta {
    padding: 7rem 0;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}
.demo-oferta::before {
    content: '';
    position: absolute;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(34,125,204,.1) 0%, transparent 65%);
    top: 50%; left: -200px;
    transform: translateY(-50%);
    pointer-events: none;
}
.demo-oferta::after {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(61,69,217,.08) 0%, transparent 65%);
    top: 50%; right: -150px;
    transform: translateY(-50%);
    pointer-events: none;
}

.demo-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: start;
}

.demo-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(34,125,204,.15);
    border: 1px solid rgba(34,125,204,.3);
    color: #93c5fd;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}
.demo-badge svg { width: 13px; height: 13px; }

.demo-contenido h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.demo-contenido > p {
    font-size: .95rem;
    color: var(--dark-muted);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.demo-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.demo-item { display: flex; gap: .875rem; align-items: flex-start; }

.demo-check {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(16,185,129,.15);
    border: 1px solid rgba(16,185,129,.3);
    color: #6ee7b7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.demo-check svg { width: 13px; height: 13px; stroke-width: 2.5; }

.demo-item strong { display: block; color: var(--white); font-size: .875rem; font-weight: 600; margin-bottom: .2rem; }
.demo-item p      { color: rgba(255,255,255,.42); font-size: .8rem; line-height: 1.55; }

.urgencia-box {
    display: flex;
    gap: .875rem;
    align-items: flex-start;
    background: rgba(245,158,11,.07);
    border: 1px solid rgba(245,158,11,.2);
    border-radius: var(--r-card);
    padding: 1.1rem 1.25rem;
    margin-bottom: 2rem;
}
.urgencia-icon { flex-shrink: 0; margin-top: 2px; }
.urgencia-icon.urgencia-icon { /* override svg size */ }
.urgencia-box svg { width: 18px; height: 18px; color: var(--amber); flex-shrink: 0; margin-top: 2px; }
.urgencia-box strong { display: block; color: #fcd34d; font-size: .875rem; margin-bottom: .2rem; }
.urgencia-box p      { color: rgba(255,255,255,.42); font-size: .78rem; line-height: 1.55; }

.demo-nota {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    font-size: .78rem;
    color: rgba(255,255,255,.3);
    margin-top: .875rem;
}
.demo-nota svg { width: 13px; height: 13px; }
.demo-nota a { color: rgba(255,255,255,.55); text-decoration: underline; }

/* Demo right column */
.demo-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-grande {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--dark-border);
    border-radius: var(--r-card);
    padding: 1.6rem 1.75rem;
    text-align: center;
    transition: border-color .2s, background .2s;
}
.stat-grande:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(34,125,204,.3);
}

.stat-icon {
    display: flex;
    justify-content: center;
    margin-bottom: .75rem;
}
.stat-icon svg { width: 20px; height: 20px; color: var(--blue); stroke-width: 1.75; }

.stat-num {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: .35rem;
}
.stat-desc { font-size: .78rem; color: rgba(255,255,255,.38); }

.clientes-actuales {
    background: rgba(255,255,255,.04);
    border: 1px solid var(--dark-border);
    border-radius: var(--r-card);
    padding: 1.4rem;
}
.clientes-titulo {
    font-size: .68rem;
    color: rgba(255,255,255,.28);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .875rem;
}
.clientes-logos {
    display: flex;
    gap: .75rem;
    justify-content: center;
}
.clientes-logos a {
    width: 70px; height: 70px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    transition: transform .2s, border-color .2s;
}
.clientes-logos a:hover {
    transform: scale(1.06);
    border-color: rgba(34,125,204,.4);
}
.clientes-logos img { width: 100%; height: 100%; object-fit: cover; }

/* ── CASOS ─────────────────────────────────────────────────── */
.casos {
    padding: 7rem 0;
    background: var(--white);
}
.casos h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--ink);
    text-align: center;
    margin-bottom: .5rem;
}

.casos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.caso-card {
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.caso-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(34,125,204,.2);
}
.caso-destacado {
    border-color: rgba(34,125,204,.3);
    box-shadow: 0 0 0 1px rgba(34,125,204,.15), var(--shadow-sm);
}
.caso-destacado:hover {
    box-shadow: 0 0 0 1px rgba(34,125,204,.3), var(--shadow-lg);
}

.caso-sector-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.25rem;
}

.caso-sector-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.caso-sector-icon svg { width: 18px; height: 18px; color: var(--blue); stroke-width: 1.75; }
.caso-sector-icon.featured { background: var(--gradient); border-color: transparent; }
.caso-sector-icon.featured svg { color: var(--white); }

.caso-sector {
    font-size: .75rem;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.caso-problema, .caso-solucion {
    font-size: .83rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: .875rem;
}
.caso-problema strong, .caso-solucion strong {
    color: var(--ink);
    font-weight: 600;
    display: block;
    margin-bottom: .2rem;
}

.caso-resultado {
    display: flex;
    gap: .5rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
.resultado-item { flex: 1; text-align: center; }
.resultado-num {
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: .22rem;
}
.resultado-item > div:last-child { font-size: .68rem; color: var(--subtle); }

.casos-cta {
    text-align: center;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}
.casos-cta p { font-size: 1rem; color: var(--muted); }
.casos-cta strong { color: var(--ink); }

/* ── CTA PRINCIPAL ─────────────────────────────────────────── */
.cta-principal {
    padding: 7rem 0;
    background: var(--gradient);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-principal-glow {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.cta-principal-inner {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
}

.cta-icon-wrap {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.75rem;
    border: 1px solid rgba(255,255,255,.2);
}
.cta-icon-wrap svg { width: 28px; height: 28px; color: var(--white); stroke-width: 1.5; }

.cta-principal h2 {
    font-size: clamp(1.85rem, 4vw, 2.9rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.18;
    margin-bottom: 1rem;
}
.cta-principal p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.75);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}
.cta-sub {
    font-size: .78rem !important;
    color: rgba(255,255,255,.5) !important;
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq {
    padding: 7rem 0;
    background: var(--surface);
    text-align: center;
}
.faq h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 3.5rem;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: .625rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: box-shadow .2s, border-color .2s;
}
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item.open  { border-color: rgba(34,125,204,.25); }

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink);
    transition: color .2s;
}
.faq-question:hover { color: var(--blue); }

.faq-icon-wrap {
    flex-shrink: 0;
    width: 24px; height: 24px;
    position: relative;
}
.faq-icon-wrap svg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 16px; height: 16px;
    color: var(--blue);
    transition: opacity .25s, transform .25s;
    stroke-width: 2.5;
}
.icon-plus  { opacity: 1; }
.icon-minus { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg) !important; }
.faq-item.open .icon-plus  { opacity: 0; transform: translate(-50%, -50%) rotate(90deg) !important; }
.faq-item.open .icon-minus { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) !important; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    font-size: .86rem;
    color: var(--muted);
    line-height: 1.75;
}
.faq-answer strong { color: var(--ink); }

/* ── CONTACTO ──────────────────────────────────────────────── */
.contacto {
    padding: 7rem 0;
    background: var(--white);
}

.contacto-inner {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: start;
}

.contacto-texto h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: .875rem;
}
.contacto-texto > p {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 2.25rem;
}

.contacto-datos { display: flex; flex-direction: column; gap: 1.1rem; }

.dato-item {
    display: flex;
    align-items: center;
    gap: .875rem;
}
.dato-icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dato-icon svg { width: 18px; height: 18px; color: var(--blue); stroke-width: 1.75; }
.dato-item strong {
    display: block;
    font-size: .7rem;
    font-weight: 600;
    color: var(--subtle);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .1rem;
}
.dato-item a, .dato-item span { font-size: .875rem; color: var(--ink); font-weight: 500; }
.dato-item a:hover { color: var(--blue); }

/* Form */
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    box-shadow: var(--shadow-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group.full { grid-column: 1 / -1; }

.form-group label {
    font-size: .7rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.form-group input,
.form-group textarea {
    padding: .75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--r-btn);
    font-size: .875rem;
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: var(--white);
    outline: none;
    resize: none;
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(34,125,204,.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--subtle); }

.form-nota { font-size: .73rem; color: var(--subtle); text-align: center; }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer {
    background: var(--dark);
    padding: 4.5rem 0 2rem;
    border-top: 1px solid var(--dark-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.3fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: .82rem;
    color: rgba(255,255,255,.38);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    gap: .625rem;
}
.footer-social a {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.45);
    transition: background .2s, border-color .2s, color .2s;
}
.footer-social a:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}
.footer-social svg { width: 15px; height: 15px; stroke-width: 1.75; }

.footer-links h4 {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.28);
    margin-bottom: 1.25rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: .625rem; }
.footer-links a { font-size: .82rem; color: rgba(255,255,255,.42); }
.footer-links a:hover { color: var(--white); }

.footer-cta-box {
    background: rgba(34,125,204,.1);
    border: 1px solid rgba(34,125,204,.2);
    border-radius: var(--r-lg);
    padding: 1.75rem;
    text-align: center;
    align-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}
.footer-cta-box svg { width: 24px; height: 24px; color: var(--blue); stroke-width: 1.5; }
.footer-cta-box p { font-size: .82rem; color: rgba(255,255,255,.45); }

.footer-bottom {
    border-top: 1px solid var(--dark-border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-bottom p { font-size: .73rem; color: rgba(255,255,255,.22); }

/* ── WHATSAPP ──────────────────────────────────────────────── */
.whatsapp-btn {
    position: fixed;
    bottom: 1.75rem; right: 1.75rem;
    z-index: 999;
    width: 54px; height: 54px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4), 0 2px 8px rgba(0,0,0,.15);
    transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 30px rgba(37,211,102,.5), 0 4px 12px rgba(0,0,0,.2);
}

.whatsapp-tooltip {
    position: absolute;
    right: 64px;
    background: var(--ink-2);
    color: var(--white);
    font-size: .72rem;
    font-weight: 600;
    padding: .35rem .8rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    border: 1px solid var(--dark-border);
}
.whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; }

/* ── ANIMACIONES ───────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in { opacity: 0; }
.fade-in.visible { animation: fadeInUp .55s ease forwards; }
.fade-in:nth-child(2) { animation-delay: .08s; }
.fade-in:nth-child(3) { animation-delay: .16s; }
.fade-in:nth-child(4) { animation-delay: .24s; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .pasos-grid { grid-template-columns: 1fr; }
    .paso-conector { transform: rotate(90deg); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .float-badge { display: none; }
}

@media (max-width: 768px) {
    /* Nav */
    .nav-menu {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(6,13,26,.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.25rem;
        z-index: 999;
    }
    .nav-menu.active  { display: flex; }
    .nav-menu a       { font-size: 1.1rem; color: var(--white); }
    .btn-nav-cta      { display: none; }
    .hamburger        { display: flex; }
    .brand-name       { display: none; }

    /* Hero */
    .hero-inner { grid-template-columns: 1fr; gap: 3.5rem; text-align: center; }
    .hero-sub   { max-width: 100%; }
    .hero-ctas  { justify-content: center; }
    .hero-trust { justify-content: center; }
    .phone-mockup { width: 270px; }
    .hero-visual  { justify-content: center; }

    /* Métricas */
    .metricas-grid { grid-template-columns: repeat(2, 1fr); }

    /* Problemas */
    .problemas-inner { grid-template-columns: 1fr; }
    .coste-card      { position: static; }

    /* Casos */
    .casos-grid { grid-template-columns: 1fr; }

    /* Demo */
    .demo-inner { grid-template-columns: 1fr; }

    /* Contacto */
    .contacto-inner { grid-template-columns: 1fr; }
    .form-row       { grid-template-columns: 1fr; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom  { flex-direction: column; text-align: center; }
    .brand-name-light { display: inline; }

    /* Sections */
    .solucion, .casos, .problemas, .demo-oferta,
    .faq, .contacto, .cta-principal { padding: 4.5rem 0; }
    .metricas { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
    .hero           { padding: 96px 0 56px; }
    .hero h1        { font-size: 1.85rem; }
    .hero-ctas      { flex-direction: column; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
    .metricas-grid  { gap: .875rem; }
    .metrica-card   { padding: 1.5rem 1rem; }
    .metrica-numero { font-size: 2.1rem; }
    .contact-form   { padding: 1.5rem; }
    .btn-grande     { padding: .9rem 1.75rem; font-size: .93rem; }
}
