/* ==========================================================================
   AscentWeb&Marketing — Hoja de estilos principal
   Paleta: azules corporativos + blanco
   ========================================================================== */

:root {
  /* Azules */
  --navy-900: #04122b;
  --navy-800: #072044;
  --navy-700: #0a2c5c;
  --blue-700: #0940a8;
  --blue-600: #0b4fd8;
  --blue-500: #1f6bf5;
  --blue-400: #4d8dff;
  --blue-200: #b7d2ff;
  --blue-100: #e2edff;
  --blue-050: #f2f7ff;
  --cyan-400: #38bdf8;

  /* Neutros */
  --white: #ffffff;
  --gray-050: #f7f9fc;
  --gray-100: #eef2f8;
  --gray-200: #dfe6f0;
  /* Se oscureció de #9aa8bd (2.41:1 sobre blanco, reprobaba WCAG AA)
     a #66748b (4.73:1). Se usa en textos pequeños: notas de precio,
     pie del formulario, rótulos de contacto y pie del chat. */
  --gray-400: #66748b;
  --gray-600: #5c6b83;
  --gray-800: #253449;

  /* Naranjo y azul tomados del logo (#f97306 y #143193) */
  --orange-600: #f97306;   /* marca: solo rellenos y gráficos, NO texto */
  /* #f97306 con texto blanco da 2.81:1 y reprueba WCAG AA. Este tono
     oscurecido da 4.64:1 y, como el contraste es simétrico, sirve igual
     para texto naranjo sobre blanco y para botones naranjos con texto blanco. */
  --orange-700: #bd5705;
  --orange-800: #a44b04;
  --orange-500: #ff8c2b;
  --orange-400: #ffa54d;
  --orange-100: #ffe6d2;
  --orange-050: #fff5ec;
  --brand-blue: #143193;

  --wa: #25d366;

  --grad-blue: linear-gradient(135deg, var(--blue-600) 0%, var(--cyan-400) 100%);
  --grad-accent: linear-gradient(135deg, var(--orange-600) 0%, #ffa53d 100%);
  /* Eco del swoosh del logo: azul que sube hacia naranjo */
  --grad-swoosh: linear-gradient(100deg, var(--blue-600) 0%, var(--blue-500) 38%, var(--orange-600) 100%);

  --shadow-sm: 0 1px 2px rgba(7, 32, 68, .06), 0 2px 8px rgba(7, 32, 68, .05);
  --shadow-md: 0 4px 12px rgba(7, 32, 68, .07), 0 12px 32px rgba(7, 32, 68, .07);
  --shadow-lg: 0 8px 24px rgba(7, 32, 68, .10), 0 24px 60px rgba(7, 32, 68, .12);
  --shadow-blue: 0 10px 30px rgba(11, 79, 216, .28);
  --shadow-orange: 0 10px 30px rgba(249, 115, 6, .32);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-full: 999px;

  --wrap: 1180px;
  --header-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ------------------------------ Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
/* El atributo hidden debe ganarle a display:grid/flex (modal y chat) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy-800); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.55rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.55rem); }
h3 { font-size: 1.17rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--blue-600); color: #fff; padding: 10px 18px;
  border-radius: var(--r-sm); font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap-narrow { max-width: 820px; }

/* ------------------------------ Botones -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border: 2px solid transparent; border-radius: var(--r-full);
  font-weight: 700; font-size: .96rem; letter-spacing: -.01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, color .18s, border-color .18s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 18px; font-size: .89rem; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.w-full { width: 100%; }

.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 14px 36px rgba(11, 79, 216, .38); }

.btn-outline { background: #fff; color: var(--blue-600); border-color: var(--blue-200); }
.btn-outline:hover { border-color: var(--blue-600); background: var(--blue-050); }

.btn-ghost { background: var(--blue-050); color: var(--navy-800); border-color: var(--blue-100); }
.btn-ghost:hover { background: var(--blue-100); }

.btn-accent { background: var(--orange-700); color: #fff; box-shadow: var(--shadow-orange); }
.btn-accent:hover { background: var(--orange-800); box-shadow: 0 14px 36px rgba(249,115,6,.42); }

.btn-white { background: #fff; color: var(--blue-700); }
.btn-white:hover { background: var(--blue-050); }

.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.32); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }

/* ------------------------------ Header --------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--gray-200); box-shadow: 0 4px 20px rgba(7,32,68,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand:hover { text-decoration: none; }
/* El logo trae su propio "WEB & MARKETING", así que va solo, sin texto al lado.
   width/height en el HTML reservan el espacio y evitan el salto al cargar. */
.brand-logo { display: block; width: auto; height: 50px; }
.brand-footer .brand-logo { height: 58px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a {
  padding: 9px 14px; border-radius: var(--r-full);
  color: var(--gray-600); font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: color .18s, background .18s;
}
.nav > a:hover, .nav > a.is-current { color: var(--blue-600); background: var(--blue-050); text-decoration: none; }
.nav-cta { margin-left: 10px; color: #fff !important; }
.nav-cta:hover { color: #fff !important; background: var(--orange-800) !important; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--gray-200);
  border-radius: 12px; background: #fff; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.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); }

/* ------------------------------- Hero ---------------------------------- */
.hero { position: relative; padding: clamp(48px, 7vw, 88px) 0 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(56,189,248,.16), transparent 65%),
    radial-gradient(55% 50% at 12% 0%, rgba(11,79,216,.14), transparent 62%),
    linear-gradient(180deg, var(--blue-050) 0%, #fff 62%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,79,216,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,79,216,.05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 30%, transparent 78%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--blue-700); margin: 0 0 16px;
}
.eyebrow.center { justify-content: center; }
/* margin-top alinea el punto con la primera línea cuando el texto salta de línea */
.eyebrow .dot { width: 8px; height: 8px; margin-top: .42em; flex: none; border-radius: 50%; background: var(--orange-600); box-shadow: 0 0 0 4px rgba(249,115,6,.20); }

/* Naranjo puro: el degradado azul->naranjo se enturbiaba en el medio
   al estirarse sobre dos líneas de titular. */
.grad { background: linear-gradient(120deg, #c25505 0%, #e56a06 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .lead { font-size: 1.14rem; color: var(--gray-600); max-width: 54ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; }
.hero-trust li { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--gray-600); }
.hero-trust svg { width: 17px; height: 17px; fill: none; stroke: var(--orange-700); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Mockup */
.hero-visual { position: relative; }
.mock-window {
  background: #fff; border: 1px solid var(--gray-200); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--gray-050); border-bottom: 1px solid var(--gray-200); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--gray-200); }
.mock-bar span:first-child { background: #ff5f57; } .mock-bar span:nth-child(2) { background: #febc2e; } .mock-bar span:nth-child(3) { background: #28c840; }
.mock-body { padding: 18px; }
.mock-hero { height: 92px; border-radius: 12px; background: var(--grad-blue); margin-bottom: 14px; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mock-card { height: 54px; border-radius: 10px; background: var(--blue-050); border: 1px solid var(--blue-100); }
.mock-line { height: 9px; border-radius: 5px; background: var(--gray-100); margin-bottom: 9px; }
.mock-line.w80 { width: 80%; } .mock-line.w60 { width: 60%; } .mock-line.w70 { width: 70%; }

.float-card {
  position: absolute; background: #fff; border: 1px solid var(--gray-200);
  border-radius: 14px; box-shadow: var(--shadow-md); padding: 12px 15px;
  display: flex; flex-direction: column; gap: 2px;
  font-size: .78rem; font-weight: 700; color: var(--gray-600);
}
.fc-label { text-transform: uppercase; letter-spacing: .06em; font-size: .66rem; color: var(--gray-400); }
.fc-value { font-size: 1.42rem; font-weight: 800; color: var(--navy-800); letter-spacing: -.03em; }
.fc-value small { font-size: .72rem; color: var(--gray-400); font-weight: 700; }
.fc-value.up { color: #0f9d58; }
.fc-1 { top: 8%; left: -34px; animation: floaty 6s ease-in-out infinite .4s; }
.fc-2 { bottom: 16%; right: -22px; animation: floaty 6.6s ease-in-out infinite .9s; }
.fc-3 { bottom: -18px; left: 8%; flex-direction: row; align-items: center; gap: 9px; line-height: 1.3; animation: floaty 7.4s ease-in-out infinite .2s; }
.fc-3 svg { width: 22px; height: 22px; fill: none; stroke: var(--blue-600); stroke-width: 2.4; stroke-linecap: round; flex: none; }

/* Stats */
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-top: clamp(48px, 6vw, 78px); padding-block: 30px;
  border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200);
}
.stat { text-align: center; }
.stat strong { display: block; font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; color: var(--blue-600); letter-spacing: -.03em; }
.stat span { font-size: .87rem; color: var(--gray-600); font-weight: 600; }

/* ----------------------------- Secciones ------------------------------- */
.section { padding: clamp(62px, 8vw, 104px) 0; }
.section-alt { background: var(--gray-050); }
.section-dark { background: linear-gradient(140deg, var(--navy-800) 0%, var(--blue-700) 100%); color: rgba(255,255,255,.86); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--orange-400); }

.sec-head { max-width: 720px; margin: 0 auto clamp(38px, 5vw, 58px); text-align: center; }
.sec-sub { color: var(--gray-600); font-size: 1.06rem; margin: 0; }
.sec-sub.left { text-align: left; }
.lead-dark { color: rgba(255,255,255,.8); font-size: 1.1rem; max-width: 48ch; margin-bottom: 28px; }

/* ----------------------------- Servicios ------------------------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-lg);
  padding: 30px 26px 26px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.svc-icon {
  width: 54px; height: 54px; border-radius: 15px; background: var(--grad-blue);
  display: grid; place-items: center; margin-bottom: 18px; box-shadow: var(--shadow-blue);
}
.cards-3 .svc-card:nth-child(2) .svc-icon { background: var(--grad-accent); box-shadow: var(--shadow-orange); }
.svc-icon svg { width: 27px; height: 27px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.svc-card > p { color: var(--gray-600); font-size: .98rem; }

.ticks { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 22px; }
.ticks li { position: relative; padding-left: 27px; font-size: .93rem; color: var(--gray-800); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .32em;
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--orange-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bd5705' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.link-arrow { margin-top: auto; font-weight: 700; font-size: .93rem; display: inline-flex; gap: 6px; align-items: center; color: var(--orange-700); }
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover span { transform: translateX(4px); }

/* ------------------------------ Precios -------------------------------- */
.tabs {
  display: flex; gap: 6px; justify-content: center; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-full);
  padding: 6px; width: fit-content; margin: 0 auto 38px; box-shadow: var(--shadow-sm);
}
.tab {
  border: 0; background: transparent; color: var(--gray-600);
  padding: 11px 22px; border-radius: var(--r-full); font-weight: 700; font-size: .94rem;
  transition: background .2s, color .2s;
}
.tab:hover { color: var(--blue-600); }
.tab.is-active { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-blue); }

.panel { animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price-card {
  position: relative; background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--r-lg); padding: 28px 24px 24px;
  display: flex; flex-direction: column; height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.price-card.is-featured { border: 2px solid var(--orange-600); box-shadow: var(--shadow-md); }
/* En el plan destacado el botón también va naranjo: el naranjo es el color
   de "acción" en todo el sitio (CTA del header, distintivo, este botón). */
.price-card.is-featured .btn-primary { background: var(--orange-700); box-shadow: var(--shadow-orange); }
.price-card.is-featured .btn-primary:hover { background: var(--orange-800); box-shadow: 0 14px 36px rgba(249,115,6,.42); }
.pc-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--orange-700); color: #fff; font-size: .73rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; padding: 6px 15px;
  border-radius: var(--r-full); white-space: nowrap; box-shadow: var(--shadow-orange);
}
.pc-top { border-bottom: 1px solid var(--gray-100); padding-bottom: 18px; margin-bottom: 18px; }
.pc-level {
  display: inline-block; font-size: .71rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-full); margin-bottom: 12px;
}
.lvl-1 { background: #eaf3ff; color: #1f6bf5; }
.lvl-2 { background: #e0edff; color: #0940a8; }
.lvl-3 { background: #dbe8ff; color: #072044; }
.lvl-4 { background: #e6f6fe; color: #0678a8; }
.lvl-5 { background: var(--navy-800); color: #fff; }
.lvl-x { background: var(--orange-050); color: #b85405; }
.price-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.pc-desc { font-size: .91rem; color: var(--gray-600); margin-bottom: 16px; min-height: 2.9em; }
.pc-price { font-size: clamp(1.9rem, 3vw, 2.35rem); font-weight: 800; color: var(--navy-800); letter-spacing: -.035em; margin: 0 0 4px; line-height: 1.1; }
.pc-price .cur { font-size: .82rem; font-weight: 700; color: var(--gray-600); letter-spacing: 0; vertical-align: middle; margin-right: 3px; text-transform: none; }
.pc-price small { font-size: .78rem; font-weight: 700; color: var(--gray-400); margin-left: 5px; }
.pc-note { font-size: .84rem; color: var(--gray-600); margin: 0; font-weight: 600; }
.price-card .btn { margin-top: auto; }

.extras { display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px; }
.extras li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 10px 0; border-bottom: 1px dashed var(--gray-200); font-size: .91rem;
}
.extras li:last-child { border-bottom: 0; }
.extras b { color: var(--blue-600); white-space: nowrap; font-weight: 800; }

/* Estudio de mercado */
.market {
  margin-top: 32px; background: #fff; border: 1px solid var(--blue-100);
  border-radius: var(--r-md); box-shadow: var(--shadow-sm); overflow: hidden;
}
.market > summary {
  display: flex; align-items: center; gap: 13px; cursor: pointer;
  padding: 18px 22px; font-size: .98rem; color: var(--gray-800); list-style: none;
}
.market > summary::-webkit-details-marker { display: none; }
.market > summary::after {
  content: ''; margin-left: auto; width: 10px; height: 10px; flex: none;
  border-right: 2.4px solid var(--blue-600); border-bottom: 2.4px solid var(--blue-600);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.market[open] > summary::after { transform: rotate(-135deg); }
.market > summary:hover { background: var(--blue-050); }
.market-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--orange-100); display: grid; place-items: center; flex: none; }
.market-ico svg { width: 19px; height: 19px; fill: none; stroke: var(--orange-700); stroke-width: 2.4; stroke-linecap: round; }
.market-body { padding: 4px 22px 24px; border-top: 1px solid var(--gray-100); }
.market-body > p { font-size: .96rem; color: var(--gray-600); margin-top: 16px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.market-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 540px; }
.market-table th, .market-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--gray-100); }
.market-table thead th { background: var(--blue-050); color: var(--navy-800); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.market-table thead th:last-child { color: var(--blue-600); }
.market-table td:nth-child(2) { color: var(--gray-600); }
.market-table td b { color: var(--blue-600); }
.market-table tbody tr:hover { background: var(--blue-050); }
.market-src { font-size: .82rem; color: var(--gray-400); margin: 16px 0 0; }
.market-src a { color: var(--gray-600); text-decoration: underline; }

.price-legal { font-size: .87rem; color: var(--gray-600); text-align: center; max-width: 780px; margin: 26px auto 0; }

/* ------------------------------ Proceso -------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step {
  position: relative; background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--r-md); padding: 26px 22px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.step-n {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 13px; background: var(--orange-050); border: 1px solid var(--orange-100);
  color: var(--orange-600); font-weight: 800; font-size: 1rem; margin-bottom: 14px;
}
.step p { font-size: .93rem; color: var(--gray-600); margin: 0; }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 46px; right: -13px; width: 12px; height: 12px;
  border-right: 2.4px solid var(--orange-400); border-top: 2.4px solid var(--orange-400);
  transform: rotate(45deg);
}

/* ------------------------------ Nosotros ------------------------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why li {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-md); padding: 22px 20px; backdrop-filter: blur(6px);
}
.why h3 { font-size: 1.03rem; margin-bottom: 6px; }
.why p { font-size: .9rem; color: rgba(255,255,255,.72); margin: 0; }

/* -------------------------------- FAQ ---------------------------------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .2s;
}
.faq details[open] { border-color: var(--blue-200); }
.faq summary {
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 19px 22px; font-weight: 700; color: var(--navy-800); font-size: 1rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; margin-left: auto; flex: none; width: 20px; height: 20px;
  background: var(--blue-050) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b4fd8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/12px no-repeat;
  border-radius: 6px; transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:hover { background: var(--blue-050); }
.faq details > div { padding: 0 22px 20px; }
.faq details p { margin: 0; color: var(--gray-600); font-size: .96rem; }

/* ------------------------------ Contacto ------------------------------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-top: 32px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; }
.ci-ico { width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--blue-100); display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm); }
.ci-ico svg { width: 20px; height: 20px; fill: none; stroke: var(--blue-600); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.contact-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); font-weight: 800; }
.contact-list a, .contact-list span:not(.ci-ico) { font-weight: 600; color: var(--navy-800); font-size: .98rem; word-break: break-word; }
.contact-list a:hover { color: var(--blue-600); }

.form-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .89rem; font-weight: 700; color: var(--navy-800); margin-bottom: 7px; }
.field label span { color: var(--blue-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: .96rem; color: var(--gray-800);
  background: var(--gray-050); border: 1.5px solid var(--gray-200); border-radius: var(--r-sm);
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.field textarea { resize: vertical; min-height: 118px; }
.field select { appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c6b83' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(31,107,245,.13);
}
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #dc2626; background: #fef4f4; }
.err { display: none; font-size: .82rem; color: #dc2626; font-weight: 600; margin-top: 6px; }
.err.show { display: block; }

.check { display: flex; gap: 11px; align-items: flex-start; font-size: .89rem; color: var(--gray-600); margin: 4px 0 20px; cursor: pointer; }
.check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--blue-600); flex: none; cursor: pointer; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#submitBtn { position: relative; }
#submitBtn[disabled] { opacity: .72; cursor: wait; transform: none; }
.spinner { display: none; width: 17px; height: 17px; border: 2.4px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
#submitBtn.is-loading .spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-foot { font-size: .82rem; color: var(--gray-400); text-align: center; margin: 14px 0 0; }
.form-msg { display: none; margin-top: 18px; padding: 15px 17px; border-radius: var(--r-sm); font-size: .93rem; font-weight: 600; }
.form-msg.show { display: block; animation: fadeUp .3s var(--ease); }
.form-msg.ok { background: #eafaf1; color: #0b6b3f; border: 1.5px solid #a8e6c3; }
.form-msg.bad { background: #fef4f4; color: #a51b1b; border: 1.5px solid #f6c6c6; }
.form-msg a { color: inherit; text-decoration: underline; font-weight: 800; }

/* ------------------------------- Footer -------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.62); padding: clamp(48px, 6vw, 72px) 0 26px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { margin: 16px 0 20px; max-width: 34ch; }
.footer-col h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { color: rgba(255,255,255,.62); }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: rgba(255,255,255,.8); transition: background .2s, color .2s, transform .2s; }
.social a:hover { background: var(--orange-600); color: #fff; transform: translateY(-3px); }
.social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.62); }
.footer-bottom a:hover { color: #fff; }

/* --------------------------- WhatsApp float ---------------------------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(37, 211, 102, .45);
  transition: transform .22s var(--ease), box-shadow .22s;
}
.wa-float::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); text-decoration: none; box-shadow: 0 12px 34px rgba(37,211,102,.55); }
.wa-float svg { width: 34px; height: 34px; }
.wa-tip {
  position: absolute; right: 74px; top: 50%; transform: translateY(-50%) translateX(8px);
  background: var(--navy-800); color: #fff; font-size: .84rem; font-weight: 600;
  padding: 9px 14px; border-radius: 10px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease);
  box-shadow: var(--shadow-md);
}
.wa-tip::after { content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%) rotate(45deg); width: 10px; height: 10px; background: var(--navy-800); border-radius: 2px; }
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ------------------------------- Chat bot ------------------------------ */
.chat-launcher {
  position: fixed; right: 22px; bottom: 94px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: var(--blue-600); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-blue); transition: transform .22s var(--ease), background .22s;
}
.chat-launcher:hover { transform: scale(1.08); background: var(--blue-700); }
.chat-launcher svg { width: 27px; height: 27px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; grid-area: 1/1; transition: opacity .2s, transform .2s; }
.chat-launcher .ico-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat-launcher.is-open .ico-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat-launcher.is-open .ico-close { opacity: 1; transform: none; }
.chat-badge {
  position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px;
  border-radius: var(--r-full); background: #ef4444; color: #fff;
  font-size: .7rem; font-weight: 800; display: grid; place-items: center;
  padding: 0 5px; border: 2px solid #fff;
}
.chat-badge.hide { display: none; }

.chat-window {
  position: fixed; right: 22px; bottom: 162px; z-index: 85;
  width: min(380px, calc(100vw - 32px)); max-height: min(600px, calc(100vh - 200px));
  background: #fff; border: 1px solid var(--gray-200); border-radius: 20px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; animation: chatIn .28s var(--ease);
}
@keyframes chatIn { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }

.chat-head { display: flex; align-items: center; gap: 12px; padding: 15px 16px; background: linear-gradient(120deg, var(--blue-700), var(--blue-500)); color: #fff; }
.chat-avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.chat-avatar img { width: 34px; height: 34px; object-fit: contain; }
.chat-id { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.chat-id strong { font-size: .99rem; }
.chat-id span { font-size: .78rem; color: rgba(255,255,255,.82); display: flex; align-items: center; gap: 6px; }
.online { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.3); display: inline-block; }
.chat-min { margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 9px; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.chat-min:hover { background: rgba(255,255,255,.28); }
.chat-min svg { width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }

.chat-log {
  flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 11px;
  background: var(--gray-050); scroll-behavior: smooth;
}
.msg { max-width: 84%; padding: 11px 14px; border-radius: 15px; font-size: .92rem; line-height: 1.55; animation: fadeUp .28s var(--ease); }
.msg.bot { background: #fff; border: 1px solid var(--gray-200); border-bottom-left-radius: 5px; align-self: flex-start; color: var(--gray-800); }
.msg.user { background: var(--blue-600); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.msg strong { font-weight: 800; }
.msg a { color: var(--blue-600); font-weight: 700; text-decoration: underline; }
.msg.user a { color: #fff; }
.msg ul { display: flex; flex-direction: column; gap: 5px; margin: 8px 0 0; }
.msg ul li { padding-left: 15px; position: relative; }
.msg ul li::before { content: '·'; position: absolute; left: 4px; font-weight: 800; color: var(--blue-600); }
.msg .price-tag { color: var(--blue-600); font-weight: 800; }

.typing { display: flex; gap: 4px; align-self: flex-start; background: #fff; border: 1px solid var(--gray-200); padding: 13px 15px; border-radius: 15px; border-bottom-left-radius: 5px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-200); animation: bounce 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .16s; } .typing i:nth-child(3) { animation-delay: .32s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.chat-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; background: var(--gray-050); }
.chat-quick:empty { display: none; }
.chat-quick button {
  border: 1.5px solid var(--blue-200); background: #fff; color: var(--blue-700);
  padding: 8px 14px; border-radius: var(--r-full); font-size: .84rem; font-weight: 700;
  transition: background .18s, border-color .18s, transform .18s;
}
.chat-quick button:hover { background: var(--blue-050); border-color: var(--blue-600); transform: translateY(-2px); }
.chat-quick button.qa-wa { border-color: var(--wa); color: #0f7a3d; }
.chat-quick button.qa-wa:hover { background: #eafaf1; }

.chat-input { display: flex; gap: 8px; padding: 12px 14px 8px; border-top: 1px solid var(--gray-200); background: #fff; }
.chat-input input {
  flex: 1; min-width: 0; padding: 11px 14px; font: inherit; font-size: .92rem;
  border: 1.5px solid var(--gray-200); border-radius: var(--r-full); background: var(--gray-050);
}
.chat-input input:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 3px rgba(31,107,245,.12); }
.chat-input button { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; background: var(--blue-600); display: grid; place-items: center; transition: background .2s, transform .2s; }
.chat-input button:hover { background: var(--blue-700); transform: scale(1.06); }
.chat-input button svg { width: 19px; height: 19px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-foot { font-size: .71rem; color: var(--gray-400); text-align: center; margin: 0; padding: 0 14px 11px; background: #fff; }

/* -------------------------------- Modal -------------------------------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,18,43,.62); backdrop-filter: blur(4px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  position: relative; background: #fff; border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 40px); max-width: 660px; width: 100%;
  max-height: 84vh; overflow-y: auto; box-shadow: var(--shadow-lg);
  animation: fadeUp .28s var(--ease);
}
.modal-x { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--gray-100); display: grid; place-items: center; }
.modal-x:hover { background: var(--gray-200); }
.modal-x svg { width: 16px; height: 16px; fill: none; stroke: var(--navy-800); stroke-width: 2.4; stroke-linecap: round; }
.modal-body { font-size: .95rem; color: var(--gray-600); }
.modal-body h3 { font-size: 1.02rem; margin: 22px 0 8px; }
.modal-body ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }

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

/* ------------------------------ Responsive ----------------------------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-visual { max-width: 520px; margin-inline: auto; }
  .mock-window { transform: none; }
  .fc-1 { left: -10px; } .fc-2 { right: -6px; }
  .cards-3, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 38px; }
  .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch;
    background: #fff; padding: 16px 22px 26px; gap: 4px;
    border-bottom: 1px solid var(--gray-200); box-shadow: var(--shadow-lg);
    transform: translateY(-130%); opacity: 0; pointer-events: none;
    /* visibility saca los enlaces del orden de tabulación mientras está cerrado;
       sin esto el teclado recorre 6 enlaces invisibles antes del contenido. */
    visibility: hidden;
    transition: transform .3s var(--ease), opacity .25s, visibility 0s .3s;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open {
    transform: none; opacity: 1; pointer-events: auto; visibility: visible;
    transition: transform .3s var(--ease), opacity .25s, visibility 0s;
  }
  .nav > a { padding: 13px 14px; font-size: 1rem; }
  .nav-cta { margin: 10px 0 0; justify-content: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .stats-strip { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .cards-3, .price-grid, .steps, .field-row, .why { grid-template-columns: 1fr; }
  .step::after { display: none !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .tabs { width: 100%; flex-direction: column; border-radius: var(--r-md); }
  .tab { width: 100%; }
  .pc-desc { min-height: 0; }
  .hero-visual { max-width: 100%; }
  .fc-1, .fc-2, .fc-3 { position: static; margin-top: 12px; display: inline-flex; animation: none; }
  .fc-1, .fc-2 { margin-right: 10px; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .wa-float svg { width: 30px; height: 30px; }
  .wa-tip { display: none; }
  .chat-launcher { right: 16px; bottom: 82px; width: 52px; height: 52px; }
  /* deja libre el header pegajoso arriba y los dos botones flotantes abajo */
  .chat-window { right: 12px; left: 12px; bottom: 144px; width: auto; max-height: calc(100vh - 240px); }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .wa-float, .chat-launcher, .chat-window, .hero-visual, .site-footer .social { display: none !important; }
  body { font-size: 12pt; }
  .market[open] .market-body, .panel { display: block !important; }
}
