/* =========================================================
   docAutomateAI — Sitio corporativo v3.0
   ========================================================= */

:root {
  --navy-900: #0a1b21;
  --navy-800: #10272f;
  --navy-700: #1a3a44;
  --blue-600: #0b7a75;
  --blue-500: #0f948d;
  --cyan-400: #3cc8b4;
  --cyan-100: #e3f3f0;
  --ink: #10202a;
  --ink-soft: #485a63;
  --ink-mute: #6c7d85;
  --line: #e1e7e8;
  --bg: #ffffff;
  --bg-soft: #f4f7f6;
  --success: #2e9d5f;
  --amber: #d99a2b;
  --amber-200: #f3c879;
  --amber-100: #fbf1df;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 42, .06), 0 2px 6px rgba(16, 32, 42, .04);
  --shadow: 0 10px 30px -12px rgba(16, 32, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(10, 27, 33, .35);
  --container: 1180px;
  --font-display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--blue-500); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--cyan-400); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-900); color: #cdd9d8; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section--dark .eyebrow { color: var(--cyan-400); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head p { font-size: 1.1rem; color: var(--ink-soft); }
.section--dark .section-head p { color: #9fb3b3; }

.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 200; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px -8px rgba(11, 122, 117, .6); }
.btn--primary:hover { background: var(--blue-500); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--blue-600); color: var(--blue-600); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { color: var(--blue-600); }
.btn--outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn--whatsapp { background: #1fae5b; color: #fff; }
.btn--whatsapp:hover { background: #179a4f; color: #fff; }
.btn--sm { padding: 10px 18px; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__name { font-family: "Inter", sans-serif; font-style: italic; font-size: 1.32rem; font-weight: 500; letter-spacing: -.01em; }
.brand__name b { font-weight: 800; color: var(--blue-600); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 14px; border-radius: 999px;
  font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--ink); background: var(--bg-soft); }
.nav__link svg { width: 14px; height: 14px; transition: transform .2s; }
.nav__link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__cta { margin-left: 10px; }

.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 360px; padding: 10px; list-style: none; margin: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown__item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; color: var(--ink); }
.dropdown__item:hover { background: var(--bg-soft); color: var(--ink); }
.dropdown__item strong { display: block; font-size: .95rem; font-family: var(--font-display); }
.dropdown__item span { display: block; font-size: .85rem; color: var(--ink-mute); line-height: 1.45; }
.dropdown__icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--cyan-100); color: var(--blue-600); display: grid; place-items: center; }
.dropdown__icon svg { width: 20px; height: 20px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    /* el header usa backdrop-filter, así que "fixed" se posiciona respecto al header */
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 16px 24px 32px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 8px; border-radius: 10px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .dropdown__menu { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 4px 0 8px; display: none; opacity: 1; visibility: visible; }
  .dropdown.is-open .dropdown__menu { display: block; transform: none; }
  .nav__cta { margin: 20px 0 0; }
  .nav__cta .btn { width: 100%; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(60, 200, 180, .18), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(11, 122, 117, .12), transparent 60%),
    linear-gradient(180deg, #f6faf9 0%, #fff 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(11, 122, 117, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 122, 117, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 30%, transparent 75%);
}
.hero .container > * { min-width: 0; }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: .85rem; font-weight: 500; color: var(--ink-soft); box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero__badge b { background: var(--blue-600); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 700; letter-spacing: .03em; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(90deg, var(--blue-600) 10%, var(--amber) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 560px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
@media (max-width: 480px) { .hero__actions .btn { width: 100%; white-space: normal; } .hero__badge { font-size: .78rem; } }

/* Hero visual: panal de beneficios (inspirado en celdas hexagonales) */
.benefits { position: relative; }
.benefits::before {
  /* trama hexagonal decorativa detrás de las tarjetas */
  content: ""; position: absolute; inset: -40px -30px; z-index: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 2 52 16v28L28 58 4 44V16z M28 58v39 M4 16 0 13.7 M52 16l4-2.3' fill='none' stroke='%230b7a75' stroke-opacity='.14' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 56px 97px;
  mask-image: radial-gradient(ellipse 60% 60% at 55% 50%, #000 35%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 55% 50%, #000 35%, transparent 75%);
}
.benefits__title {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 7px 14px; border-radius: 999px; background: var(--navy-900); color: #fff;
  font-family: var(--font-display); font-size: .82rem; font-weight: 700; letter-spacing: .02em;
}
.benefits__title svg { width: 16px; height: 16px; color: var(--amber-200); }
.benefits__grid {
  position: relative; z-index: 1; list-style: none; margin: 0; padding: 0 0 34px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
/* columna derecha desplazada: efecto de panal */
.benefit:nth-child(even) { transform: translateY(34px); }
.benefit {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 18px 18px 16px; border-radius: 18px 18px 18px 4px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.benefit::after {
  /* esquina con corte diagonal, guiño industrial */
  content: ""; position: absolute; top: 0; right: 0; width: 26px; height: 26px;
  background: linear-gradient(225deg, var(--bg-soft) 50%, transparent 50%);
}
.benefit:hover { box-shadow: var(--shadow-lg); }
.benefit:nth-child(odd):hover { transform: translateY(-4px); }
.benefit:nth-child(even):hover { transform: translateY(30px); }
.benefit__hex {
  width: 38px; height: 42px; display: grid; place-items: center; margin-bottom: 6px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--cyan-100); color: var(--blue-600);
}
.benefit__hex svg { width: 18px; height: 18px; }
.benefit strong {
  font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.05rem); font-weight: 800;
  line-height: 1.05; color: var(--blue-600); letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.benefit > span:not(.benefit__hex) { font-size: .84rem; line-height: 1.45; color: var(--ink-soft); }
.benefit cite {
  margin-top: auto; padding-top: 8px; font-style: normal; font-size: .68rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute);
}
.benefit--dark { background: var(--navy-900); border-color: var(--navy-900); }
.benefit--dark::after { background: linear-gradient(225deg, #fff 50%, transparent 50%); opacity: .08; }
.benefit--dark strong { color: #fff; }
.benefit--dark > span:not(.benefit__hex) { color: #b4c6c5; }
.benefit--dark cite { color: var(--amber-200); }
.benefit--dark .benefit__hex { background: rgba(60, 200, 180, .16); color: var(--cyan-400); }
.benefit--accent { background: linear-gradient(150deg, var(--blue-600), #075450); border-color: transparent; }
.benefit--accent::after { background: linear-gradient(225deg, var(--amber) 50%, transparent 50%); }
.benefit--accent strong { color: #fff; }
.benefit--accent > span:not(.benefit__hex) { color: #d7ecea; }
.benefit--accent cite { color: #a8dcd5; }
.benefit--accent .benefit__hex { background: rgba(255, 255, 255, .16); color: #fff; }
.benefit:not(.benefit--dark):not(.benefit--accent) .benefit__hex { background: var(--amber-100); color: #a86f12; }

@media (max-width: 980px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { max-width: 620px; }
}
@media (max-width: 420px) {
  .benefits__grid { grid-template-columns: 1fr; padding-bottom: 0; }
  .benefit:nth-child(even), .benefit:nth-child(even):hover { transform: none; }
}

/* ---------- Pain points ---------- */
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.section-head p strong { color: var(--ink); }
.cite-inline { font-size: .85em; color: var(--ink-mute); }
.pain { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.pain__icon { width: 36px; height: 36px; border-radius: 10px; background: #fff1ec; color: #e0582b; display: grid; place-items: center; margin-bottom: 14px; }
.pain__icon svg { width: 18px; height: 18px; }
.pain p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.pain p strong { color: var(--ink); }
@media (max-width: 980px) { .pains { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pains { grid-template-columns: 1fr; } }

/* ---------- Service cards ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: 30px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(11, 122, 117, .3); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; background: linear-gradient(135deg, var(--blue-600), var(--cyan-400)); color: #fff; }
.card__icon svg { width: 26px; height: 26px; }
.card__tag { font-size: .75rem; font-weight: 700; letter-spacing: .1em; color: var(--blue-600); text-transform: uppercase; margin-bottom: 6px; }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--ink-soft); font-size: .97rem; }
.card ul { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 8px; }
.card li { display: flex; gap: 10px; font-size: .92rem; color: var(--ink-soft); }
.card li svg { flex: none; width: 18px; height: 18px; color: var(--success); margin-top: 3px; }
.card__link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-family: var(--font-display); font-size: .95rem; }
.card__link svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card__link svg { transform: translateX(4px); }
.card--featured { background: var(--navy-900); border-color: var(--navy-900); color: #cdd9d8; }
.card--featured h3 { color: #fff; }
.card--featured p, .card--featured li { color: #a9bcbb; }
.card--featured .card__tag { color: var(--cyan-400); }
.card--featured .card__link { color: var(--cyan-400); }

.services--secondary { grid-template-columns: repeat(3, 1fr); margin-top: 20px; }
.mini {
  display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px dashed #c8d6d4; background: rgba(255, 255, 255, .6);
}
.mini__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--cyan-100); color: var(--blue-600); display: grid; place-items: center; }
.mini__icon svg { width: 20px; height: 20px; }
.mini h3 { font-size: 1.02rem; margin-bottom: 4px; }
.mini p { font-size: .9rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 980px) { .services, .services--secondary { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .services, .services--secondary { grid-template-columns: 1fr; } }

/* ---------- Hiperautomatización band ---------- */
.hyper { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hyper__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { padding: 28px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; color: #fff; line-height: 1; margin-bottom: 10px; }
.stat strong em { font-style: normal; color: var(--amber-200); }
.stat span { font-size: .92rem; color: #9fb3b3; }
.stat sup, .source sup { font-size: .7em; color: var(--cyan-400); margin-left: 1px; }
.source a { color: #9fb3b3; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .2); text-underline-offset: 2px; }
.source a:hover { color: #fff; }
.stat--wide { grid-column: span 2; display: flex; align-items: center; gap: 18px; }
.stat--wide svg { flex: none; width: 36px; height: 36px; color: var(--cyan-400); }
.stat--wide span { color: #cdd9d8; }
.hyper__techs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 32px; }
.chip { padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: rgba(60, 200, 180, .1); color: var(--cyan-400); border: 1px solid rgba(60, 200, 180, .25); }
.source { font-size: .78rem; color: #6f8789; margin-top: 14px; }
@media (max-width: 980px) { .hyper { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 480px) { .hyper__stats { grid-template-columns: 1fr; } .stat--wide { grid-column: auto; } }

/* ---------- Solutions (aceleradores) ---------- */
.solutions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.solution {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; padding: 28px;
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
}
.solution__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--blue-600); display: grid; place-items: center; }
.solution__icon svg { width: 26px; height: 26px; }
.solution h3 { margin-bottom: 6px; }
.solution p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 14px; }
.solution__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: .78rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--cyan-100); color: var(--blue-600); }
.pill--green { background: #e3f6ef; color: var(--success); }
@media (max-width: 860px) { .solutions { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .solution { grid-template-columns: 1fr; } }

/* ---------- Process / metodología ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 8%; right: 8%; height: 2px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-400)); opacity: .3;
}
.step { position: relative; text-align: left; }
.step__num {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--blue-600); color: var(--blue-600);
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; margin-bottom: 20px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--ink-soft); margin-bottom: 10px; }
.step__out { font-size: .82rem; font-weight: 600; color: var(--ink); background: var(--bg-soft); border-radius: 10px; padding: 8px 12px; display: inline-block; }
.section--soft .step__out { background: #fff; border: 1px solid var(--line); }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; gap: 36px 24px; } .steps::before { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Use cases (tabs) ---------- */
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tabs__btn {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink-soft);
}
.tabs__btn:hover { border-color: var(--blue-600); color: var(--blue-600); }
.tabs__btn[aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.tabs__panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; padding: 36px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.tabs__panel[hidden] { display: none; }
.tabs__panel h3 { font-size: 1.5rem; }
.tabs__panel > div > p { color: var(--ink-soft); }
.usecases { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.usecases li { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); font-size: .95rem; }
.usecases svg { flex: none; width: 20px; height: 20px; color: var(--blue-600); margin-top: 2px; }
@media (max-width: 860px) { .tabs__panel { grid-template-columns: 1fr; padding: 24px; gap: 20px; } }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.why__item svg { width: 26px; height: 26px; color: var(--blue-600); margin-bottom: 12px; }
.why__item h3 { font-size: 1.05rem; margin-bottom: 6px; }
.why__item p { font-size: .94rem; color: var(--ink-soft); margin: 0; }
.quote { margin-top: 32px; padding: 24px; border-left: 3px solid var(--cyan-400); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); }
@media (max-width: 980px) { .why { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .why__grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s; }
.faq details[open] { border-color: rgba(11, 122, 117, .35); box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--blue-600); border-bottom: 2px solid var(--blue-600); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 24px 22px; color: var(--ink-soft); }
.faq details > div p:last-child { margin: 0; }

/* ---------- CTA + Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.contact__info h2 { color: #fff; }
.contact__list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; }
.contact__list svg { flex: none; width: 22px; height: 22px; color: var(--cyan-400); margin-top: 2px; }
.contact__list strong { display: block; color: #fff; font-family: var(--font-display); }
.contact__list span, .contact__list a { color: #9fb3b3; font-size: .95rem; }
.contact__list a:hover { color: #fff; }

.form { background: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-lg); color: var(--ink); }
.form h3 { font-size: 1.35rem; }
.form > p { color: var(--ink-soft); font-size: .95rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; color: var(--ink);
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-soft);
  transition: border-color .2s, background .2s, box-shadow .2s; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 4px rgba(11, 122, 117, .12); }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.form__note { font-size: .8rem; color: var(--ink-mute); margin: 14px 0 0; }
.form__status { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: .92rem; background: #e3f6ef; color: #0b6b4f; }
.form__status[hidden] { display: none; }
@media (max-width: 980px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #071318; color: #8ea5a6; padding: 64px 0 28px; font-size: .93rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand__name b { color: var(--cyan-400); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer__grid p { margin-top: 16px; max-width: 320px; }
.footer__grid h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__grid a { color: #8ea5a6; }
.footer__grid a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .06); color: #cdd9d8; }
.social a:hover { background: var(--blue-600); color: #fff; }
.social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
.footer__bottom a { color: #8ea5a6; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #1fae5b; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(31, 174, 91, .7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Service detail pages ---------- */
.page-hero {
  position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
  background: var(--navy-900); color: #cdd9d8;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 90% 0%, rgba(60, 200, 180, .22), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(11, 122, 117, .3), transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { font-size: 1.2rem; max-width: 700px; color: #a9bcbb; margin-bottom: 30px; }
.page-hero .eyebrow { color: var(--cyan-400); }
.breadcrumb { font-size: .85rem; margin-bottom: 26px; color: #6f8789; }
.breadcrumb a { color: #a9bcbb; }
.breadcrumb a:hover { color: #fff; }

.detail { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc h4 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 12px; }
.toc ul { list-style: none; padding: 0; margin: 0 0 24px; border-left: 2px solid var(--line); }
.toc ul a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; font-size: .92rem; color: var(--ink-soft); }
.toc ul a:hover { color: var(--ink); }
.toc ul a.is-active { color: var(--blue-600); border-color: var(--blue-600); font-weight: 600; }
.toc .btn { width: 100%; }
.prose { max-width: 760px; }
.prose section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.prose section:last-child { border: 0; margin: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.prose p, .prose li { color: var(--ink-soft); font-size: 1.04rem; }
.checklist { list-style: none; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; }
.checklist svg { flex: none; width: 22px; height: 22px; color: var(--success); margin-top: 2px; }
.checklist strong { color: var(--ink); }
.xlist svg { color: #e0582b; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.box { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); }
.box h3 { font-size: 1.05rem; margin-bottom: 6px; }
.box p { font-size: .95rem; margin: 0; }
.callout { padding: 24px 26px; border-radius: var(--radius); background: var(--cyan-100); border: 1px solid rgba(11, 122, 117, .2); margin-top: 20px; }
.callout p { color: var(--navy-700); margin: 0; }
.callout strong { color: var(--navy-900); }
.mini-steps { counter-reset: ms; list-style: none; padding: 0; display: grid; gap: 14px; }
.mini-steps li { counter-increment: ms; display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.mini-steps li::before { content: counter(ms); width: 36px; height: 36px; border-radius: 50%; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .9rem; }
.mini-steps strong { display: block; color: var(--ink); }
@media (max-width: 980px) { .detail { grid-template-columns: 1fr; } .toc { display: none; } }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy-900), var(--blue-600)); color: #cdd9d8;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: block; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); }
.related a:hover { border-color: var(--blue-600); box-shadow: var(--shadow-sm); }
.related small { display: block; color: var(--blue-600); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.related strong { font-family: var(--font-display); }
@media (max-width: 760px) { .related { grid-template-columns: 1fr; } }

/* Legal */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-soft); }

/* ---------- Herramienta: descarga masiva SRI ---------- */
.page-hero--tool { padding-bottom: 150px; }
.section--tool { padding-top: 0; }
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.tool {
  position: relative; padding: clamp(22px, 3.5vw, 36px); border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  margin-top: -110px; /* se superpone al encabezado oscuro */
}
.tool__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.tool__head h2 { font-size: 1.4rem; margin-bottom: 4px; }
.tool__head p { margin: 0; color: var(--ink-mute); font-size: .93rem; }
.tool__step {
  flex: none; width: 40px; height: 44px; display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--navy-900); color: var(--amber-200); font-family: var(--font-display); font-weight: 800;
}
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .9em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }

.drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer;
  padding: 40px 20px; border-radius: var(--radius); border: 2px dashed #c3d3d1;
  background: linear-gradient(180deg, var(--bg-soft), #fff); transition: border-color .2s, background .2s, transform .2s;
}
.drop:hover, .drop:focus-visible, .drop.is-drag { border-color: var(--blue-600); background: var(--cyan-100); outline: none; }
.drop.is-drag { transform: scale(1.01); }
.drop[hidden] { display: none; }
.drop__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--blue-600); box-shadow: var(--shadow-sm); margin-bottom: 8px; }
.drop__icon svg { width: 26px; height: 26px; }
.drop strong { font-family: var(--font-display); font-size: 1.05rem; }
.drop span { color: var(--ink-mute); font-size: .92rem; }
.drop u { color: var(--blue-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.filecard { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid rgba(11, 122, 117, .3); background: var(--cyan-100); }
.filecard[hidden] { display: none; }
.filecard__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--blue-600); display: grid; place-items: center; }
.filecard__icon svg { width: 22px; height: 22px; }
.filecard__info { min-width: 0; flex: 1; }
.filecard__info strong { display: block; font-family: var(--font-display); overflow-wrap: anywhere; }
.filecard__info span { font-size: .86rem; color: var(--ink-soft); }
.filecard__remove { flex: none; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink-mute); cursor: pointer; display: grid; place-items: center; }
.filecard__remove:hover { color: #b42318; border-color: #f0c4bf; }
.filecard__remove svg { width: 16px; height: 16px; }

.preview { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.preview[hidden] { display: none; }
.preview__head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--bg-soft); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-mute); }
.preview__scroll { overflow-x: auto; }
.preview table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.preview th { text-align: left; font-weight: 600; color: var(--ink-mute); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.preview td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.preview td:first-child { max-width: 170px; }
.preview tr:last-child td { border-bottom: 0; }
.preview .num { text-align: right; font-variant-numeric: tabular-nums; }

.demo-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--amber-100); color: #7a4f08; font-size: .9rem; }
.demo-note[hidden] { display: none; }
.demo-note svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }

.tool__submit { width: 100%; margin-top: 20px; padding: 16px 20px; white-space: normal; text-align: center; line-height: 1.3; }
.tool__submit:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.progress { margin-top: 18px; }
.progress[hidden] { display: none; }
.progress__bar { height: 6px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; margin-bottom: 8px; }
.progress__bar i { display: block; width: 40%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue-600), var(--amber)); animation: indeterminado 1.3s ease-in-out infinite; }
@keyframes indeterminado { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.progress span { font-size: .88rem; color: var(--ink-soft); }

.tool__status:empty { display: none; }
.tool__status { margin-top: 14px; font-size: .92rem; }
.tool__status.is-error { padding: 12px 14px; border-radius: 12px; background: #fdecea; color: #b42318; }

.result { display: flex; gap: 14px; margin-top: 18px; padding: 18px; border-radius: var(--radius); background: #e8f5ee; border: 1px solid #bfe3cd; }
.result[hidden] { display: none; }
.result__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; }
.result__icon svg { width: 18px; height: 18px; }
.result strong { font-family: var(--font-display); font-size: 1.05rem; }
.result p { margin: 4px 0 12px; font-size: .92rem; color: var(--ink-soft); overflow-wrap: anywhere; }
.result__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.upsell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; padding: 18px; border-radius: var(--radius); background: var(--navy-900); color: #b4c6c5; }
.upsell[hidden] { display: none; }
.upsell strong { color: #fff; font-family: var(--font-display); }
.upsell p { margin: 2px 0 0; font-size: .9rem; max-width: 420px; }

.tool-side { padding-top: 40px; }
.tool-side h3 { font-size: 1.15rem; margin-bottom: 14px; }
.zip-tree { border-radius: var(--radius); background: var(--navy-900); color: #b4c6c5; padding: 18px; font-size: .88rem; margin-bottom: 22px; }
.zip-tree__root { display: flex; align-items: center; gap: 8px; color: #fff; font-family: ui-monospace, Consolas, monospace; font-size: .82rem; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 10px; overflow-wrap: anywhere; }
.zip-tree__root svg { flex: none; width: 18px; height: 18px; color: var(--amber-200); }
.zip-tree ul { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px dashed rgba(255, 255, 255, .18); display: grid; gap: 10px; }
.zip-tree li { position: relative; padding-left: 12px; }
.zip-tree li::before { content: ""; position: absolute; left: -14px; top: .75em; width: 18px; border-top: 1px dashed rgba(255, 255, 255, .18); }
.zip-tree b { display: block; color: var(--cyan-400); font-family: ui-monospace, Consolas, monospace; font-weight: 600; font-size: .85rem; }
.zip-tree span { font-size: .84rem; }
.side-list { margin: 0 0 22px; }
.side-list li { font-size: .93rem; color: var(--ink-soft); }
.side-list strong { color: var(--ink); }
.side-list svg { color: var(--blue-600); }
.side-demo { padding: 16px 18px; border-radius: var(--radius); border: 1px dashed #e3c48a; background: var(--amber-100); font-size: .9rem; }
.side-demo[hidden] { display: none; }
.side-demo strong { font-family: var(--font-display); color: #7a4f08; }
.side-demo p { margin: 4px 0 0; color: #6b5420; }

/* Tarjeta de solución que enlaza a otra página */
a.solution { color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
a.solution:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(11, 122, 117, .35); }
.solution__cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-family: var(--font-display); font-weight: 700; font-size: .93rem; color: var(--blue-600); }
.solution__cta svg { width: 16px; height: 16px; transition: transform .2s; }
a.solution:hover .solution__cta svg { transform: translateX(4px); }

@media (max-width: 980px) {
  .tool-layout { grid-template-columns: minmax(0, 1fr); }
  .page-hero--tool { padding-bottom: 110px; }
  .tool { margin-top: -70px; }
  .tool-side { padding-top: 0; }
}
@media (max-width: 560px) {
  .page-hero--tool { padding-bottom: 80px; }
  .tool { margin-top: -40px; }
  .tool__head { gap: 12px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
