/*
 * Archivo: styles.css
 * Autor: Evallish Bpo
 * Versión: 0.0.1
 * Descripción: Sistema de diseño y estilos globales de Evallish Hub (CRM, automatización e IA).
 * Ruta: Directorio_Raiz/assets/css/styles.css
 *
 * NOTA DE MARCA: Los valores hex son una paleta profesional derivada del ecosistema
 * Evallish BPO (azul corporativo + acento tecnológico). Ajustar al logo oficial:
 * [COLORES DE MARCA PENDIENTES - confirmar hex exactos del manual de marca].
 */

/* ============================================================
   1. TOKENS / VARIABLES DE MARCA
   ============================================================ */
:root {
  /* Azules corporativos oficiales Evallish Hub (muestreados del logo).
     Wordmark navy #04459a · Azul brillante #0571d2 · Azul medio #3a76cf · Fondo claro #eef3fb */
  --brand-950: #05224c;
  --brand-900: #043574;
  --brand-800: #04459a; /* Navy del wordmark (títulos) */
  --brand-700: #0553b8;
  --brand-600: #0571d2; /* Azul brillante del ícono */
  --brand-500: #0a67d4; /* Acción principal */
  --brand-400: #3a86e6;
  --brand-300: #9cc0f0;
  --brand-200: #c6dbf7;
  --brand-100: #dce9fb;
  --brand-50:  #eef3fb;

  /* Acentos (dentro de la misma familia azul de la marca) */
  --cyan-500: #0571d2;
  --cyan-400: #3a76cf;
  --violet-500: #0553b8; /* Inteligencia artificial (azul profundo de marca) */
  --violet-400: #3a86e6;

  /* Semánticos */
  --wa-green: #25d366;
  --wa-green-d: #1da851;
  --success: #16a34a;
  --warning: #d97706;
  --danger:  #dc2626;

  /* Neutros */
  --ink-900: #0b1220;
  --ink-700: #26324a;
  --ink-600: #475069;
  --ink-500: #667085;
  --ink-400: #98a2b3;
  --line:    #e4e8f0;
  --line-2:  #eef1f7;
  --bg:      #ffffff;
  --bg-soft: #f6f8fc;
  --bg-soft-2: #eef3fb;
  --card:    #ffffff;
  --white:   #ffffff;

  /* Tipografía */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-hero: clamp(2rem, 1.2rem + 3.4vw, 3.5rem);
  --fs-h2:   clamp(1.6rem, 1.1rem + 2vw, 2.5rem);
  --fs-h3:   clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  --lh:      1.65;

  /* Espaciado y formas */
  --maxw: 1180px;
  --gap: clamp(1rem, 0.6rem + 1.4vw, 1.75rem);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --shadow-md: 0 8px 24px rgba(16,24,40,.10);
  --shadow-lg: 0 24px 60px rgba(10,28,61,.16);
  --ring: 0 0 0 3px rgba(45,107,255,.35);

  /* Gradientes (replican el degradado del ícono: navy -> azul brillante) */
  --grad-brand: linear-gradient(150deg, #04459a 0%, #0571d2 100%);
  --grad-ai: linear-gradient(150deg, #043574, #0571d2);
  --grad-soft: radial-gradient(1200px 600px at 15% -10%, rgba(5,113,210,.12), transparent 60%),
               radial-gradient(1000px 500px at 100% 0%, rgba(58,118,207,.12), transparent 55%);
}

/* Modo oscuro (respeta preferencia del sistema) */
@media (prefers-color-scheme: dark) {
  :root {
    --ink-900: #eef2fb;
    --ink-700: #cdd6e8;
    --ink-600: #aab5cc;
    --ink-500: #8c98b3;
    --line:    #1e2942;
    --line-2:  #172038;
    --bg:      #0a1020;
    --bg-soft: #0e1830;
    --bg-soft-2: #111e3c;
    --card:    #101a34;
    --white:   #0f1830;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-md: 0 10px 30px rgba(0,0,0,.5);
    --shadow-lg: 0 26px 70px rgba(0,0,0,.6);
  }
}

/* ============================================================
   2. RESET Y BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: var(--lh);
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; }
li { list-style: none; }
strong { color: var(--ink-900); font-weight: 700; }

/* Accesibilidad: foco visible */
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--brand-600); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   3. LAYOUT
   ============================================================ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 0.5rem + 2vw, 2rem); }
.section { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.section--soft { background: var(--bg-soft); }
.section--brand { background: var(--brand-950); color: #d7e2ff; }
.section--brand h2, .section--brand h3 { color: #fff; }
.grid { display: grid; gap: var(--gap); }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-600); background: var(--brand-50);
  padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.section--brand .eyebrow { color: var(--cyan-400); background: rgba(34,211,238,.12); }
.lead { font-size: var(--fs-lead); color: var(--ink-600); max-width: 46ch; }
.center .lead { margin-inline: auto; }
.section-head { max-width: 62ch; margin-inline: auto; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }

/* ============================================================
   4. BOTONES
   ============================================================ */
.btn {
  --_bg: var(--brand-500); --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 700; line-height: 1; cursor: pointer;
  padding: .95rem 1.4rem; border-radius: 12px; border: 1.5px solid transparent;
  background: var(--_bg); color: var(--_fg); text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  min-height: 48px; /* objetivo táctil */
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--primary { --_bg: var(--brand-500); box-shadow: 0 8px 20px rgba(45,107,255,.28); }
.btn--primary:hover { --_bg: var(--brand-600); }
.btn--ghost { --_bg: transparent; --_fg: var(--brand-600); border-color: var(--brand-300); }
.btn--ghost:hover { --_bg: var(--brand-50); }
.btn--light { --_bg: #fff; --_fg: var(--brand-700); }
.btn--outline-light { --_bg: transparent; --_fg: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { --_bg: rgba(255,255,255,.12); }
.btn--wa { --_bg: var(--wa-green); --_fg: #05340f; box-shadow: 0 8px 20px rgba(37,211,102,.32); }
.btn--wa:hover { --_bg: var(--wa-green-d); --_fg: #fff; }
.btn--lg { padding: 1.1rem 1.7rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row { justify-content: center; }

/* ============================================================
   5. HEADER / NAV
   ============================================================ */
.topbar {
  background: var(--brand-950); color: #c7d6ff; font-size: .84rem;
}
.topbar .container { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; justify-content: space-between; padding-block: .5rem; }
.topbar a { color: #dbe6ff; }
.topbar__meta { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; align-items: center; }
.topbar__meta span, .topbar__meta a { display: inline-flex; align-items: center; gap: .4rem; }

.site-header {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink-900); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand__logo {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-weight: 900; font-size: 1.05rem; box-shadow: var(--shadow-sm);
}
.brand__name { font-size: 1.15rem; line-height: 1; }
.brand__name small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-500); margin-top: 3px; }
/* Logo: ícono + wordmark en texto (nítido, no estirado) */
.brand__mark { height: 40px; width: 40px; display: block; }
.brand__word { font-size: 1.18rem; font-weight: 900; letter-spacing: -.02em; color: var(--brand-800); line-height: 1; white-space: nowrap; }
@media (max-width: 420px) { .brand__word { font-size: 1.05rem; } .brand__mark { height: 34px; width: 34px; } }
/* Logo oficial en imagen */
.brand__img { height: 42px; width: auto; display: block; }
.brand__icon-img { height: 40px; width: auto; display: block; }
@media (max-width: 420px) { .brand__img { height: 34px; } }

.nav { display: flex; align-items: center; gap: 0; margin-left: auto; }
.nav a { color: var(--ink-700); font-weight: 600; font-size: .86rem; padding: .5rem .48rem; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--brand-600); background: var(--brand-50); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: .55rem; flex: none; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: .35rem .7rem; font-size: .82rem; font-weight: 700; color: var(--ink-500); }
.lang-switch a[aria-current="true"] { background: var(--brand-500); color: #fff; }
.lang-switch a:hover { text-decoration: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink-900); position: relative; transition: transform .2s, opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem;
    transform: translateY(-120%); transition: transform .25s ease; box-shadow: var(--shadow-lg); gap: .1rem;
    max-height: calc(100vh - 66px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: .85rem .6rem; font-size: 1.05rem; border-bottom: 1px solid var(--line-2); }
  .desktop-only { display: none !important; }
}
@media (min-width: 1181px) { .mobile-only { display: none !important; } }

/* ============================================================
   6. HERO
   ============================================================ */
.hero { position: relative; background: var(--grad-soft); padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center; }
.hero h1 { margin-bottom: 1rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: .5rem .6rem; margin: 1.4rem 0; }
.trust-pill {
  display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; font-weight: 600;
  color: var(--ink-700); background: var(--card); border: 1px solid var(--line); padding: .45rem .8rem; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.trust-pill svg { color: var(--success); }
.hero__note { font-size: .9rem; color: var(--ink-500); margin-top: 1rem; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}

/* ------- Demo de flujo animado (Anuncio → venta) ------- */
.flow {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.2rem; position: relative;
}
.flow__title { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--ink-900); margin-bottom: .9rem; font-size: .95rem; }
.flow__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wa-green); box-shadow: 0 0 0 4px rgba(37,211,102,.18); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(37,211,102,.18);} 50% { box-shadow: 0 0 0 8px rgba(37,211,102,0);} }
.flow__steps { display: grid; gap: .55rem; }
.flow-step {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: .75rem;
  padding: .7rem .8rem; border-radius: 12px; background: var(--bg-soft);
  border: 1px solid var(--line-2); opacity: .45; transform: translateY(4px);
  transition: opacity .4s ease, transform .4s ease, background .4s ease, border-color .4s ease;
}
.flow-step.is-active { opacity: 1; transform: translateY(0); background: var(--brand-50); border-color: var(--brand-300); }
.flow-step__icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: 1.1rem; }
.flow-step__body strong { display: block; font-size: .92rem; color: var(--ink-900); }
.flow-step__body span { font-size: .8rem; color: var(--ink-500); }
.flow-step__tag { font-size: .68rem; font-weight: 700; color: var(--brand-600); background: #fff; border: 1px solid var(--brand-100); padding: .2rem .45rem; border-radius: 999px; }
.flow__caption { margin-top: .9rem; font-size: .82rem; color: var(--ink-500); text-align: center; }

/* ============================================================
   7. TARJETAS / GRIDS REUTILIZABLES
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: var(--gap); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-200, var(--brand-300)); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600); font-size: 1.4rem; margin-bottom: 1rem;
}
.card--ai .card__icon { background: rgba(124,92,252,.12); color: var(--violet-500); }
.card--wa .card__icon { background: rgba(37,211,102,.14); color: var(--wa-green-d); }
.card h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.card p { color: var(--ink-600); font-size: .96rem; margin-bottom: .8rem; }
.card__link { font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: .35rem; }
.card ul.ticks { margin-top: .6rem; display: grid; gap: .35rem; }
.ticks li { position: relative; padding-left: 1.5rem; font-size: .9rem; color: var(--ink-600); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--success); font-weight: 800; }

/* Lista de problemas */
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.pain {
  display: flex; gap: .8rem; align-items: flex-start; background: var(--card);
  border: 1px solid var(--line); border-left: 4px solid var(--danger); border-radius: 12px; padding: 1rem 1.1rem;
}
.pain svg { color: var(--danger); flex: none; margin-top: 2px; }
.pain span { font-size: .95rem; color: var(--ink-700); }

/* ============================================================
   8. PASOS "CÓMO FUNCIONA"
   ============================================================ */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.3rem 1.3rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-weight: 900; font-size: 1.1rem; color: #fff; background: var(--grad-brand);
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: .9rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.step p { font-size: .9rem; color: var(--ink-600); margin: 0; }

/* Split IA (dos columnas) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.panel { border-radius: var(--radius-lg); padding: 1.8rem; border: 1px solid var(--line); background: var(--card); }
.panel--ai { background: linear-gradient(180deg, rgba(124,92,252,.08), transparent); border-color: rgba(124,92,252,.3); }
.panel--voice { background: linear-gradient(180deg, rgba(6,182,212,.08), transparent); border-color: rgba(6,182,212,.3); }
.panel h3 { display: flex; align-items: center; gap: .6rem; }
.panel .chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.chip { font-size: .82rem; font-weight: 600; color: var(--ink-700); background: var(--bg-soft); border: 1px solid var(--line); padding: .38rem .7rem; border-radius: 999px; }

/* ============================================================
   9. INDUSTRIAS
   ============================================================ */
.industries { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8rem; }
.industry {
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem .8rem; color: var(--ink-700); font-weight: 600; font-size: .9rem;
  transition: transform .18s ease, border-color .2s, box-shadow .2s;
}
.industry:hover { transform: translateY(-3px); border-color: var(--brand-300); box-shadow: var(--shadow-sm); text-decoration: none; color: var(--brand-600); }
.industry .emoji { font-size: 1.6rem; }

/* ============================================================
   10. PLANES
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--gap); align-items: stretch; }
.plan {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 1.7rem; box-shadow: var(--shadow-sm); position: relative;
}
.plan--featured { border-color: var(--brand-500); box-shadow: var(--shadow-md); }
.plan--featured::before {
  content: attr(data-badge); position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .05em;
  padding: .35rem .9rem; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.plan__for { font-size: .86rem; color: var(--ink-500); margin-bottom: 1rem; min-height: 2.6em; }
.plan__price { font-size: 2rem; font-weight: 900; color: var(--brand-800); margin-bottom: 1rem; letter-spacing: -.02em; }
.plan__per { font-size: .95rem; font-weight: 600; color: var(--ink-500); }
.plan__price small { display: block; font-size: .78rem; font-weight: 500; color: var(--ink-500); margin-top: 2px; }
.plans-fineprint { max-width: 760px; margin: 1.5rem auto 0; font-size: .78rem; line-height: 1.55; color: var(--ink-500); }

/* Banda de plan con agente humano */
.plan-human {
  margin-top: var(--gap); display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1rem,.6rem+1.5vw,2rem);
  align-items: center; background: linear-gradient(120deg, var(--brand-950), var(--brand-800));
  color: #dce9fb; border-radius: var(--radius-lg); padding: clamp(1.4rem,1rem+2vw,2.2rem); box-shadow: var(--shadow-lg);
}
.plan-human__icon { font-size: 3rem; line-height: 1; }
.plan-human__body h3 { color: #fff; margin: .4rem 0 .5rem; }
.plan-human__body p { color: #c3d3f5; margin: 0 0 .8rem; max-width: 60ch; }
.plan-human__ticks { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem 1.2rem; }
.plan-human__ticks li { color: #dce9fb; }
.plan-human__ticks li::before { color: var(--cyan-400); }
.plan-human__cta { display: grid; gap: .6rem; justify-items: stretch; min-width: 220px; }
@media (max-width: 860px) {
  .plan-human { grid-template-columns: 1fr; text-align: center; }
  .plan-human__ticks { grid-template-columns: 1fr; justify-items: center; text-align: left; max-width: 320px; margin-inline: auto; }
  .plan-human__body p { margin-inline: auto; }
}
.plan ul { display: grid; gap: .5rem; margin-bottom: 1.4rem; }
.plan ul li { position: relative; padding-left: 1.5rem; font-size: .9rem; color: var(--ink-600); }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.plan .btn { margin-top: auto; }

/* ============================================================
   11. CASOS DE USO
   ============================================================ */
.use-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--gap); }
.use-case { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.use-case__head { padding: 1.1rem 1.3rem; background: var(--grad-brand); color: #fff; display: flex; align-items: center; gap: .6rem; font-weight: 800; }
.use-case__body { padding: 1.2rem 1.3rem; }
.use-case__body p { font-size: .92rem; color: var(--ink-600); }
.use-case__body .label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-600); }

/* ============================================================
   12. FAQ (acordeón accesible)
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .7rem; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--card); overflow: hidden; }
.faq-item summary, .faq-q {
  cursor: pointer; list-style: none; padding: 1.1rem 1.2rem; font-weight: 700; color: var(--ink-900);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; text-align: left;
  background: none; border: 0; font-size: 1rem; font-family: inherit;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-icon { flex: none; transition: transform .25s ease; color: var(--brand-500); font-size: 1.4rem; line-height: 1; }
.faq-item[open] .faq-icon, .faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 1.2rem 1.2rem; color: var(--ink-600); font-size: .96rem; }

/* ============================================================
   13. CTA FINAL
   ============================================================ */
.cta-final { background: var(--brand-950); color: #d7e2ff; position: relative; overflow: hidden; }
.cta-final::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: .5; }
.cta-final .container { position: relative; }
.cta-final h2 { color: #fff; }
.cta-final .lead { color: #b9c8ee; }

/* ============================================================
   14. FORMULARIO
   ============================================================ */
.form-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 1rem + 3vw, 3rem); align-items: start; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 2vw, 2.2rem); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink-700); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: .75rem .85rem; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--bg); color: var(--ink-900); width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand-500); box-shadow: var(--ring); outline: none; }
.field textarea { min-height: 96px; resize: vertical; }
.field .error-msg { font-size: .78rem; color: var(--danger); display: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field.is-invalid .error-msg { display: block; }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .84rem; color: var(--ink-600); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.form-note { font-size: .8rem; color: var(--ink-500); margin-top: .8rem; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: 10px; font-size: .92rem; font-weight: 600; display: none; }
.form-status.is-ok { display: block; background: rgba(22,163,74,.1); color: var(--success); border: 1px solid rgba(22,163,74,.3); }
.form-status.is-err { display: block; background: rgba(220,38,38,.08); color: var(--danger); border: 1px solid rgba(220,38,38,.3); }
.form-benefits { display: grid; gap: 1rem; }
.form-benefit { display: flex; gap: .8rem; align-items: flex-start; }
.form-benefit .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; flex: none; }

/* ============================================================
   15. FOOTER
   ============================================================ */
.site-footer { background: var(--brand-950); color: #a9bce6; padding-block: clamp(2.5rem, 2rem + 2vw, 4rem) 1.5rem; }
.site-footer a { color: #c8d6f5; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; letter-spacing: .02em; }
.footer-col ul { display: grid; gap: .55rem; }
.footer-col li a { font-size: .9rem; }
.footer-brand p { font-size: .9rem; color: #97abda; max-width: 34ch; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.footer-social a:hover { background: var(--brand-500); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center; font-size: .82rem; color: #8ea3d3; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.footer-disclaimer { font-size: .76rem; color: #7488b5; margin-top: 1rem; line-height: 1.6; }

/* ============================================================
   16. BOTONES FLOTANTES
   ============================================================ */
.floating { position: fixed; right: clamp(.8rem, 2vw, 1.4rem); bottom: clamp(.8rem, 2vw, 1.4rem); z-index: 300; display: flex; flex-direction: column; gap: .6rem; }
.fab {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow-lg); transition: transform .18s ease; position: relative;
}
.fab:hover { transform: scale(1.08); text-decoration: none; }
.fab--wa { background: var(--wa-green); }
.fab--demo { background: var(--grad-brand); }
.fab svg { width: 28px; height: 28px; }
.fab__label {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: var(--ink-900); color: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap;
  padding: .4rem .7rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.fab:hover .fab__label { opacity: 1; }
@media (max-width: 600px) { .fab { width: 52px; height: 52px; } .fab__label { display: none; } }

/* ============================================================
   17. UTILIDADES / REVELADO AL SCROLL
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.badge-soft { display:inline-block; font-size:.75rem; font-weight:700; color:var(--brand-600); background:var(--brand-50); padding:.25rem .6rem; border-radius:999px; }

/* Breadcrumbs */
.breadcrumbs { font-size: .82rem; color: var(--ink-500); padding-block: .8rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumbs li { display: flex; align-items: center; gap: .4rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; color: var(--ink-400); }

/* Mascota IA */
.mascot-wrap { display: grid; place-items: center; }
.mascot-wrap img { max-width: min(420px, 90%); height: auto; filter: drop-shadow(0 24px 40px rgba(5,68,154,.18)); }
.ai-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--gap); align-items: center; margin-bottom: var(--gap); }
@media (max-width: 800px) { .ai-intro { grid-template-columns: 1fr; } .ai-intro .mascot-wrap { order: -1; } }

/* Mockup de chat de WhatsApp (marca) */
.wa-phone {
  max-width: 320px; margin-inline: auto; background: #0b141a; border-radius: 30px; padding: 10px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(0,0,0,.2);
}
.wa-screen { background: #e6ddd4; border-radius: 22px; overflow: hidden; }
.wa-top { background: #075e54; color: #fff; display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; }
.wa-top .wa-ava { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; }
.wa-top .wa-ava img { width: 26px; height: 26px; }
.wa-top strong { font-size: .92rem; color: #fff; display: block; line-height: 1.1; }
.wa-top span { font-size: .72rem; color: #bfe9dc; }
.wa-body { padding: .9rem .8rem; display: grid; gap: .5rem; min-height: 300px; background-image: linear-gradient(rgba(230,221,212,.6), rgba(230,221,212,.6)); }
.wa-msg { max-width: 82%; padding: .5rem .7rem; border-radius: 10px; font-size: .82rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.wa-in { background: #fff; color: #111; border-top-left-radius: 2px; justify-self: start; }
.wa-out { background: #dcf8c6; color: #111; border-top-right-radius: 2px; justify-self: end; }
.wa-msg small { display: block; text-align: right; font-size: .62rem; color: #667781; margin-top: 2px; }
.wa-typing { justify-self: start; font-size: .75rem; color: #667781; font-style: italic; }

/* Ondas divisorias de marca */
.wave-top { display: block; width: 100%; height: 40px; margin-bottom: -1px; }

/* ============================================================
   PÁGINAS DE INDUSTRIA (casos de uso)
   ============================================================ */
.ind-hero { background: var(--grad-soft); padding-block: clamp(2rem,1.5rem+3vw,3.5rem); }
.ind-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem,1rem+3vw,3rem); align-items: center; }
@media (max-width: 900px){ .ind-hero__grid { grid-template-columns: 1fr; } .ind-hero__media { order:-1; } }
.ind-hero .eyebrow .emoji { font-size: 1.1rem; }
.ind-badges { display:flex; flex-wrap:wrap; gap:.5rem; margin:1.2rem 0; }

/* Opciones activables (features cross-industria) */
.opts { display:grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap:1rem; }
.opt {
  background: var(--card); border:1px solid var(--line); border-radius:14px; padding:1.1rem 1.2rem;
  transition: transform .18s ease, box-shadow .2s, border-color .2s; position:relative; overflow:hidden;
}
.opt:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.opt__ico { width:46px; height:46px; border-radius:12px; display:grid; place-items:center; font-size:1.3rem; background:var(--brand-50); color:var(--brand-600); margin-bottom:.7rem; }
.opt h4 { font-size:1rem; margin:0 0 .3rem; color:var(--ink-900); }
.opt p { font-size:.88rem; color:var(--ink-600); margin:0; }
.opt--pay .opt__ico{ background:rgba(22,163,74,.12); color:var(--success); }
.opt--ai .opt__ico{ background:rgba(5,83,184,.12); color:var(--brand-700); }

/* Tira de canales */
.channels { display:flex; flex-wrap:wrap; gap:.5rem; justify-content:center; margin-top:1rem; }
.channel { display:inline-flex; align-items:center; gap:.4rem; font-size:.85rem; font-weight:600; color:var(--ink-700); background:var(--card); border:1px solid var(--line); padding:.4rem .8rem; border-radius:999px; }

/* Grid de industrias tipo "casos de uso" (home) */
.casos-grid { display:grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap:1rem; }
.caso-card {
  display:flex; flex-direction:column; gap:.5rem; background:var(--card); border:1px solid var(--line);
  border-radius:16px; padding:1.2rem; color:var(--ink-700); transition: transform .18s ease, box-shadow .2s, border-color .2s;
  min-height:150px;
}
.caso-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:var(--brand-300); text-decoration:none; }
.caso-card .emoji { font-size:2rem; }
.caso-card strong { color:var(--ink-900); font-size:1.02rem; }
.caso-card span.desc { font-size:.85rem; color:var(--ink-500); }
.caso-card .go { margin-top:auto; font-weight:700; font-size:.85rem; color:var(--brand-600); display:inline-flex; align-items:center; gap:.3rem; }

/* Placeholder de medios (mockups pendientes) */
.media-ph {
  display: grid; place-items: center; text-align: center; gap: .4rem;
  background: repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 12px, var(--bg-soft-2) 12px, var(--bg-soft-2) 24px);
  border: 2px dashed var(--brand-300); border-radius: var(--radius); color: var(--ink-500);
  min-height: 200px; padding: 1.5rem; font-size: .88rem; font-weight: 600;
}
.media-ph .emoji { font-size: 2rem; }
