/* Kairos · landing (consultoría de IA para pymes).
   La fuente Manrope va incrustada en font.css. Un solo acento (azul Kairos) en toda la página.
   Radios: tarjetas 20px, fotos 24px, campos 12px, botones en píldora. */

:root {
  --bg: #ffffff;
  --surface: #f5f7fb;
  --surface-2: #eceff6;
  --ink: #0f1626;
  --muted: #556073;
  --line: #e2e6ef;
  --accent: #3e5bd9;
  --accent-strong: #2f48b8;
  --accent-soft: #edf1ff;
  --accent-tint: #b9c6fb;
  --on-accent: #ffffff;
  --ok: #0f7a62;
  --danger: #b42318;
  --overlay: rgb(8 12 24 / 0.9);
  --shadow: 0 1px 2px rgb(15 22 38 / 0.05), 0 18px 40px -24px rgb(46 64 140 / 0.35);
  --shadow-lg: 0 2px 4px rgb(15 22 38 / 0.04), 0 40px 80px -40px rgb(46 64 140 / 0.55);
  --radius: 20px;
  --radius-lg: 24px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --surface: #11151e;
    --surface-2: #1a2030;
    --ink: #e9ecf2;
    --muted: #9ba4b4;
    --line: #252b38;
    --accent: #8aa2ff;
    --accent-strong: #aabbff;
    --accent-soft: #171e38;
    --accent-tint: #3a4890;
    --on-accent: #0b0d12;
    --ok: #4fd1b0;
    --danger: #ff9b8f;
    --overlay: rgb(4 6 12 / 0.9);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 40px -24px rgb(0 0 0 / 0.7);
    --shadow-lg: 0 2px 4px rgb(0 0 0 / 0.3), 0 40px 80px -40px rgb(0 0 0 / 0.8);
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 12px;
  z-index: 50;
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 8px;
}

.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.icon-box svg {
  width: 24px;
  height: 24px;
}

/* ---------- Cabecera ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 34px;
}

.nav-links {
  display: none;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

@media (min-width: 960px) {
  .nav-links {
    display: flex;
  }
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.12s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.65;
  cursor: progress;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-ghost {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.95rem;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--accent-strong);
  }
  .btn-ghost:hover {
    border-color: var(--ink);
  }
  .nav-links a:hover,
  .footer-links a:hover {
    color: var(--ink);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 64px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(760px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 14%, transparent), transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.25rem, 9vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.lead {
  margin-top: 20px;
  max-width: 44ch;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.2rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-media {
  margin: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-media figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (min-width: 1024px) {
  .hero {
    padding: 56px 0 96px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) clamp(300px, 30vw, 420px);
    gap: 64px;
  }
  /* Una frase por línea: el titular ocupa 2 líneas en escritorio. */
  .hero h1 {
    font-size: clamp(2.1rem, calc(2.2vw + 0.95rem), 2.6rem);
  }
  .hero h1 .h1-line {
    display: block;
  }
  .hero-media img {
    aspect-ratio: 4 / 5;
  }
}

/* ---------- Secciones ---------- */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--surface);
}

.h2 {
  max-width: 24ch;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.section-lead {
  margin-top: 14px;
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (min-width: 1024px) {
  .section {
    padding: 112px 0;
  }
}

/* ---------- Gráfico de 24 horas ---------- */

.day-chart {
  margin: 40px 0 0;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.day-row {
  display: grid;
  gap: 8px;
}

.day-row + .day-row {
  margin-top: 18px;
}

.day-label {
  font-weight: 700;
  font-size: 0.92rem;
}

.day-track {
  position: relative;
  height: 34px;
  border-radius: 10px;
  background: var(--surface-2);
}

.day-row-msgs .day-track,
.day-axis .day-track {
  height: 26px;
  background: none;
}

.day-axis {
  margin-top: 10px !important;
}

.seg {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--from) / 24 * 100%);
  width: calc((var(--to) - var(--from)) / 24 * 100%);
  border-radius: 10px;
}

.seg-team {
  background: var(--accent-tint);
}

.seg-ai {
  background: var(--accent);
}

.msg,
.dot,
.tick {
  position: absolute;
  top: 50%;
  left: calc(var(--at) / 24 * 100%);
  transform: translate(-50%, -50%);
}

.msg {
  padding: 3px 7px;
  border-radius: 8px 8px 8px 2px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.msg.is-out {
  background: var(--accent-soft);
  color: var(--accent);
}

.dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.dot-ok {
  background: var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}

.dot-ok::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.dot-miss {
  background: var(--bg);
  box-shadow: 0 0 0 2px var(--muted);
}

.dot-miss::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 10px;
  height: 2px;
  background: var(--muted);
}

.tick {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tick:first-child {
  transform: translate(0, -50%);
}

.tick:last-child {
  transform: translate(-100%, -50%);
}

.tick-fine {
  display: none;
}

.day-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.day-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.day-legend .dot {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  flex: none;
}

@media (min-width: 640px) {
  .day-chart {
    padding: 28px 32px;
  }
  .day-row {
    grid-template-columns: 136px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
  }
  .tick-fine {
    display: inline;
  }
}

/* ---------- Sectores (bento con fotos) ---------- */

.bento {
  display: grid;
  gap: 16px;
  margin-top: 40px;
}

.tile {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.tile-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tile-body {
  padding: 24px;
}

.tile h3 {
  margin-top: 14px;
  font-size: 1.35rem;
  font-weight: 800;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 7px;
  top: calc(0.32em + 4px);
  width: 4px;
  height: 8px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}

.tile-feature .tile-photo {
  aspect-ratio: 4 / 3;
  object-position: 60% 25%;
}

/* Desde 640px, Clínicas lleva la foto a sangre con el texto encima, sobre un degradado oscuro.
   En móvil no: el texto taparía la cara. */
@media (min-width: 640px) {
  .tile-feature {
    min-height: 520px;
    border: 0;
    background: #0b0f1a;
    color: #f3f5fb;
  }
  .tile-feature .tile-photo {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
    object-position: 60% 30%;
  }
  .tile-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--overlay) 0%, rgb(8 12 24 / 0.72) 38%, rgb(8 12 24 / 0) 70%);
  }
  .tile-feature .tile-body {
    position: relative;
    z-index: 1;
    align-self: end;
    padding: 28px;
  }
  .tile-feature .checks li {
    color: #d5dbea;
  }
  .tile-feature .checks li::before {
    background: rgb(255 255 255 / 0.16);
  }
  .tile-feature .checks li::after {
    border-color: #ffffff;
  }
  .tile-feature .icon-box {
    background: rgb(255 255 255 / 0.14);
    color: #ffffff;
  }
  .tile-side {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  }
  .tile-side .tile-photo {
    aspect-ratio: auto;
    min-height: 100%;
  }
  /* En vertical se ve solo una parte de la foto: encuadre sobre el agente que enseña la terraza. */
  .tile-side .photo-inmo {
    object-position: 78% 50%;
  }
}

@media (min-width: 1024px) {
  .bento {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }
  .tile-feature {
    grid-row: span 2;
    min-height: 600px;
  }
  .tile-feature .tile-body {
    padding: 36px;
  }
}

/* ---------- Retorno ---------- */

.levers {
  display: grid;
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.lever {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.lever h3 {
  margin-top: 6px;
  font-size: 1.15rem;
  font-weight: 800;
}

.lever p {
  color: var(--muted);
}

.lever .lever-metric {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.9rem;
}

.lever-metric strong {
  color: var(--ink);
}

@media (min-width: 720px) {
  .levers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .levers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.calc {
  display: grid;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.calc-inputs,
.calc-result {
  padding: 28px 20px;
}

.calc-inputs h3 {
  font-size: 1.35rem;
  font-weight: 800;
}

.calc-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.calc-field {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.calc-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.calc-field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.calc-label output {
  flex: none;
  min-width: 3ch;
  white-space: nowrap;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.calc input[type="range"] {
  --fill: 50%;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  touch-action: pan-y;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.calc input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--surface-2) var(--fill));
}

.calc input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 2px 6px rgb(15 22 38 / 0.2);
  -webkit-appearance: none;
  appearance: none;
}

.calc input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
}

.calc input[type="range"]::-moz-range-progress {
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.calc input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 3px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}

.input-unit {
  display: flex;
  align-items: center;
  max-width: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.input-unit:focus-within {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.input-unit input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.input-unit span {
  padding: 0 14px;
  color: var(--muted);
  font-weight: 600;
}

/* Sin flechitas en los campos numéricos (las teclas de flecha siguen funcionando). */
.input-unit input::-webkit-inner-spin-button,
.input-unit input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.input-unit input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.calc-result {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  background: linear-gradient(165deg, var(--accent-soft), var(--surface));
}

.calc-kicker {
  color: var(--muted);
  font-weight: 600;
}

.calc-total {
  margin-top: 4px;
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.calc-total small {
  color: var(--muted);
  font-size: 0.4em;
  font-weight: 700;
  letter-spacing: 0;
}

.calc-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  height: 150px;
  margin-top: 22px;
}

.bar {
  display: flex;
  flex-direction: column-reverse;
  height: max(3px, var(--h));
  overflow: hidden;
  border-radius: 6px 6px 3px 3px;
  transition: height 0.3s ease-out;
}

.bar i {
  display: block;
}

.bar .a {
  height: var(--a);
  background: var(--accent);
}

.bar .b {
  flex: 1;
  background: var(--accent-tint);
}

.calc-chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.calc-chart-foot strong {
  color: var(--ink);
}

.calc-breakdown {
  display: grid;
  margin: 18px 0 0;
}

.calc-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.calc-breakdown dt {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 0 10px;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
}

.calc-breakdown dt small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.calc-breakdown dd {
  margin: 0;
  font-weight: 800;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.sw {
  width: 12px;
  height: 12px;
  flex: none;
  border-radius: 3px;
}

.sw-a {
  background: var(--accent);
}

.sw-b {
  background: var(--accent-tint);
}

.calc-disclaimer {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.calc-how {
  margin-top: 10px;
  font-size: 0.88rem;
}

.calc-how summary {
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.calc-how p {
  margin-top: 8px;
  color: var(--muted);
}

.calc-result .btn {
  align-self: flex-start;
  margin-top: 20px;
}

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

@media (min-width: 900px) {
  .calc {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .calc-inputs,
  .calc-result {
    padding: 36px;
  }
  .calc-result {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

/* ---------- Cómo trabajamos ---------- */

.timeline {
  position: relative;
  display: grid;
  gap: 28px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 4px 18px;
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 52px;
  bottom: -24px;
  width: 2px;
  background: var(--line);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  grid-row: span 2;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.timeline h3 {
  align-self: center;
  font-size: 1.3rem;
  font-weight: 800;
}

.timeline p {
  grid-column: 2;
  color: var(--muted);
}

.steps-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-weight: 700;
}

.steps-note svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--ok);
}

@media (min-width: 900px) {
  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
  .timeline::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 22px;
    right: 22px;
    height: 2px;
    background: var(--line);
  }
  .timeline li {
    display: block;
  }
  .timeline li:not(:last-child)::after {
    display: none;
  }
  .step-num {
    position: relative;
    box-shadow: 0 0 0 8px var(--bg);
  }
  .timeline h3 {
    margin-top: 22px;
  }
  .timeline p {
    margin-top: 10px;
    max-width: 34ch;
  }
}

/* ---------- Sobre mí ---------- */

.about {
  display: grid;
  gap: 40px;
  align-items: center;
}

.about-photo {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background:
    radial-gradient(110% 90% at 25% 10%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 62%),
    linear-gradient(180deg, var(--accent-soft), color-mix(in srgb, var(--accent) 24%, var(--bg)));
}

/* A todo el ancho y pegada abajo: el corte de los hombros coincide con los bordes de la tarjeta. */
.about-photo img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.about-photo figcaption {
  position: absolute;
  top: 16px;
  left: 16px;
  display: grid;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--bg);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  line-height: 1.3;
}

.about-photo figcaption span {
  color: var(--muted);
}

.about-copy > p {
  margin-top: 16px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.principles {
  display: grid;
  gap: 18px 28px;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.principles li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
}

.principles svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.principles h3 {
  font-size: 1rem;
  font-weight: 800;
}

.principles p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .about {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 72px;
  }
}

/* ---------- Preguntas ---------- */

.faq {
  max-width: 780px;
  margin-top: 32px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 20px 44px 20px 0;
  font-weight: 700;
  font-size: 1.08rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease-out;
}

.faq details[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq .answer {
  max-width: 64ch;
  padding: 0 0 20px;
  color: var(--muted);
}

/* ---------- Contacto ---------- */

.contact {
  display: grid;
  gap: 32px;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.contact-person img {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-soft), color-mix(in srgb, var(--accent) 24%, var(--bg)));
  object-fit: cover;
  object-position: 50% 15%;
}

.contact-person div {
  display: grid;
  line-height: 1.35;
}

.contact-person span {
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-direct {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-direct a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-direct svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
}

.form-card {
  position: relative;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-weight: 700;
  font-size: 0.92rem;
}

.field .optional {
  color: var(--muted);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field.has-error input,
.field.has-error select {
  border-color: var(--danger);
}

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  font-weight: 600;
}

.field-error:empty {
  display: none;
}

.row-2 {
  display: grid;
  gap: 0 16px;
}

@media (min-width: 560px) {
  .row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.consent {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  margin: 4px 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.form-card .btn {
  width: 100%;
  margin-top: 14px;
}

.form-status {
  margin-top: 14px;
  font-weight: 600;
}

.form-status.is-ok {
  color: var(--ok);
}

.form-status.is-error {
  color: var(--danger);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
  }
  .form-card {
    padding: 32px;
  }
}

/* ---------- Pie ---------- */

.site-footer {
  padding: 32px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-note {
  flex-basis: 100%;
  font-size: 0.84rem;
}

/* ---------- Páginas legales ---------- */

.legal {
  max-width: 780px;
  padding-top: 48px;
  padding-bottom: 80px;
}

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 800;
}

.legal h2 {
  margin-top: 36px;
  font-size: 1.25rem;
  font-weight: 800;
}

.legal p,
.legal li {
  margin-top: 12px;
  color: var(--muted);
}

.legal ul {
  padding-left: 20px;
}

.legal .updated {
  margin-top: 8px;
  font-size: 0.9rem;
}

/* ---------- Aparición al hacer scroll (solo si no se pide menos movimiento) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}
