/* ============================================================
   MARKETPLACE DE DELIVERY — Sistema de diseño (páginas públicas)
   Tokens en :root · Mobile-first · WCAG AA · Sin blur
   ============================================================ */

:root {
  /* Paleta */
  --green: #12B76A;
  --green-dark: #0E9F5B;
  --green-soft: #E7F8F0;
  --navy: #0B2545;
  --navy-soft: #12335B;
  --orange: #FF8A3D;
  --orange-soft: #FFF0E5;
  --bg: #F7FAF8;
  --bg-alt: #FFFFFF;
  --text: #0F1B2C;
  --text-soft: #46586E;
  --muted: #7A8B9D;
  --line: #E2E9E6;
  --white: #FFFFFF;

  /* Radios */
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;

  /* Sombras suaves */
  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 4px 12px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 2px 4px rgba(11, 37, 69, 0.05), 0 12px 32px rgba(11, 37, 69, 0.10);
  --shadow-lg: 0 4px 8px rgba(11, 37, 69, 0.06), 0 20px 48px rgba(11, 37, 69, 0.14);

  /* Tipografía */
  --font-display: "Plus Jakarta Sans", "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Espaciado */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 96px;

  --container: 1120px;
  --focus: 3px solid var(--orange);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--green-dark); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }

h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { color: var(--text-soft); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

section { padding: var(--sp-5) 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-4);
}
.section-head .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-head p { margin-top: 12px; font-size: 1.05rem; }

/* ============ Accesibilidad ============ */
.skip-link {
  position: absolute;
  top: -60px; left: 16px;
  background: var(--navy); color: #fff;
  padding: 10px 18px; border-radius: var(--r-sm);
  z-index: 1000; font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: var(--focus); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============ Botones ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 20px; height: 20px; }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(18, 183, 106, 0.28);
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-soft); transform: translateY(-2px); }

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

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--bg); transform: translateY(-2px); }

.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(247, 250, 248, 0.96);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand svg { width: 28px; height: 28px; }
.brand span em { font-style: normal; color: var(--green-dark); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav a:hover { color: var(--navy); background: var(--bg-alt); }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 11px;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 16px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { font-size: 1rem; padding: 12px 14px; }
  .nav-cta { margin: 8px 0 0; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background: linear-gradient(180deg, #EEF7F2 0%, var(--bg) 100%);
  padding: var(--sp-5) 0 var(--sp-6);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  align-items: center;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 20px;
}
.hero-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { margin-bottom: 18px; }
.hero h1 .highlight { color: var(--green-dark); }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 560px; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: 0.85rem; color: var(--muted); }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* ============ Mockups de teléfono ============ */
.phone-stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }

.phone {
  width: 280px;
  height: 570px;
  background: var(--white);
  border-radius: 42px;
  border: 10px solid var(--navy);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.phone-notch {
  width: 130px; height: 26px;
  background: var(--navy);
  border-radius: 0 0 16px 16px;
  align-self: center;
  margin-top: -10px;
  z-index: 5;
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}
.app-bar .app-brand { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: var(--navy); }
.app-bar .pig { width: 30px; height: 30px; border-radius: 9px; background: var(--orange-soft); display: grid; place-items: center; font-size: 0.95rem; }

.app-search {
  margin: 4px 14px 12px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 0.78rem;
  display: flex;
  gap: 8px; align-items: center;
}

.app-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px 12px; }
.app-cat {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-start;
}
.app-cat .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.app-cat.ic-super .ico { background: var(--green-soft); }
.app-cat.ic-farma .ico { background: var(--orange-soft); }
.app-cat span { font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.app-cat small { font-size: 0.7rem; color: var(--muted); }

.app-list { padding: 0 14px; }
.app-item {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 12px 2px;
}
.app-item .store-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--navy-soft); display: grid; place-items: center; flex-shrink: 0; }
.app-item .st-name { font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.app-item .st-meta { font-size: 0.7rem; color: var(--muted); }
.app-item .eta {
  margin-left: auto;
  font-size: 0.7rem; font-weight: 700;
  color: var(--green-dark);
  background: var(--green-soft);
  padding: 4px 8px; border-radius: 8px;
  white-space: nowrap;
}

.app-cart {
  margin: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg);
}
.app-cart .cart-t { font-size: 0.78rem; font-weight: 700; color: var(--navy); }
.app-cart .cart-s { font-size: 0.68rem; color: var(--muted); }
.app-cart .track {
  display: inline-flex; gap: 4px;
  font-size: 0.66rem; font-weight: 700; color: var(--green-dark);
  background: var(--green-soft);
  padding: 5px 9px; border-radius: 8px;
}

/* Chips flotantes del hero (nítidos, sin blur) */
.chip {
  position: absolute;
  z-index: 6;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem; font-weight: 700; color: var(--navy);
  white-space: nowrap;
}
.chip .cdot { width: 9px; height: 9px; border-radius: 50%; }
.chip-super { top: 8%; left: 0; }
.chip-super .cdot { background: var(--green); }
.chip-farma { top: 34%; right: 0; }
.chip-farma .cdot { background: var(--orange); }
.chip-enruta { bottom: 7%; left: 6%; }
.chip-enruta .cdot { background: var(--navy); }

.chip.float-a { animation: floatA 4s ease-in-out infinite; }
.chip.float-b { animation: floatB 4s ease-in-out 1.2s infinite; }
.chip.float-c { animation: floatA 4s ease-in-out 2.2s infinite; }
@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* Phone del repartidor (mapa) */
.app-map { position: relative; height: 250px; margin: 6px 14px 12px; border-radius: var(--r-md); background: #EAF3EE; overflow: hidden; }
.app-map svg { width: 100%; height: 100%; }
.route-path { stroke: var(--green); stroke-width: 3.5; fill: none; stroke-dasharray: 320; stroke-dashoffset: 320; animation: drawRoute 3.2s ease forwards; }
@keyframes drawRoute { to { stroke-dashoffset: 0; } }
.moto-pin { animation: motoMove 3.2s ease forwards; }

.app-assign { padding: 0 14px; }
.app-assign-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
}
.app-assign-item .t { font-size: 0.8rem; font-weight: 700; color: var(--navy); }
.app-assign-item .s { font-size: 0.7rem; color: var(--muted); }
.app-assign-item .tag-d { margin-left: auto; font-size: 0.7rem; font-weight: 700; color: var(--orange); background: var(--orange-soft); padding: 4px 9px; border-radius: 8px; }
.app-delivered {
  margin: 4px 14px 16px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--r-md);
  padding: 13px;
  font-weight: 800; font-size: 0.85rem;
  width: calc(100% - 28px);
}

/* ============ Tarjetas ============ */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: grid; place-items: center;
  margin-bottom: 18px;
  color: var(--white);
}
.card-icon.g { background: var(--green); }
.card-icon.n { background: var(--navy); }
.card-icon.o { background: var(--orange); }
.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

/* ============ Pasos ============ */
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .steps { grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; } }
.step {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  position: relative;
}
.step-num {
  position: absolute;
  top: -14px; left: 22px;
  width: 34px; height: 34px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 6px 14px rgba(18, 183, 106, 0.3);
}
.step h3 { margin: 12px 0 10px; }
.step p { font-size: 0.92rem; }
.step-arrow { display: flex; align-items: center; justify-content: center; color: var(--green); }
.step-arrow svg { width: 30px; height: 30px; }
@media (max-width: 900px) { .step-arrow { transform: rotate(90deg); padding: 4px 0; } }

/* ============ Categorías ============ */
.cat-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 760px) { .cat-grid { grid-template-columns: 1fr 1fr; } }
.cat-card {
  border-radius: var(--r-lg);
  padding: 32px 28px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cat-card .big-ico { position: absolute; top: 22px; right: 24px; width: 90px; height: 90px; color: rgba(255,255,255,0.22); }
.cat-card h3 { color: var(--white); font-size: 1.55rem; margin-bottom: 8px; }
.cat-card p { color: rgba(255,255,255,0.9); margin-bottom: 16px; }
.cat-card-super { background: linear-gradient(135deg, #10B06A 0%, #0C8A54 100%); }
.cat-card-farma { background: linear-gradient(135deg, #FF8A3D 0%, #E96B16 100%); }
.cat-more {
  margin-top: 20px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9rem; font-weight: 600;
  color: var(--navy);
  background: var(--bg-alt);
  border: 1px dashed var(--line);
  border-radius: 999px;
  padding: 10px 20px;
}
.legal-note { font-size: 0.78rem; color: var(--muted); margin-top: 14px; max-width: 640px; }

/* ============ Secciones oscuras ============ */
.dark-section { background: var(--navy); }
.dark-section .eyebrow { background: rgba(18, 183, 106, 0.16); color: #4ADE80; }
.dark-section .section-head h2 { color: var(--white); }
.dark-section .section-head p { color: #B9C7D8; }
.dark-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.dark-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.09); }
.dark-card .card-icon { background: rgba(18, 183, 106, 0.2); color: #4ADE80; }
.dark-card h3 { color: var(--white); margin-bottom: 10px; }
.dark-card p { color: #B9C7D8; font-size: 0.95rem; }

/* ============ Esquema 4 nodos ============ */
.model { max-width: 920px; margin: 0 auto; }
.model-node-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 900px) { .model-node-grid { grid-template-columns: repeat(4, 1fr); } }
.model-node {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
}
.model-node .m-ico { width: 46px; height: 46px; margin: 0 auto 10px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.model-node h4 { font-size: 0.98rem; margin-bottom: 4px; }
.model-node p { font-size: 0.78rem; color: var(--muted); }
.model-arrows { display: flex; justify-content: center; gap: 24px; padding: 14px 0; color: var(--green); flex-wrap: wrap; }
.model-arrows span { font-size: 0.72rem; font-weight: 700; color: var(--text-soft); display: inline-flex; align-items: center; gap: 6px; }
.model-note { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 6px; }

/* ============ Formularios ============ */
.form-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
  max-width: 640px;
  margin: 0 auto;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 6px; }
.form-row label .req { color: var(--orange); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row textarea { min-height: 100px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.18);
  background: var(--white);
}
.form-error { display: none; color: #C0392B; font-size: 0.8rem; margin-top: 4px; }
.form-row.field-error input, .form-row.field-error textarea { border-color: #C0392B; }
.form-row.field-error .form-error { display: block; }
.form-privacy { font-size: 0.75rem; color: var(--muted); margin-top: 12px; }
.form-status[hidden] { display: none; }
.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 600;
}
.form-status.ok { background: var(--green-soft); color: var(--green-dark); }
.form-status.err { background: #FDECEC; color: #C0392B; }

/* ============ Checklist de beneficios ============ */
.check-bullet { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.check-bullet .cb-ico { flex-shrink: 0; width: 30px; height: 30px; border-radius: 10px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; }
.check-bullet .cb-ico svg { width: 17px; height: 17px; }
.check-bullet strong { display: block; color: var(--navy); font-size: 1rem; }
.check-bullet p { font-size: 0.9rem; }

/* ============ Timeline de fases ============ */
.phases { max-width: 760px; margin: 0 auto; }
.phase-item {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-bottom: 20px;
}
.phase-item::before { content: ""; position: absolute; left: 44px; top: -20px; bottom: -20px; width: 2px; background: var(--line); }
.phase-item:first-of-type::before { top: 0; }
.phase-item:last-of-type::before { bottom: auto; height: 0; }
.phase-badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-family: var(--font-display);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.phase-badge.f1 { background: var(--orange-soft); color: #D9560F; }
.phase-badge.f2 { background: var(--green-soft); color: var(--green-dark); }
.phase-item h3 { margin-bottom: 12px; }
.phase-item ul li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 0.95rem; color: var(--text-soft); }
.phase-item ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.phase-sub { font-size: 0.88rem; color: var(--muted); font-style: italic; margin-top: 14px; }

/* ============ FAQ ============ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
}
.faq-q .faq-ico { flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; transition: transform 0.2s ease; }
.faq-q .faq-ico svg { width: 16px; height: 16px; }
.faq-item.open .faq-ico { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 22px 20px; font-size: 0.95rem; color: var(--text-soft); }
.faq-item.open .faq-a { display: block; }

/* ============ Simulador ============ */
.simulator {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 28px 24px;
  max-width: 880px;
  margin: 0 auto;
}
.sim-products { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.sim-product {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.sim-product .em { font-size: 1.05rem; }
.sim-product.selected { background: var(--green); border-color: var(--green); color: var(--white); }
.sim-timeline {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.sim-step { text-align: center; position: relative; }
.sim-dot { width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); display: grid; place-items: center; color: var(--muted); transition: all .3s ease; }
.sim-dot svg { width: 20px; height: 20px; }
.sim-step span { display: block; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.sim-step.active .sim-dot { background: var(--green); border-color: var(--green); color: #fff; }
.sim-step.active span { color: var(--green-dark); }
.sim-step.done .sim-dot { background: var(--green-soft); border-color: var(--green); color: var(--green-dark); }
.sim-step.done span { color: var(--green-dark); }
.sim-step:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: calc(50% + 26px); width: calc(100% - 52px); height: 2px; background: var(--line); }
.sim-step.done:not(:last-child)::after, .sim-step.active:not(:last-child)::after { background: var(--green); }
.sim-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.sim-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* ============ CTA final ============ */
.cta-final {
  background: linear-gradient(140deg, #0B2545 0%, #12335B 55%, #187A52 130%);
  border-radius: 28px;
  padding: 48px 26px;
  text-align: center;
  color: var(--white);
}
.cta-final h2 { color: var(--white); margin-bottom: 12px; }
.cta-final p { color: #C6D4E3; max-width: 560px; margin: 0 auto 28px; font-size: 1.05rem; }

/* ============ Footer ============ */
.site-footer { background: var(--navy); color: #B9C7D8; margin-top: var(--sp-6); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding: var(--sp-5) 0 var(--sp-4); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: 0.92rem; color: #B9C7D8; max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: #B9C7D8; text-decoration: none; font-size: 0.9rem; padding: 5px 0; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: #8798AA;
}

/* ============ WhatsApp flotante + volver arriba ============ */
.fab-whatsapp {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 300;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform .15s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp svg { width: 30px; height: 30px; }

/* ============ Asistente ============ */
.chat-fab {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 300;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  transition: transform .15s ease;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab[aria-expanded="true"] { top: auto; }
.chat-fab svg { width: 26px; height: 26px; }
@media (max-width: 480px) { .chat-fab { bottom: 84px; right: 16px; } }

.chat-panel {
  position: fixed;
  right: 16px;
  bottom: 156px;
  z-index: 300;
  width: min(360px, calc(100vw - 32px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(16px);
  opacity: 0;
  visibility: hidden;
  transition: transform .2s ease, opacity .2s ease, visibility .2s;
}
.chat-panel.open { transform: translateY(0); opacity: 1; visibility: visible; }
.chat-head {
  background: var(--navy);
  color: var(--white);
  padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.chat-head .ava { width: 38px; height: 38px; border-radius: 12px; background: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.chat-head .ava svg { width: 22px; height: 22px; color: #fff; }
.chat-head strong { display: block; font-size: 0.92rem; }
.chat-head small { color: #B9C7D8; font-size: 0.72rem; }
.chat-body { padding: 18px; background: var(--bg); max-height: 340px; overflow-y: auto; }
.chat-msg { margin-bottom: 12px; max-width: 85%; }
.chat-msg.bot { margin-right: auto; }
.chat-msg.user { margin-left: auto; }
.chat-msg span { display: inline-block; padding: 11px 14px; border-radius: 14px; font-size: 0.88rem; line-height: 1.45; }
.chat-msg.bot span { background: var(--white); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.user span { background: var(--green); color: var(--white); border-bottom-right-radius: 4px; }
.chat-options { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 16px; background: var(--bg); }
.chat-opt {
  border: 1.5px solid var(--green);
  background: var(--white);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
}
.chat-opt:hover { background: var(--green); color: var(--white); }

/* ============ Página interna (privacidad, gracias, estrategia) ============ */
.page-hero { background: linear-gradient(180deg, #EEF7F2 0%, var(--bg) 100%); padding: var(--sp-4) 0 var(--sp-5); }
.page-hero .eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--green-dark); background: var(--green-soft); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.page-hero h1 { margin-bottom: 12px; }
.prose { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; }
.prose h2 { font-size: 1.35rem; margin: 28px 0 12px; color: var(--navy); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft); font-size: 0.98rem; margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.prose strong { color: var(--navy); }
.prose a { text-decoration: underline; }

.thanks-box { text-align: center; padding: var(--sp-4) 0; }
.thanks-ico { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 26px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; }
.thanks-ico svg { width: 44px; height: 44px; }

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ Estrategia ============ */
.strat-hero { background: linear-gradient(160deg, #0B2545 0%, #12335B 100%); color: var(--white); padding: var(--sp-5) 0; }
.strat-hero h1 { color: var(--white); max-width: 760px; }
.strat-hero p { color: #B9C7D8; max-width: 680px; margin-top: 14px; font-size: 1.05rem; }
.strat-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; background: rgba(18,183,106,.16); color: #4ADE80; border: 1px solid rgba(74,222,128,.35); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.strat-section { max-width: 900px; margin: 0 auto; }
.strat-section .sec-title { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.strat-section .sec-num { font-family: var(--font-display); font-weight: 800; color: var(--green-dark); font-size: 1.3rem; background: var(--green-soft); width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; }
.strat-section h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.strat-section > p, .strat-section li { color: var(--text-soft); font-size: 1rem; line-height: 1.65; }
.kw-table { width: 100%; border-collapse: collapse; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; font-size: 0.9rem; }
.kw-table th { background: var(--navy); color: var(--white); text-align: left; padding: 12px 16px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; }
.kw-table td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--text-soft); vertical-align: top; }
.kw-table td:first-child { font-weight: 700; color: var(--navy); }
@media (max-width: 700px) { .kw-table { display: block; overflow-x: auto; white-space: nowrap; } }

/* ---------- Estrategia: componentes propios ---------- */
.page-sec { padding: var(--sp-5) 0; }
.card-plain { box-shadow: none; }
.card-plain:hover { transform: none; }
.btn-sm-m { padding: 10px 18px; font-size: 0.85rem; }
.kpi-mini { font-family: var(--font-display); font-weight: 800; color: var(--green-dark); font-size: 1.15rem; margin-bottom: 8px; }

.timeline-30 { display: grid; gap: 16px; }
.timeline-30 .t30 { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 22px 14px; position: relative; }
.timeline-30 .w { display: inline-block; font-weight: 700; font-size: 0.8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--white); background: var(--navy); padding: 6px 14px; border-radius: 999px; margin-bottom: 12px; }
.timeline-30 ul { list-style: disc; padding-left: 20px; margin: 0 0 8px; }
.timeline-30 li { font-size: 0.93rem; line-height: 1.6; margin-bottom: 8px; }

.funnel { display: grid; gap: 12px; }
.fstep { display: grid; grid-template-columns: 44px 1fr; gap: 14px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.fstep > span { width: 44px; height: 44px; border-radius: 14px; background: var(--green); color: var(--white); font-family: var(--font-display); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; }
.fstep b { color: var(--navy); }
.fstep p { margin: 4px 0 0; font-size: 0.93rem; }
.funnel .fstep:nth-child(2) > span,
.funnel .fstep:nth-child(5) > span { background: var(--navy); }
.funnel .fstep:nth-child(3) > span { background: var(--orange); }

.routes-wrap { position: relative; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 20px 26px; text-align: center; }
.route-svg { width: 100%; max-width: 560px; height: auto; margin: 6px auto; display: block; }
.route-path { stroke: var(--green); stroke-width: 3; fill: none; stroke-dasharray: 320; stroke-dashoffset: 320; animation: drawRoute 2.6s ease forwards; }
.route-path.r2 { stroke: var(--orange); animation-delay: .3s; }
.route-path.r3 { stroke: var(--navy); animation-delay: .6s; }
.route-node { display: inline-block; background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; font-weight: 700; color: var(--navy); font-size: 0.92rem; box-shadow: 0 2px 10px rgba(11,37,69,.05); }
.route-node small { display: block; font-weight: 500; color: var(--text-soft); font-size: 0.78rem; margin-top: 3px; }
.route-home { background: var(--navy); border-color: var(--navy); color: var(--white); }
.route-home small { color: #B9C7D8; }
.route-sec { background: var(--green-soft); border-color: rgba(18,183,106,.35); }
.route-link { display: block; margin-top: 10px; border-style: dashed; color: var(--green-dark); font-size: 0.85rem; }
.route-box { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .route-box { grid-template-columns: 1.6fr 1fr; align-items: center; } }
@keyframes drawRoute { to { stroke-dashoffset: 0; } }

/* ============ prefers-reduced-motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .route-path { stroke-dashoffset: 0; }
}