/* =====================================================================
   Nexus IA Agency — Sitio web PRO (multi-página)
   Design system compartido por las 8 páginas.
   Dark premium + glassmorphism. Paleta: obsidiana + amarillo/ámbar.
   Tipografía: Syne (display) + Space Grotesk (cuerpo).
   ===================================================================== */

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

:root {
  --bg: #0A0A0A;
  --bg-2: #111114;
  --surface: #16161a;
  --surface-2: #1c1c21;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(250,204,21,0.4);
  --yellow: #FACC15;        /* acento primario */
  --yellow-light: #FDE68A;
  --amber: #F59E0B;         /* acento secundario / gradiente */
  --white: #FFFFFF;
  --text: #ECECEC;
  --text-secondary: #9A9A8F;
  --text-muted: #6f6f68;
  --green-wa: #25D366;
  --danger: #F87171;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --font-display: 'Syne', system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22,.9,.35,1);

  /* WhatsApp look para el demo */
  --wa-header: #075E54;
  --wa-header-2: #128C7E;
  --wa-bg: #ECE5DD;
  --wa-in: #FFFFFF;
  --wa-out: #DCF8C6;
  --wa-tick: #34B7F1;
  --wa-text: #111B21;
  --wa-meta: #667781;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-narrow { width: 100%; max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* Tipografía display en titulares */
.brand-name, h1, h2, .cta-final h2, .demo-copy h2, .price-card .plan-name, .logo-lockup {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
h1, h2, h3, h4 { color: #fff; font-weight: 800; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(135deg, var(--yellow), var(--amber));
  color: #0a0a0a; box-shadow: 0 10px 30px rgba(250,204,21,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(250,204,21,0.38); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--white); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-wa { background: var(--green-wa); color: #04230f; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(37,211,102,0.35); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--yellow); outline-offset: 3px; border-radius: 8px;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 36px; height: 36px; border-radius: 50%; display: block; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name span { color: var(--amber); }

.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links > a, .nav-links > .nav-item > button.nav-link-btn {
  font-size: 14.5px; font-weight: 600; color: var(--text-secondary);
  transition: color .15s; padding: 10px 12px; border-radius: 10px;
  background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
}
.nav-links > a:hover, .nav-links > .nav-item > button.nav-link-btn:hover { color: var(--white); }
.nav-links a.active { color: var(--yellow); }

/* Dropdown Servicios (accesible) */
.nav-item { position: relative; }
.nav-item .caret { font-size: 10px; transition: transform .2s var(--ease); }
.nav-item[data-open="true"] .caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 8px; min-width: 240px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
  z-index: 40;
}
.nav-item[data-open="true"] .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--text);
}
.nav-dropdown a:hover { background: rgba(250,204,21,0.08); color: var(--yellow-light); }
.nav-dropdown a .emoji { font-size: 16px; }
.nav-dropdown a.active { color: var(--yellow); background: rgba(250,204,21,0.08); }

.nav-cta { padding: 10px 18px; font-size: 13.5px; background: var(--yellow); color: #0a0a0a; font-weight: 800; box-shadow: 0 6px 18px rgba(250,204,21,0.3); margin-left: 6px; flex-shrink: 0; }
.nav-cta:hover { background: #eab308; transform: translateY(-2px); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 6px; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 16px 0 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--yellow); }
.breadcrumbs li::after { content: '/'; margin-left: 6px; color: var(--text-muted); }
.breadcrumbs li:last-child::after { content: ''; }
.breadcrumbs li[aria-current="page"] { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 380px at 18% 0%, rgba(250,204,21,0.16), transparent 60%),
    radial-gradient(620px 360px at 92% 20%, rgba(245,158,11,0.12), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-solo { max-width: 760px; margin: 0 auto; text-align: center; }
.hero-solo .hero-cta { justify-content: center; }
.hero-solo .hero-trust { justify-content: center; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(250,204,21,0.1); border: 1px solid var(--border-strong);
  color: var(--yellow-light); font-size: 13px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(245,158,11,0.6); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(245,158,11,0.5); } 70% { box-shadow: 0 0 0 10px rgba(245,158,11,0); } 100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); } }

.hero h1 { font-size: clamp(32px, 5.2vw, 54px); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; }
.hero h1 .grad, .grad-text {
  background: linear-gradient(120deg, var(--yellow-light), var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-secondary); margin: 20px 0 28px; max-width: 540px; }
.hero-solo p.lead { margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: var(--text-secondary); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust b { color: var(--amber); }

/* Visual del hero: mini chat flotante (glassmorphism) */
.hero-visual { position: relative; display: flex; justify-content: center; }
.glasscard {
  background: linear-gradient(180deg, rgba(28,28,33,0.85), rgba(17,17,20,0.9));
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong); border-radius: 22px;
  padding: 18px; width: 100%; max-width: 360px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  animation: floaty 5s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.mini-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.mini-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--yellow), var(--amber)); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.mini-name { font-weight: 700; font-size: 14px; font-family: var(--font); }
.mini-name small { display: block; color: var(--amber); font-weight: 600; font-size: 11px; }
.mini-body { padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.mini-msg { font-size: 13px; padding: 8px 11px; border-radius: 12px; max-width: 85%; line-height: 1.4; }
.mini-msg.in { background: rgba(255,255,255,0.06); align-self: flex-start; border-top-left-radius: 3px; }
.mini-msg.out { background: linear-gradient(135deg, rgba(250,204,21,0.3), rgba(245,158,11,0.22)); align-self: flex-end; border-top-right-radius: 3px; color: #fff; }

/* ---------- Secciones genéricas ---------- */
.section { padding: 76px 0; }
.section-tight { padding: 44px 0; }
.section-tag { color: var(--amber); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
.section-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; text-align: center; margin: 8px auto 12px; max-width: 760px; }
.section-sub { color: var(--text-secondary); text-align: center; max-width: 620px; margin: 0 auto 44px; font-size: 16px; }
.tal { text-align: left !important; }

/* Rubros (pills) */
.rubros { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.rubro-pill { display: inline-flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border); padding: 11px 18px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--text); font-family: var(--font); cursor: pointer; transition: border-color .15s, transform .12s var(--ease), background .15s; }
.rubro-pill:hover { border-color: var(--yellow); transform: translateY(-2px); background: var(--surface-2); }
.rubro-pill:active { transform: scale(0.97); }
.rubro-pill .emoji { font-size: 19px; }

/* ---------- Cards de servicios (home) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-services { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: 0 20px 45px rgba(250,204,21,0.08); }
.card .ico { width: 50px; height: 50px; border-radius: 14px; background: rgba(250,204,21,0.1); display: flex; align-items: center; justify-content: center; font-size: 25px; margin-bottom: 16px; }
.card h3 { font-size: 18.5px; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--text-secondary); flex: 1; }
.card .price { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--amber); }
.card-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--yellow-light); transition: gap .15s var(--ease); }
.card-link:hover { gap: 10px; }
.service-card { cursor: pointer; }
.service-card:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }

/* ---------- DEMO interactivo ---------- */
.demo-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px; align-items: center; }
.demo-copy h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; }
.demo-copy p { color: var(--text-secondary); margin: 14px 0 22px; }
.demo-steps { display: flex; flex-direction: column; gap: 12px; }
.demo-steps li { display: flex; gap: 12px; font-size: 14.5px; }
.demo-steps .n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: rgba(245,158,11,0.14); color: var(--amber); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.demo-rubros { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.demo-rubro-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 10px 15px; border-radius: 12px; font-family: var(--font); font-weight: 600; font-size: 13.5px; cursor: pointer;
  transition: border-color .15s, transform .1s, background .15s;
}
.demo-rubro-btn:hover { border-color: var(--yellow); }
.demo-rubro-btn.active { border-color: transparent; background: linear-gradient(135deg, var(--yellow), var(--amber)); color: #0a0a0a; }
.demo-rubro-btn .emoji { font-size: 17px; }
.demo-section { background: linear-gradient(180deg, transparent, rgba(250,204,21,0.05)); }

/* Teléfono / chat */
.phone {
  width: 100%; max-width: 380px; height: 640px; margin: 0 auto;
  background: var(--wa-bg); border-radius: 30px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 70px rgba(0,0,0,0.55), 0 0 0 10px #05050a, 0 0 0 11px rgba(255,255,255,0.06);
}
.wa-header { background: var(--wa-header); color: #fff; padding: 14px 14px; display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--yellow), var(--amber)); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.wa-name { font-size: 15px; font-weight: 600; line-height: 1.2; }
.wa-status { font-size: 11.5px; opacity: 0.85; }
.wa-badge { margin-left: auto; font-size: 9px; font-weight: 800; background: rgba(255,255,255,0.16); padding: 3px 8px; border-radius: 10px; letter-spacing: 0.04em; }
.wa-chat {
  flex: 1; overflow-y: auto; padding: 14px 12px 8px;
  background-image: linear-gradient(rgba(229,221,213,0.4), rgba(229,221,213,0.4)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='%23d9cfc4' fill-opacity='0.4'%3E%3Ccircle cx='10' cy='10' r='1.5'/%3E%3Ccircle cx='40' cy='30' r='1.5'/%3E%3Ccircle cx='20' cy='50' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  display: flex; flex-direction: column; gap: 6px;
}
.day-sep { align-self: center; background: #d9e7dd; color: #4a5a52; font-size: 11px; padding: 3px 10px; border-radius: 8px; margin: 2px 0 8px; }
.bubble {
  max-width: 82%; padding: 7px 10px 8px; border-radius: 9px; font-size: 14px; line-height: 1.4;
  color: var(--wa-text); box-shadow: 0 1px 1px rgba(0,0,0,0.08); white-space: pre-wrap; word-wrap: break-word;
  animation: pop .18s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.bubble.in { background: var(--wa-in); align-self: flex-start; border-top-left-radius: 2px; }
.bubble.out { background: var(--wa-out); align-self: flex-end; border-top-right-radius: 2px; }
.bubble .time { font-size: 10px; color: var(--wa-meta); float: right; margin: 6px 0 -2px 8px; }
.bubble.out .time::after { content: ' ✓✓'; color: var(--wa-tick); }
.bubble b { font-weight: 700; }
.typing { display: inline-flex; gap: 3px; padding: 4px 2px; }
.typing span { width: 7px; height: 7px; background: #9aa6a0; border-radius: 50%; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }
.wa-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 9px 12px; background: var(--wa-bg); flex-shrink: 0; border-top: 1px solid rgba(0,0,0,0.05); }
.chip { background: #fff; color: var(--wa-header-2); border: 1px solid #cfe0d6; border-radius: 16px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer; font-family: var(--font); transition: background .15s, transform .1s; }
.chip:hover { background: #eef6f1; }
.chip:active { transform: scale(0.97); }
.chip.cta { background: var(--green-wa); color: #04230f; border-color: var(--green-wa); }

/* Mini glasscard chat estático (usado en páginas de servicio) */
.mini-phone {
  background: linear-gradient(180deg, rgba(28,28,33,0.85), rgba(17,17,20,0.9));
  border: 1px solid var(--border-strong); border-radius: 22px; padding: 20px;
  max-width: 400px; margin: 0 auto; box-shadow: 0 30px 70px rgba(0,0,0,0.5);
}

/* Pasos / cómo funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { text-align: center; padding: 20px; }
.step .circle { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, rgba(250,204,21,0.18), rgba(245,158,11,0.18)); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 14px; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--text-secondary); font-size: 14px; }

/* Por qué nosotros */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.why-item { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.why-item .ck { color: var(--amber); font-size: 20px; flex-shrink: 0; }
.why-item h4 { font-size: 15.5px; margin-bottom: 3px; }
.why-item p { color: var(--text-secondary); font-size: 14px; }

/* ---------- Pricing (3 columnas, destacada al centro) ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 26px;
  display: flex; flex-direction: column; position: relative;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.price-card.featured {
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(250,204,21,0.08), var(--surface));
  box-shadow: 0 25px 60px rgba(250,204,21,0.12);
  transform: scale(1.03);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--yellow), var(--amber)); color: #0a0a0a;
  font-size: 12px; font-weight: 800; padding: 6px 16px; border-radius: 999px;
  white-space: nowrap; box-shadow: 0 8px 20px rgba(250,204,21,0.35);
}
.plan-name { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.plan-desc { color: var(--text-secondary); font-size: 13.5px; margin-bottom: 18px; min-height: 34px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.plan-price .amount { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: #fff; }
.plan-price .period { font-size: 13px; color: var(--text-secondary); }
.plan-setup { font-size: 12.5px; color: var(--text-muted); margin-bottom: 20px; }
.plan-features { display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; flex: 1; }
.plan-features li { display: flex; gap: 9px; font-size: 14px; color: var(--text); align-items: flex-start; }
.plan-features li::before { content: '✓'; color: var(--amber); font-weight: 800; flex-shrink: 0; }
.plan-features li.no::before { content: '✕'; color: var(--text-muted); }
.plan-features li.no { color: var(--text-muted); }
.price-note { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 22px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ---------- Para quién (rubros con emoji) ---------- */
.audience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.audience-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px 16px; text-align: center; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.audience-item:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.audience-item .emoji { font-size: 30px; display: block; margin-bottom: 8px; }
.audience-item span.label { font-size: 13.5px; font-weight: 700; }

/* ---------- Ejemplos / features grid (automatizaciones) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; transition: transform .2s var(--ease), border-color .2s var(--ease); }
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature-card .ico { font-size: 26px; margin-bottom: 12px; display: block; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; color: #fff; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--amber); font-size: 22px; font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: '−'; }
.faq p { color: var(--text-secondary); font-size: 14.5px; padding: 0 0 16px; }

/* ---------- CTA final ---------- */
.cta-final { position: relative; overflow: hidden; border-radius: 26px; padding: 56px 30px; text-align: center;
  background: linear-gradient(135deg, rgba(250,204,21,0.14), rgba(245,158,11,0.1));
  border: 1px solid var(--border-strong); }
.cta-final h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.cta-final p { color: var(--text); opacity: 0.85; margin: 14px auto 26px; max-width: 520px; }
.cta-final .hero-cta { justify-content: center; }
.cta-final-secondary { font-size: 14px; color: var(--text-secondary); margin-top: 18px; }
.cta-final-secondary a { color: var(--yellow-light); font-weight: 700; }
.cta-final-secondary a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0 30px; color: var(--text-secondary); font-size: 14px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; margin-bottom: 30px; }
.footer a { color: var(--text-secondary); transition: color .15s; }
.footer a:hover { color: var(--white); }
.footer-cols { display: flex; gap: 50px; flex-wrap: wrap; }
.footer-cols h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; font-family: var(--font); font-weight: 800; }
.footer-cols ul { display: flex; flex-direction: column; gap: 9px; }
.footer-cols ul li { font-size: 13.5px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; font-size: 13px; }
.footer-about { margin-top: 12px; max-width: 260px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: var(--green-wa); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  box-shadow: 0 10px 30px rgba(37,211,102,0.45); animation: floaty 4s ease-in-out infinite; }
.wa-float:hover { transform: scale(1.08); }

/* ---------- Cotizador: wizard/slider ---------- */
.wizard { max-width: 800px; margin: 0 auto; }
.wizard-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 40px; }
.wizard-progress .bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.wizard-progress .bar .fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--yellow), var(--amber)); transition: width .35s var(--ease); border-radius: 999px; }
.wizard-progress .step-label { font-size: 12.5px; color: var(--text-secondary); font-weight: 700; white-space: nowrap; }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadein .4s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wizard-step h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.wizard-step .step-sub { color: var(--text-secondary); margin-bottom: 30px; font-size: 15px; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 30px; }
.choice-card {
  background: var(--surface); border: 2px solid var(--border); border-radius: 16px; padding: 20px;
  cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease), transform .15s var(--ease);
  display: flex; align-items: flex-start; gap: 12px; text-align: left; width: 100%; color: var(--text);
}
.choice-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.choice-card[aria-pressed="true"] { border-color: var(--yellow); background: rgba(250,204,21,0.08); }
.choice-card .emoji { font-size: 26px; flex-shrink: 0; }
.choice-card .check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; color: transparent; transition: all .15s; }
.choice-card[aria-pressed="true"] .check { border-color: var(--yellow); background: var(--yellow); color: #0a0a0a; }
.choice-card strong { display: block; font-size: 15px; margin-bottom: 3px; }
.choice-card span.desc { font-size: 12.5px; color: var(--text-secondary); }

.budget-display { text-align: center; margin: 10px 0 30px; }
.budget-display .amount { font-family: var(--font-display); font-size: clamp(40px, 8vw, 64px); font-weight: 800; background: linear-gradient(120deg, var(--yellow-light), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.range-slider { width: 100%; -webkit-appearance: none; appearance: none; height: 8px; border-radius: 999px; background: var(--surface-2); outline: none; margin: 20px 0; }
.range-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--yellow), var(--amber)); cursor: pointer; box-shadow: 0 6px 18px rgba(250,204,21,0.4); border: 3px solid #0a0a0a; }
.range-slider::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--yellow), var(--amber)); cursor: pointer; box-shadow: 0 6px 18px rgba(250,204,21,0.4); border: 3px solid #0a0a0a; }
.range-labels { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-muted); }

.radio-group { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.radio-card {
  display: flex; align-items: center; gap: 12px; background: var(--surface); border: 2px solid var(--border);
  border-radius: 14px; padding: 16px 18px; cursor: pointer; transition: border-color .18s, background .18s; width: 100%; text-align: left; color: var(--text);
}
.radio-card:hover { border-color: var(--border-strong); }
.radio-card[aria-pressed="true"] { border-color: var(--yellow); background: rgba(250,204,21,0.08); }
.radio-card .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.radio-card[aria-pressed="true"] .dot { border-color: var(--yellow); }
.radio-card[aria-pressed="true"] .dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); }
.radio-card strong { font-size: 14.5px; }

.wizard-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 36px; }

.result-summary { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 30px; margin-bottom: 24px; }
.result-summary h3 { font-size: 20px; margin-bottom: 4px; }
.result-line { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.result-line:last-of-type { border-bottom: none; }
.result-line .svc { font-weight: 700; }
.result-line .plan { color: var(--text-secondary); font-size: 13px; display: block; }
.result-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; margin-top: 6px; border-top: 2px solid var(--border-strong); }
.result-total .lbl { font-size: 14px; color: var(--text-secondary); }
.result-total .val { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--yellow-light); }
.result-discount { font-size: 13px; color: var(--amber); font-weight: 700; margin-top: 8px; text-align: right; }
.result-empty { text-align: center; padding: 40px 20px; color: var(--text-secondary); }

/* ---------- Legal / tablas ---------- */
.legal-nav { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.legal-nav a { background: var(--surface); border: 1px solid var(--border); padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700; }
.legal-nav a:hover, .legal-nav a.active { border-color: var(--yellow); color: var(--yellow-light); }
.legal-section { padding: 40px 0; border-top: 1px solid var(--border); }
.legal-section:first-of-type { border-top: none; }
.legal-section h2 { font-size: 24px; margin-bottom: 16px; scroll-margin-top: 90px; }
.legal-section h3 { font-size: 16px; margin: 22px 0 8px; color: var(--yellow-light); }
.legal-section p, .legal-section li { color: var(--text-secondary); font-size: 15px; margin-bottom: 12px; }
.legal-section li { margin-left: 20px; list-style: disc; }
.legal-section strong { color: var(--text); }

table.data-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
table.data-table th, table.data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
table.data-table th { color: var(--amber); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
table.data-table td { color: var(--text-secondary); }
.table-wrap { overflow-x: auto; }

/* ---------- Página de error 404 ---------- */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 0; }
.error-code { font-family: var(--font-display); font-size: clamp(70px, 14vw, 140px); font-weight: 800; line-height: 1; background: linear-gradient(120deg, var(--yellow-light), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page .hero-cta { justify-content: center; }
.error-page .lead { margin-left: auto; margin-right: auto; }

/* ---------- Utilidades (evitan estilos inline → CSP estricta) ---------- */
.pt-30 { padding-top: 30px; }
.mb-18 { margin-bottom: 18px; }
.tac { text-align: center; }
.mt-10 { margin-top: 10px; }
.mt-40 { margin-top: 40px; }
.gap-flex { display: flex; flex-wrap: wrap; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.badge-soft { display: inline-block; background: rgba(250,204,21,0.1); color: var(--yellow-light); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.center-col { max-width: 640px; margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Stats bar animada (home) ---------- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 0; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-size: clamp(28px, 4vw, 42px); font-weight: 800; background: linear-gradient(120deg, var(--yellow-light), var(--amber)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { font-size: 13px; color: var(--text-secondary); margin-top: 6px; }

/* ---------- Animación scroll-reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--bg-2); padding: 18px 20px 24px; gap: 4px; border-bottom: 1px solid var(--border);
    transform: translateY(-140%); transition: transform .28s var(--ease); max-height: calc(100vh - 68px); overflow-y: auto; }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .nav-item { width: 100%; }
  .nav-links > a, .nav-links > .nav-item > button.nav-link-btn { width: 100%; justify-content: space-between; padding: 13px 12px; }
  .nav-dropdown { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; background: rgba(255,255,255,0.03);
    max-height: 0; overflow: hidden; padding: 0 8px; transition: max-height .25s var(--ease), padding .25s; }
  .nav-item[data-open="true"] .nav-dropdown { max-height: 400px; padding: 8px; }
  .nav-cta { margin: 10px 0 0; text-align: center; justify-content: center; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .demo-wrap { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .price-card.featured { transform: none; order: -1; }
  .price-card.featured:hover { transform: translateY(-4px); }
  .stats-bar { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .wizard-nav { flex-direction: column-reverse; }
  .wizard-nav .btn { width: 100%; }
  .footer-grid { flex-direction: column; }
  .footer-cols { gap: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
