/* ==========================================================================
   MILA — mila.lat
   CSS puro, mobile-first. Tokens alineados al isotipo entregado.
   Navy #222C47 · Naranja #FF7928 · Contrastes verificados (ver README).
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/pjs-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/pjs-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */
:root {
  --navy: #222c47;
  --navy-deep: #1a2238;
  --orange: #ff7928;
  --orange-dark: #e96a1b;
  --white: #ffffff;
  --paper: #f4f7f9;
  --slate: #475569;
  --line: #dce4ec;
  --ok: #166534;
  --danger: #b42318;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(34, 44, 71, .06);
  --shadow: 0 10px 30px -12px rgba(34, 44, 71, .22);

  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --header-h: 64px;
}

/* ---------------------------------------------------------------- reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px; /* espacio para la barra móvil */
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 .6em;
  line-height: 1.2;
  letter-spacing: -.015em;
  font-weight: 600;
}
h1 { font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-size: clamp(2.125rem, 6.2vw, 3rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
h4 { font-size: 1.0625rem; letter-spacing: -.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration-color: rgba(255, 121, 40, .5); }
a:hover { text-decoration-color: var(--orange); }

img { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  border-radius: 4px;
}
.section-dark :focus-visible,
.site-footer :focus-visible,
.mobile-bar .btn:focus-visible { outline-color: var(--orange); }

/* ---------------------------------------------------------------- utils */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}
.wrap-narrow { max-width: 820px; }

.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 {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top .18s ease;
}
.skip:focus { top: 12px; }

.lead {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--slate);
  max-width: 62ch;
}
.lead-light { color: rgba(255, 255, 255, .82); }

.note {
  font-size: .8125rem;
  line-height: 1.55;
  color: var(--slate);
  max-width: 78ch;
  margin-top: 1.25rem;
}
.note-src { display: block; margin-top: .25em; opacity: .85; }

.muted { color: var(--slate); }

.kicker {
  margin: 0 0 .5rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.sub-h {
  font-size: 1.125rem;
  margin: 2.5rem 0 1rem;
}

.highlight-line {
  margin-top: 2rem;
  font-size: 1.0625rem;
  color: var(--slate);
}
.highlight-line strong { color: var(--navy); }

/* ---------------------------------------------------------------- botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  padding: 16px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--white);
  color: var(--navy);
  border-color: var(--orange-dark);
}

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-sm { padding: 13px 22px; font-size: .9375rem; }
.btn-lg { padding: 19px 32px; font-size: 1.0625rem; }
.btn-block { width: 100%; margin-top: auto; }

/* el naranja de marca ya se separa del navy (5.28 : 1): no necesita borde */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.75rem 0 0;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 18px -14px rgba(34, 44, 71, .5);
}
.header-in {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.site-header .brand-logo { height: 30px; width: auto; }

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-btn span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.nav.is-open { display: flex; }
.nav ul { display: flex; flex-direction: column; }
.nav ul a {
  display: block;
  padding: 13px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.nav-cta { margin-top: 14px; }

/* ---------------------------------------------------------------- hero */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }

.badge {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(34, 44, 71, .07);
  color: var(--navy);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.hero .lead { margin-top: 1.25rem; }
.br-desk { display: none; }

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 1.5rem;
  font-size: .875rem;
  color: var(--slate);
}
.proof li { position: relative; padding-left: 20px; }
.proof li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
}
.proof strong { color: var(--navy); }

/* composición: celular con la conversación + ficha del CRM */
.hero-media {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 302px;
  padding: 10px;
  background: #101828;
  border-radius: 44px;
  box-shadow: 0 30px 60px -28px rgba(34, 44, 71, .55), 0 1px 0 rgba(255, 255, 255, .14) inset;
}
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 44px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  pointer-events: none;
}
.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 20px;
  background: #101828;
  border-radius: 0 0 13px 13px;
  z-index: 4;
}

.phone-screen {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 35px;
  background-color: #efeae2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='92'%3E%3Cg fill='%23111b21' fill-opacity='.035'%3E%3Ccircle cx='14' cy='16' r='2.4'/%3E%3Ccircle cx='52' cy='34' r='1.7'/%3E%3Crect x='64' y='62' width='8' height='8' rx='2'/%3E%3Cpath d='M22 60c4-5 11-5 15 0' fill='none' stroke='%23111b21' stroke-opacity='.035' stroke-width='1.6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 92px 92px;
}

/* barra de estado */
.wa-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 16px 3px;
  background: var(--white);
  font-size: .625rem;
  font-weight: 600;
  color: #111b21;
  letter-spacing: .02em;
}
.wa-status-icons { display: inline-flex; align-items: center; gap: 4px; }
.wa-status-icons svg { display: block; }

/* barra del chat */
.wa-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 8px;
  background: var(--white);
  border-bottom: 1px solid rgba(11, 20, 26, .08);
}
.wa-back { font-size: 1.25rem; line-height: 1; color: #54656f; }
.phone .wa-avatar {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(11, 20, 26, .08);
  padding: 2px;
}
.wa-who { flex: 1; min-width: 0; }
.wa-name,
.wa-sub { display: block; }
.wa-name { font-size: .78125rem; font-weight: 600; color: #111b21; line-height: 1.2; }
.wa-sub { font-size: .625rem; color: #667781; line-height: 1.3; }
.wa-dots { font-size: 1rem; line-height: 1; color: #54656f; }

/* conversación */
.wa-chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 236px;
  padding: 10px 10px 4px;
}
.wa-day {
  align-self: center;
  margin: 0 0 3px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
  font-size: .59375rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: #54656f;
}
.wa-msg {
  position: relative;
  max-width: 86%;
  padding: 7px 9px 5px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
  font-size: .75rem;
  line-height: 1.4;
  color: #111b21;
}
.wa-msg p { margin: 0; }
.wa-in { align-self: flex-start; border-top-left-radius: 2px; }
.wa-out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.wa-in::after,
.wa-out::after {
  content: "";
  position: absolute;
  top: 0;
  width: 8px;
  height: 8px;
  background: inherit;
  border-radius: 2px;
  transform: rotate(45deg);
}
.wa-in::after { left: -3px; border-top-left-radius: 0; }
.wa-out::after { right: -3px; border-top-right-radius: 0; }

.wa-quote-title { font-size: .71875rem; font-weight: 600; margin: 0 0 4px; }
.wa-quote { display: grid; gap: 2px; margin: 0 0 5px; }
.wa-quote li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: .71875rem;
}
.wa-quote b { font-weight: 600; font-variant-numeric: tabular-nums; }
.wa-total {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(11, 20, 26, .12);
  font-size: .71875rem;
  font-weight: 600;
}
.wa-total b { font-variant-numeric: tabular-nums; }

.wa-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  margin-top: 2px;
  font-size: .59375rem;
  color: #667781;
}
.wa-ticks { color: #53bdeb; font-size: .625rem; letter-spacing: -1px; }

/* barra de escritura */
.wa-input {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px 12px;
}
.wa-field {
  flex: 1;
  padding: 8px 12px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 1px .5px rgba(11, 20, 26, .13);
  font-size: .6875rem;
  color: #8696a0;
}
.wa-send {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: #00a884;
  color: var(--white);
}
.wa-send svg { display: block; }

/* ficha del CRM que acompaña el celular */
.crm-card {
  align-self: flex-end;
  width: min(238px, 82%);
  margin: 14px 2px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.crm-head {
  margin: 0 0 6px;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate);
}
.crm-state {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 2px;
  font-size: .8125rem;
  font-weight: 600;
}
.crm-note { margin: 0; font-size: .75rem; color: var(--slate); }
.dot-ok {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}


/* ---------------------------------------------------------------- secciones */
.section { padding: clamp(3rem, 6.5vw, 5rem) 0; }
.section-paper { background: var(--paper); }

.section-dark {
  background: var(--navy);
  color: var(--white);
}
.section-dark h2 { color: var(--white); }

/* dolor */
.compare-2 { display: grid; gap: 16px; margin-top: 1.75rem; }
.panel {
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
}
.panel-muted { background: var(--white); }
.panel-accent { border-left: 4px solid var(--orange); box-shadow: var(--shadow-sm); }
.panel-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
  color: var(--slate);
}
.panel-accent .panel-title { color: var(--navy); }

.ticks { display: grid; gap: 10px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: .9375rem;
  color: var(--slate);
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .38em;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(22, 101, 52, .14);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 4.5px; top: .62em;
  width: 5px; height: 9px;
  border: solid var(--ok);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}
.ticks-x li::before { background: rgba(180, 35, 24, .12); }
.ticks-x li::after {
  content: "×";
  left: 1px;
  top: 0;
  width: auto;
  height: auto;
  border: 0;
  background: none;
  transform: none;
  color: var(--danger);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}
.ticks strong { color: var(--navy); }

/* pasos */
.steps {
  display: grid;
  gap: 16px;
  margin-top: 1.75rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
}
.step h3 { font-size: 1.0625rem; margin-bottom: .4em; }
.step p { font-size: .9375rem; color: var(--slate); margin: 0; }

/* ---------------------------------------------------------------- tablas */
.table-wrap {
  margin-top: 1.5rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table { border-collapse: collapse; width: 100%; }
caption {
  caption-side: top;
  text-align: left;
  font-size: .8125rem;
  color: var(--slate);
  padding-bottom: 10px;
}
.table { min-width: 520px; font-size: .9375rem; }
.table th, .table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table thead th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--slate);
  font-weight: 600;
  font-family: var(--font-body);
}
.table tbody th { font-weight: 500; color: var(--navy); }
.table td { color: var(--slate); font-variant-numeric: tabular-nums; }
.table td strong { color: var(--navy); }
.row-strong td, .row-strong th { background: rgba(255, 121, 40, .07); color: var(--navy); }

/* comparativa MILA vs chatbot */
.compare { font-size: .9375rem; margin-top: 1.75rem; }
.compare th, .compare td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  vertical-align: top;
}
.compare thead th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 600;
  font-family: var(--font-body);
  color: rgba(255, 255, 255, .68);
}
.compare tbody th {
  font-weight: 600;
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .68);
}
.compare td { color: rgba(255, 255, 255, .72); }
.compare .col-mila { color: var(--white); }
.compare td.col-mila { font-weight: 500; }
.compare td.col-mila strong { display: block; }

/* ---------------------------------------------------------------- tarjetas */
.cards {
  display: grid;
  gap: 14px;
  margin-top: 1.75rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { font-size: 1.0625rem; margin-bottom: .45em; }
.card p { font-size: .9375rem; color: var(--slate); margin: 0; }
.card-accent { border-top: 3px solid var(--orange); }

/* ---------------------------------------------------------------- roles */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.75rem 0 1.25rem;
}
.tab {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.tab:hover { border-color: var(--navy); color: var(--navy); }
.tab[aria-selected="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.tabpanels {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px;
}
[role="tabpanel"]:focus-visible { outline-offset: 4px; }

/* ---------------------------------------------------------------- precios */
.plans { display: grid; gap: 16px; margin-top: 2rem; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.plan-featured {
  border-color: var(--orange);
  box-shadow: var(--shadow);
}
.ribbon {
  position: absolute;
  top: -12px; left: 22px;
  margin: 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.plan-name {
  font-size: .8125rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--slate);
  margin-bottom: .75rem;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 .25rem;
}
.plan-price .amount {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.plan-price .unit { font-size: .8125rem; font-weight: 500; color: var(--slate); }
.plan-sub { font-size: .875rem; color: var(--slate); margin-bottom: 1rem; }
.plan-list {
  display: grid;
  gap: 8px;
  margin: 0 0 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--slate);
  flex: 1;
}
.plan-list li { position: relative; padding-left: 20px; }
.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}
.plan-list strong { color: var(--navy); }

.notes { display: grid; gap: 12px; margin-top: 1.75rem; }
.notes p { font-size: .875rem; color: var(--slate); max-width: 82ch; }
.notes strong { color: var(--navy); }
.note-strong {
  border-left: 3px solid var(--orange);
  padding-left: 14px;
}

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 2rem;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.callout p { font-size: .9375rem; color: var(--slate); margin: 0; max-width: 60ch; }
.callout strong { color: var(--navy); }
.callout-center { flex-direction: column; text-align: center; margin-top: 2.5rem; }

/* ---------------------------------------------------------------- instalación */
.timeline {
  display: grid;
  gap: 14px;
  margin-top: 1.5rem;
  counter-reset: tl;
}
.timeline li {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.tl-day {
  display: inline-block;
  margin-bottom: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange-dark);
}
.timeline h4 { margin-bottom: .35em; }
.timeline p { font-size: .9375rem; color: var(--slate); margin: 0; }

.need {
  margin-top: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.need h3 { font-size: 1.0625rem; }
.need .ticks { margin-bottom: 1.5rem; }

/* ---------------------------------------------------------------- faq */
.faq {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(34, 44, 71, .07);
  font-size: 1.125rem;
  font-weight: 600;
  transition: transform .18s ease, background-color .18s ease;
}
.faq[open] summary::after {
  content: "−";
  background: var(--orange);
  color: var(--navy);
}
.faq-body { padding: 0 0 18px; }
.faq-body p { font-size: .9375rem; color: var(--slate); max-width: 70ch; }

/* ---------------------------------------------------------------- cierre */
.cierre { text-align: center; }
.cierre h2 { max-width: 22ch; margin-inline: auto; }
.cierre .lead { margin-inline: auto; }
.cierre .btn { margin-top: 1.75rem; }
.cierre-note {
  margin-top: 1.25rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .72);
}
.cierre-note a { color: var(--white); }

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, .78);
  padding: 2.5rem 0 1.5rem;
  font-size: .875rem;
  /* sale de contenedores acotados (Elementor) para ocupar todo el ancho */
  width: auto;
  margin-inline: calc(50% - 50vw);
}

/* Elementor: la plantilla de footer se renderiza dentro de contenedores
   "boxed" (max-width 1140 + overflow hidden) en varios niveles. Se neutralizan
   solo dentro del footer, con prefijo body + etiqueta para ganar especificidad
   frente al tema y al builder. */
body footer.elementor-location-footer,
body footer.elementor-location-footer > div,
body footer.elementor-location-footer > div > div,
body footer.elementor-location-footer .e-con,
body footer.elementor-location-footer .e-con-inner,
body footer.elementor-location-footer .e-con-boxed,
body footer.elementor-location-footer .e-con-full,
body footer.elementor-location-footer .elementor-section,
body footer.elementor-location-footer .elementor-container,
body footer.elementor-location-footer .elementor-column-wrap,
body footer.elementor-location-footer .elementor-widget-wrap,
body footer.elementor-location-footer .elementor-widget-container {
  max-width: none !important;
  width: 100% !important;
  overflow: visible !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  --container-max-width: 100% !important;
  --container-default-max-width: 100% !important;
  --content-width: 100% !important;
}
.footer-grid {
  display: grid;
  gap: 22px;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.brand-chip {
  display: inline-flex;
  padding: 5px;
  border-radius: 11px;
  background: var(--white);
}
.brand-chip img { width: 26px; height: 26px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-nav a,
.footer-contact a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
}
.footer-nav a:hover,
.footer-contact a:hover { color: var(--white); text-decoration: underline; }
.footer-contact p { margin: 0; }
.footer-by { margin-top: 8px !important; font-size: .8125rem; color: rgba(255, 255, 255, .6); }
.footer-by a { color: rgba(255, 255, 255, .85); }
.footer-contact strong { color: var(--white); }
.footer-legal {
  margin-top: 1.5rem;
  display: grid;
  gap: 8px;
  font-size: .75rem;
  color: rgba(255, 255, 255, .6);
}
.footer-legal p { margin: 0; max-width: 100ch; }
.footer-legal a { color: rgba(255, 255, 255, .85); }
.footer-legal a:hover { color: var(--white); }
.disclaimer {
  margin-top: 6px !important;
  font-size: .75rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .56);
}

/* ---------------------------------------------------------------- barra móvil */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { margin: 0; }

/* ---------------------------------------------------------------- breakpoints */

/* móvil: las tablas se comprimen en vez de exigir scroll horizontal */
@media (max-width: 640px) {
  .table-wrap { overflow-x: visible; }
  .table { min-width: 0; font-size: .8125rem; }
  .table th,
  .table td { padding: 10px 8px; }
  .table thead th { font-size: .625rem; letter-spacing: .04em; }
  .table caption { font-size: .75rem; }

  /* comparativa cliente vs MILA: una tarjeta por fila */
  .compare thead { display: none; }
  .compare,
  .compare tbody,
  .compare tr,
  .compare th,
  .compare td { display: block; width: auto; }
  .compare { margin-top: 1.25rem; }
  .compare tr {
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--radius);
    padding: 14px 16px;
    margin-bottom: 10px;
  }
  .compare tbody th { margin-bottom: 10px; }
  .compare td { border: 0; padding: 5px 0; }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-size: .625rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 2px;
  }
}

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .compare-2 { grid-template-columns: 1fr 1fr; align-items: start; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .plan-featured { transform: translateY(-6px); }
  .footer-grid { grid-template-columns: 1fr auto auto; align-items: center; }
}
@media (min-width: 980px) {
  :root { --header-h: 76px; }
  .menu-btn { display: none; }
  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav ul { flex-direction: row; gap: 28px; }
  .nav ul a {
    padding: 6px 0;
    border: 0;
    font-size: .9375rem;
    color: var(--slate);
  }
  .nav ul a:hover { color: var(--navy); }
  .nav-cta { margin-top: 0; }

  .site-header .brand-logo { height: 34px; }
  .hero-grid { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); align-items: center; }
  .br-desk { display: inline; }

  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 36px;
    right: -10px;
    width: 20px;
    border-top: 2px dashed var(--line);
  }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cards-3 .card { padding: 24px; }
  .tabs { gap: 10px; }
}

/* ---------------------------------------------------------------- movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* reveal sutil (solo si hay JS y el usuario no pide menos movimiento) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Blindaje de estados interactivos
   --------------------------------------------------------------------------
   El tema (Hello / block library de WordPress) pinta fondo en
   button:hover|:focus y color en a:hover|:focus. Nuestros controles solo
   declaraban algunos estados, así que en los que faltaban el color del tema
   se filtraba (botones con relleno morado al pasar el cursor o al hacer clic).
   Aquí se declaran todos los estados de forma explícita, con especificidad
   igual o mayor a la del tema y más abajo en la cascada.
   ========================================================================== */

.tab,
.menu-btn { -webkit-appearance: none; appearance: none; }

.tab:hover,
.tab:focus {
  background: var(--white);
  color: var(--navy);
  border-color: var(--navy);
}
.tab:active {
  background: var(--paper);
  color: var(--navy);
  border-color: var(--navy);
}
.tab[aria-selected="true"],
.tab[aria-selected="true"]:hover,
.tab[aria-selected="true"]:focus,
.tab[aria-selected="true"]:active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.menu-btn:hover,
.menu-btn:focus,
.menu-btn:active { background: var(--white); }

.nav ul a:hover,
.nav ul a:focus,
.nav ul a:active {
  background: transparent;
  text-decoration: none;
  color: var(--navy);
}

.btn-ghost:active,
.btn-primary:active {
  background: var(--white);
  color: var(--navy);
  border-color: var(--orange-dark);
}
.btn-outline:active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.cierre-note a:hover,
.cierre-note a:focus { color: var(--white); }
