/* =========================================================
   kan agency · estilos
   - color principal: morado profundo (#2D0B4F), con
     suficiente saturación para leerse morado y no negro.
   - las variables se siguen llamando --blue-* por historia,
     pero ahora todas son tonos morados.
   - todos los bordes redondeados. textos con mayúscula solo
     al inicio de frase y en nombres propios.
   ========================================================= */

/* ---------- variables ---------- */
:root {
  --blue-900: #2D0B4F;   /* color principal */
  --blue-800: #3F126A;   /* variaciones para profundidad */
  --blue-700: #531B87;
  --blue-300: #C68FFF;   /* acento claro sobre fondo oscuro */
  --blue-100: #F2E8FD;   /* fondos suaves */
  --blue-50:  #F9F4FE;

  --ink: #2D0B4F;        /* texto sobre claro: el mismo morado */
  --ink-soft: #654A80;
  --white: #FFFFFF;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow: 0 10px 30px -12px rgba(45, 11, 79, .25);
  --shadow-lg: 0 30px 60px -20px rgba(21, 4, 36, .55);

  --container: 1160px;
  --gutter: 20px;
  --header-h: 72px;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
svg { display: block; }

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

:focus-visible {
  outline: 3px solid var(--blue-300);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn__icon { width: 20px; height: 20px; flex-shrink: 0; }

/* destacado: blanco sobre el morado, máximo contraste */
.btn--primary {
  background: var(--white);
  color: var(--blue-900);
  box-shadow: none;
}
.btn--primary:hover { background: var(--blue-100); }

/* secundario: contorno */
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, .06);
}

.btn--lg { padding: 18px 28px; font-size: 17px; }
.btn--sm { padding: 10px 18px; font-size: 15px; box-shadow: none; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.actions--center { justify-content: center; }

/* ---------- cabecera ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: var(--white);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled {
  background: rgba(45, 11, 79, .92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, .6);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.01em;
}
/* la "k" del logo, recortada en un cuadrado redondeado */
.logo__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(198, 143, 255, .25), 0 6px 18px -6px rgba(0, 0, 0, .5);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 600;
  font-size: 15px;
}
.nav a:not(.btn) {
  opacity: .82;
  transition: opacity .2s ease;
}
.nav a:not(.btn):hover { opacity: 1; }

/* botón hamburguesa (solo móvil) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child  { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { top: 21px; transform: rotate(-45deg); }

/* ---------- selector de idioma (es / en) ---------- */
.header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.lang {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .14);
}
.lang a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, .75);
  transition: background-color .2s ease, color .2s ease;
}
.lang a:hover { color: var(--white); }
.lang a[aria-current="true"] {
  background: var(--white);
  color: var(--blue-900);
}

/* ---------- 1. portada ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: var(--blue-900);
  padding: calc(var(--header-h) + 72px) 0 110px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 56px;
}
.hero__title {
  font-size: clamp(40px, 6.2vw, 76px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 26px;
}
.hero__subtitle {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
  max-width: 560px;
  margin-bottom: 38px;
}

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}
.channels li {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .7);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, .16);
}

/* tarjeta de conversación decorativa */
.hero__visual { display: flex; justify-content: center; }
.chat {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1.5deg);
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--blue-100);
}
.chat__avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-700);
  font-weight: 800;
  font-size: 14px;
}
.chat__name { font-weight: 700; font-size: 15px; }
.chat__status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
}
.chat__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: var(--blue-50);
}
.msg {
  max-width: 85%;
  font-size: 14.5px;
  line-height: 1.45;
  padding: 10px 14px;
  border-radius: 16px;
  opacity: 0;
  transform: translateY(8px);
  animation: msg-in .5s ease forwards;
}
.msg--in {
  align-self: flex-start;
  background: var(--white);
  border-bottom-left-radius: 6px;
  box-shadow: 0 2px 6px rgba(45, 11, 79, .06);
}
.msg--out {
  align-self: flex-end;
  background: var(--blue-900);
  color: var(--white);
  border-bottom-right-radius: 6px;
}
/* aparición escalonada de los mensajes */
.msg:nth-child(1) { animation-delay: .3s; }
.msg:nth-child(2) { animation-delay: 1.1s; }
.msg:nth-child(3) { animation-delay: 1.9s; }
.msg:nth-child(4) { animation-delay: 2.7s; }

@keyframes msg-in {
  to { opacity: 1; transform: none; }
}

.chat__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-size: 13px;
}
.tag {
  font-weight: 700;
  color: #15803D;
  background: #DCFCE7;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.time { color: var(--ink-soft); }

/* ---------- secciones genéricas ---------- */
.section { padding: 110px 0; }
.section__head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section__title {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}
.section__lead {
  font-size: 18px;
  color: var(--ink-soft);
}

/* ---------- calculadora ---------- */
.calc {
  --accent: #863BF0;        /* morado claro: sliders y detalles sobre blanco */
  --accent-light: #B27CFF;  /* lavanda: cifras sobre el morado oscuro */
  padding: 110px 0 0;
}
.calc__card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid var(--blue-100);
  box-shadow: var(--shadow);
}

/* columna izquierda */
.calc__controls {
  background: var(--white);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.calc__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.calc__label-row label,
.calc__select-field label {
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.35;
}
.calc__value {
  flex-shrink: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.calc__hint {
  margin-top: 10px;
  font-size: 13.5px;
  color: #9A8AAA;
}

/* slider: la parte rellena se pinta con --fill (lo pone script.js) */
.calc__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--accent) 0 var(--fill, 50%), var(--blue-100) var(--fill, 50%) 100%);
  cursor: pointer;
  margin: 0;
}
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .15s ease;
}
.calc__range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
.calc__range:active::-webkit-slider-thumb { transform: scale(1.12); }
.calc__range:focus-visible { outline-color: var(--accent); }

.calc__divider {
  border: 0;
  border-top: 1px solid var(--blue-100);
  margin: 0;
}
.calc__selects {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 14px;
}
.calc__select-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc__select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin-top: auto;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232D0B4F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px,
    var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: 14px;
  padding: 13px 36px 13px 14px;
  cursor: pointer;
  text-overflow: ellipsis;
}
.calc__select:focus-visible { outline-color: var(--accent); }

/* columna derecha */
.calc__results {
  position: relative;
  background: var(--blue-900);
  color: var(--white);
  padding: 44px 40px 40px;
  display: flex;
  flex-direction: column;
}
/* línea fina de degradado morado → lavanda en el borde superior */
.calc__results::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-700), var(--accent-light));
}
.calc__kicker {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 14px;
}
.calc__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.calc__big {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
  white-space: nowrap;
}
.calc__big--accent { color: var(--accent-light); }
.calc__unit {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  margin-top: 4px;
}
.calc__payback {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
  margin-bottom: 22px;
}
.calc__payback strong { color: var(--white); }
.calc__btn {           /* usa el estilo del botón principal (.btn--primary) */
  width: 100%;
  margin-top: auto;
  white-space: normal;
  text-align: center;
  line-height: 1.3;
}
.calc__note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .5);
}

@media (max-width: 1024px) {
  .calc__card { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .calc { padding-top: 76px; }
}
@media (max-width: 560px) {
  .calc__card { border-radius: 26px; }
  .calc__controls { padding: 28px 20px; gap: 26px; }
  .calc__results { padding: 34px 20px 26px; }
  .calc__selects { grid-template-columns: 1fr; }
  .calc__value { font-size: 24px; }
  .calc__stats { gap: 12px; }
  .calc__big { font-size: 32px; }
}

/* ---------- chatbot: una de las cosas que hago ---------- */
.bot { padding: 110px 0 0; }
.bot__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* recuadro morado oscuro con la conversación */
.bot__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 56px 32px 72px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--blue-900);
}
.bot__visual .chat { position: relative; z-index: 1; }
/* la conversación se anima al llegar a ella, no al cargar la página */
.bot__visual.reveal:not(.is-visible) .msg { animation-play-state: paused; }

/* línea curva de luz en la parte inferior */
.bot__glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 34%;
  pointer-events: none;
}
.bot__glow path {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.bot__glow-line { stroke-width: 2; }

/* texto */
.bot__copy .section__lead { margin-bottom: 28px; }
.bot__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bot__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.45;
}
.bot__check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: -1px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
}
.bot__check svg { width: 14px; height: 14px; }

@media (max-width: 1024px) {
  .bot__inner { grid-template-columns: 1fr; gap: 40px; }
  .bot__copy { order: -1; }          /* en móvil: primero el texto, luego el chat */
}
@media (max-width: 780px) {
  .bot { padding-top: 76px; }
}
@media (max-width: 560px) {
  .bot__visual { padding: 36px 16px 56px; border-radius: 26px; }
}

/* ---------- 2. servicios (lista con líneas, sin tarjetas ni iconos) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 56px;
}
.card {
  padding: 26px 0;
  border-top: 1px solid var(--blue-100);
}
.card__title {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.card__text {
  font-size: 15.5px;
  color: var(--ink-soft);
}

/* canales de entrega: una línea de texto, sin caja */
.delivery {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px solid var(--blue-100);
  color: var(--ink);
}
.delivery__label {
  font-weight: 700;
  color: var(--ink-soft);
}
.delivery__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.delivery__list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.delivery__list svg { width: 18px; height: 18px; color: var(--blue-700); }

/* ---------- tiempo recuperado (tarjeta de la portada) ---------- */
.savings__card {
  width: 100%;
  max-width: 480px;
  color: var(--ink);
  background: var(--white);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.savings__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 32px 10px;
}
.savings__title {
  font-size: clamp(21px, 2.6vw, 26px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
}
.savings__badge {
  flex-shrink: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: #6B7280;
  background: #F1F2F4;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.savings__list { padding: 0 32px; }
.savings__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
}
.savings__row + .savings__row { border-top: 1px dashed #DFD5EA; }
.savings__check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
}
.savings__check svg { width: 16px; height: 16px; }
.savings__task {
  flex: 1;
  font-size: 16px;
  line-height: 1.4;
  color: #A79AB5;
  text-decoration-thickness: 1.5px;
}
.savings__hours {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 16px;
  color: #15803D;
  white-space: nowrap;
}
.savings__total {
  margin: 12px 12px 12px;
  padding: 26px 24px;
  text-align: center;
  border-radius: 24px;
  background: var(--blue-100);
}
.savings__total-big {
  font-size: clamp(30px, 4.4vw, 40px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}
.savings__total-small {
  margin-top: 6px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

@media (max-width: 560px) {
  .savings__card { border-radius: 26px; }
  .savings__head { padding: 24px 20px 6px; }
  .savings__list { padding: 0 20px; }
  .savings__row { gap: 12px; padding: 16px 0; }
  .savings__task { font-size: 15px; }
  .savings__hours { font-size: 15px; }
  .savings__total { margin: 8px; padding: 22px 16px; border-radius: 20px; }
}

/* ---------- 3. sobre nosotros (sin caja: texto sobre el fondo) ---------- */
.about__inner {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.about__body p {
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.75;
  color: var(--ink);
}

/* ---------- 4. contacto ---------- */
.contact__box {
  text-align: center;
  color: var(--white);
  background: var(--blue-900);
  border-radius: var(--radius-lg);
  padding: 80px 32px;
}
.contact__title {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 18px;
}
.contact__text {
  font-size: 18px;
  color: rgba(255, 255, 255, .75);
  max-width: 520px;
  margin: 0 auto 36px;
}

/* ---------- pie ---------- */
.footer {
  /* margen inferior amplio para que el botón flotante del chat no tape el pie */
  padding: 0 0 104px;
  color: var(--ink-soft);
  font-size: 14px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--blue-100);
}
.logo--small { color: var(--ink); font-size: 16px; }

/* detalle familiar del pie: girasol (izquierda) y paletín (derecha), del tamaño del texto */
.footer__family {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  color: var(--ink-soft);
}
.footer__icon {
  width: 14px;
  height: 14px;
  opacity: .85;
}
.logo--small .logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

/* ---------- aparición suave al hacer scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- enlaces legales del pie ---------- */
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer__legal a { transition: color .2s ease; }
.footer__legal a:hover { color: var(--ink); }

/* ---------- páginas legales ---------- */
.header--solid {
  position: sticky;
  background: var(--blue-900);
}
.legal {
  max-width: 760px;
  padding-top: 72px;
  padding-bottom: 96px;
}
.legal__title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}
.legal__updated {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 48px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 44px 0 14px;
}
.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 16.5px;
  line-height: 1.75;
}
.legal p + p { margin-top: 12px; }
.legal ul {
  list-style: disc;
  padding-left: 22px;
  margin: 12px 0;
}
.legal li + li { margin-top: 6px; }
.legal a:not(.btn) {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal strong { color: var(--ink); }

/* ficha con los datos del titular */
.legal__card {
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 22px 26px;
}
.legal__card + p { margin-top: 16px; }
.legal__card li { list-style: none; }
.legal__card ul { list-style: none; padding: 0; margin: 0; }

/* =========================================================
   responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero__visual { justify-content: flex-start; }
  .savings__card { max-width: 560px; }
  .about__inner { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 780px) {
  :root { --header-h: 64px; --gutter: 16px; }

  /* menú móvil desplegable */
  .nav-toggle { display: block; }
  .header__actions { gap: 10px; }
  .nav {
    position: absolute;
    top: calc(var(--header-h) - 4px);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--blue-800);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a:not(.btn) {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
  }
  .nav a:not(.btn):hover { background: rgba(255, 255, 255, .06); }
  .nav .btn { margin-top: 6px; }
  .header.menu-open { background: var(--blue-900); }

  .hero { padding: calc(var(--header-h) + 44px) 0 72px; }
  .hero__visual { justify-content: center; }
  .chat { transform: none; }

  .section { padding: 76px 0; }
  .section__head { margin-bottom: 40px; }

  .contact__box { padding: 56px 20px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer { padding-bottom: 92px; }
  /* páginas legales: en pantallas muy estrechas solo se ve la k del logo */
  .header--solid .logo__text { display: none; }
  .cards { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .btn--lg { padding: 17px 22px; }
}

/* respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* calculadora: casilla de página web y caja de precio */
.calc__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}
.calc__check input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--accent);
  cursor: pointer;
}
.calc__price {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 20px;
  margin-bottom: 20px;
}
.calc__price-label {
  font-size: 14px;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 6px;
}
.calc__price-main {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.calc__price-solo {
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
}
.calc__price-save {
  margin-top: 6px;
  font-size: 15px;
  color: rgba(255, 255, 255, .88);
}
.calc__price-save strong { color: var(--accent-light); }
