/* =========================================================================
   Francisco Fonseca · Sistema de Crecimiento para Clínicas Dentales
   Hoja de estilos única. Sin build step, sin dependencias.
   Orden: 1 tokens · 2 reset · 3 tipografía · 4 layout · 5 componentes
          6 secciones · 7 páginas internas · 8 utilidades
   ========================================================================= */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  /* Paleta (CLAUDE.md §3) */
  --petrol-900: #0B2E36;
  --petrol-700: #134B57;
  --petrol-500: #1F6B78;
  --petrol-100: #E4EEEF;
  --gold-500:   #C9A45C;
  --gold-700:   #84662C;   /* AA sobre cream 5.02 · sand 4.52 · petrol-100 4.54 */
  --cream:      #FAF7F2;
  --sand:       #F1EBE1;
  --ink:        #1D2527;
  --muted:      #5A6568;

  /* Derivados */
  --gold-hover: #B8934F;            /* gold-500 un 8% más oscuro */
  --footer-bg:  #072228;            /* petrol-900 más oscuro */
  --hairline:   rgba(29, 37, 39, 0.12);
  --hairline-dark: rgba(250, 247, 242, 0.16);

  /* Tipografía */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-h1:    clamp(2.25rem, 1.35rem + 4vw, 3.75rem);     /* 36 → 60 */
  --fs-h2:    clamp(1.75rem, 1.2rem + 2.44vw, 2.625rem);  /* 28 → 42 */
  --fs-h3:    clamp(1.25rem, 1.1rem + 0.67vw, 1.5rem);    /* 20 → 24 */
  --fs-body:  clamp(1.0625rem, 1rem + 0.28vw, 1.125rem);  /* 17 → 18 */
  --fs-lead:  clamp(1.125rem, 1.03rem + 0.42vw, 1.3125rem);
  --fs-small: 0.9375rem;
  --fs-label: clamp(0.75rem, 0.72rem + 0.13vw, 0.8125rem); /* 12 → 13 */

  /* Ritmo */
  --container: 1120px;
  --gutter: 16px;
  --section-y: 72px;
  --radius: 8px;
  --measure: 65ch;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --section-y: 112px;
  }
}

/* ---------- 2. RESET ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

a { color: var(--petrol-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--petrol-500); }

:focus-visible {
  outline: 2px solid var(--petrol-500);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Saltar al contenido (accesibilidad de teclado) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--petrol-900);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--cream); }

/* ---------- 3. TIPOGRAFÍA ------------------------------------------------ */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: 1.16; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.015em; }

p { max-width: var(--measure); text-wrap: pretty; }

.lead { font-size: var(--fs-lead); line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); line-height: 1.55; }

/* Etiqueta de sección: 12–13px, mayúsculas, tracking 0.12em */
.label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);      /* único dorado permitido sobre fondo claro */
  margin: 0 0 20px;
}
.label::before {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-500);
  margin-bottom: 16px;
}
.on-dark .label { color: var(--gold-500); }

/* ---------- 4. LAYOUT ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--cream    { background: var(--cream); }
.section--sand     { background: var(--sand); }
.section--petrol   { background: var(--petrol-900); }
.section--petrol-100 { background: var(--petrol-100); }

/* Superficies oscuras */
.on-dark { color: var(--cream); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--cream); }
.on-dark .muted { color: rgba(250, 247, 242, 0.72); }
.on-dark a:not(.cta) { color: var(--gold-500); }

.stack > * + * { margin-top: var(--stack-gap, 20px); }

/* ---------- 5. COMPONENTES ----------------------------------------------- */

/* --- Botón CTA --- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  background: var(--gold-500);
  color: var(--petrol-900);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.cta:hover {
  background: var(--gold-hover);
  color: var(--petrol-900);
  box-shadow: 0 6px 20px rgba(11, 46, 54, 0.18);
}
.cta:active { transform: translateY(1px); }
.cta[disabled] { opacity: 0.6; cursor: progress; }

.cta--block { display: flex; width: 100%; }
@media (min-width: 640px) {
  .cta--auto { width: auto; display: inline-flex; }
}

/* Nota bajo el CTA */
.cta-note {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: 16px;
}
.on-dark .cta-note { color: rgba(250, 247, 242, 0.72); }

/* --- Header fijo --- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.header__brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
}
.header__brand:hover { color: var(--ink); }
.header__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.header__role {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}
.header .cta {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  white-space: nowrap;
}

/* En móvil el header es "nombre + botón compacto" (CLAUDE.md §4):
   el cargo se omite para que todo entre en una sola línea. */
@media (max-width: 599px) {
  .header__role { display: none; }
}
@media (min-width: 768px) {
  .header__inner { min-height: 76px; }
  .header .cta { padding: 12px 22px; font-size: 0.8125rem; }
}

/* El header fijo ocupa lugar (min-height + 1px del borde inferior) */
.page { padding-top: 69px; }
@media (min-width: 768px) { .page { padding-top: 77px; } }

/* --- Footer --- */
.footer {
  background: var(--footer-bg);
  color: rgba(250, 247, 242, 0.72);
  padding-block: 40px;
  font-size: var(--fs-small);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer strong {
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.footer a { color: rgba(250, 247, 242, 0.88); text-decoration: none; }
.footer a:hover { color: var(--gold-500); text-decoration: underline; }
.footer__sep { color: rgba(250, 247, 242, 0.5); }
@media (min-width: 900px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }
}

/* --- Reglas doradas finas --- */
.rule-gold {
  width: 56px;
  height: 1px;
  background: var(--gold-500);
  border: 0;
  margin: 0;
}

/* --- Tarjetas --- */
.card {
  background: var(--cream);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 28px;
}

/* --- Listas con check --- */
.list-check li,
.list-dash li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--petrol-700);
  border-bottom: 2px solid var(--petrol-700);
  transform: rotate(-45deg);
}
.list-dash li { color: var(--muted); }
.list-dash li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 13px;
  height: 1.5px;
  background: var(--muted);
}
.on-dark .list-check li::before {
  border-color: var(--gold-500);
}

/* --- Grid genérica --- */
.grid { display: grid; gap: 24px; }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); gap: 32px; }
}

/* --- Animación de entrada ---
   Se esconde SOLO si el JS arrancó (la clase .js la pone un script inline en
   el <head>). Sin JS, o si el script falla, todo el contenido se ve igual. */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- 6. SECCIONES DE LA LANDING ----------------------------------- */

/* --- 01 · Hero --- */
.hero { padding-block: 64px var(--section-y); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 24px; }
.hero__sub { font-size: var(--fs-lead); line-height: 1.55; color: rgba(250, 247, 242, 0.84); }
.hero__reinforce {
  color: rgba(250, 247, 242, 0.72);
  font-size: var(--fs-body);
  margin-top: 20px;
}
.hero__highlight {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 28px 0;
  padding-left: 18px;
  border-left: 2px solid var(--gold-500);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.56vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--cream);
}
.hero__cta { margin-top: 32px; }
.hero__sign {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline-dark);
  font-size: var(--fs-small);
  color: rgba(250, 247, 242, 0.64);
  letter-spacing: 0.02em;
}
.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--hairline-dark);
}
@media (min-width: 900px) {
  .hero { padding-block: 88px 120px; }
  .hero__grid { grid-template-columns: 60fr 40fr; gap: 64px; }
}

/* --- 02 · Problema --- */
.journey { margin: 48px 0 56px; }
.journey svg { width: 100%; height: auto; }
.journey__caption {
  font-size: var(--fs-small);
  color: var(--muted);
  margin-top: 16px;
}
.leaks { display: grid; gap: 20px; }
.leak {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--sand);
  border-radius: var(--radius);
  border-left: 2px solid var(--gold-500);
}
.leak__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--gold-700);
  padding-top: 3px;
  flex-shrink: 0;
}
.leak p { margin: 0; font-size: var(--fs-small); line-height: 1.5; }
@media (min-width: 768px) {
  .leaks { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
.closing {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 62ch;
}

/* --- 03 · Cómo trabajo --- */
.steps { display: grid; gap: 32px; margin-top: 56px; }
.step { border-top: 1px solid var(--hairline); padding-top: 20px; }
.step__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 2rem + 2.2vw, 3.25rem);
  line-height: 1;
  color: var(--gold-700);   /* gold-500 sobre fondo claro da 1.98: no cumple AA */
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.step__title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--petrol-700);
  margin-bottom: 10px;
}
.step p { font-size: var(--fs-small); line-height: 1.55; margin: 0; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}

/* --- 04 · Qué incluye --- */
.pillars { display: grid; gap: 24px; margin-top: 56px; align-items: start; }
.pillar {
  background: var(--sand);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.pillar__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--gold-700);
  margin-bottom: 14px;
}
.pillar h3 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: 16px;
}
.pillar p { font-size: var(--fs-small); line-height: 1.6; margin: 0; }

.pillar--featured {
  background: var(--petrol-900);
  border: 1px solid var(--gold-500);
  color: var(--cream);
  padding: 40px 32px;
}
.pillar--featured .pillar__num { color: var(--gold-500); }
.pillar--featured h3 { color: var(--cream); }
.pillar--featured p { color: rgba(250, 247, 242, 0.82); }
.pillar__deliverables {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline-dark);
}
.pillar__deliverables li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--cream);
}
.pillar__deliverables li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 1px;
  background: var(--gold-500);
}
.pillar__deliverables li:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .pillars { grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
}

/* --- 05 · 90 días --- */
.timeline { display: grid; gap: 0; margin-top: 56px; }
.phase { position: relative; padding: 0 0 36px 32px; }
.phase:last-child { padding-bottom: 0; }
.phase::before {   /* línea vertical en móvil */
  content: "";
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: -14px;
  width: 1px;
  background: var(--petrol-500);
  opacity: 0.35;
}
.phase:last-child::before { display: none; }
.phase__dot {
  position: absolute;
  left: 0;
  top: 7px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold-500);
}
.phase__range {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--petrol-700);
  margin-bottom: 10px;
}
.phase h3 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.78vw, 1.75rem);
  margin-bottom: 10px;
}
.phase p { font-size: var(--fs-small); line-height: 1.55; margin: 0; }

@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .phase { padding: 28px 0 0; }
  .phase::before {
    left: 0; right: -40px; top: 5px; bottom: auto;
    width: auto; height: 1px;
  }
  .phase:last-child::before { display: block; right: 0; }
  .phase__dot { top: 0; left: 0; }
}

.timeline__closing {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid rgba(19, 75, 87, 0.18);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.56vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--petrol-900);
}

/* --- 06 · Para quién --- */
.profiles { margin-top: 48px; }
.profile h3 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--petrol-700);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}
.profile p { font-size: var(--fs-small); line-height: 1.6; margin: 0; }

.fit { margin-top: 56px; }
.fit h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.fit--yes h3 { color: var(--petrol-700); }
.fit--no h3 { color: var(--muted); }
.fit ul { font-size: var(--fs-small); }
.fit li:last-child { margin-bottom: 0; }

/* --- 07 · Quién soy --- */
.about { display: grid; gap: 40px; align-items: start; }
.about__figure { margin: 0; }
.about__figure img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--hairline);
}
.about p + p { margin-top: 18px; }
.axes {
  display: grid;
  gap: 24px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}
.axis__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 10px;
}
.axis p { font-size: var(--fs-small); line-height: 1.5; margin: 0; }
@media (min-width: 900px) {
  .about { grid-template-columns: 38fr 62fr; gap: 56px; }
  .axes { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

/* --- 08 · Diagnóstico --- */
.diagnostic-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 36px 24px;
  margin-top: 40px;
  max-width: 780px;
  margin-inline: auto;
  color: var(--ink);
}
.diagnostic-card .muted,
.diagnostic-card .cta-note { color: var(--muted); }
.diagnostic-card .list-check li::before { border-color: var(--petrol-700); }

.diagnostic-card h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--petrol-700);
  margin-bottom: 20px;
}
.diagnostic-card .list-check { font-size: var(--fs-small); }
.takeaway {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--gold-500);
  border-radius: var(--radius);
  background: rgba(201, 164, 92, 0.07);
}
.takeaway__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: 10px;
}
.takeaway p { margin: 0; font-size: var(--fs-small); line-height: 1.55; }
.next-step {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--muted);
}
.diagnostic-card .cta { margin-top: 32px; }
@media (min-width: 640px) {
  .diagnostic-card { padding: 48px 44px; }
}

/* --- 09 · FAQ --- */
.faq { max-width: 760px; margin: 48px auto 0; }
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1rem + 0.28vw, 1.1875rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--petrol-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  margin-top: 6px;
  border-right: 1.5px solid var(--gold-700);
  border-bottom: 1.5px solid var(--gold-700);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq summary:hover { color: var(--petrol-700); }
.faq__answer {
  padding: 0 0 26px;
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}

/* --- 10 · CTA final --- */
.final-cta { text-align: center; }
.final-cta .label::before { margin-inline: auto; }
.final-cta p { margin-inline: auto; }
.final-cta h2 { margin-bottom: 20px; }
.final-cta .cta { margin-top: 32px; }

/* ---------- 7. PÁGINAS INTERNAS ------------------------------------------ */
.narrow { max-width: 640px; margin-inline: auto; }
.page-head { margin-bottom: 40px; }
.page-head h1 {
  font-size: clamp(1.875rem, 1.4rem + 2.1vw, 2.75rem);
  margin-bottom: 16px;
}
.page-head p { color: var(--muted); }

/* --- Formulario --- */
.form { margin-top: 8px; }
.field { margin-bottom: 24px; }
.field > label,
.fieldset__legend {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.4;
}
.field__hint {
  display: block;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
  margin-bottom: 8px;
}
.input,
select.input {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(29, 37, 39, 0.22);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}
select.input {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A6568' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.input:hover { border-color: rgba(29, 37, 39, 0.4); }
.input:focus {
  outline: none;
  border-color: var(--petrol-500);
  box-shadow: 0 0 0 3px rgba(31, 107, 120, 0.18);
}
.input[aria-invalid="true"] { border-color: #A32E2E; }

.error {
  display: none;
  font-size: 0.8125rem;
  color: #A32E2E;
  margin-top: 6px;
}
.error.is-shown { display: block; }

.fieldset { border: 0; padding: 0; margin: 0 0 24px; }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 32px 0 24px;
  padding: 20px;
  background: var(--sand);
  border-radius: var(--radius);
}
.consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--petrol-700);
  cursor: pointer;
}
.consent label { font-size: var(--fs-small); line-height: 1.5; cursor: pointer; }

.form-status {
  display: none;
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: var(--radius);
  font-size: var(--fs-small);
  line-height: 1.55;
  background: #FBEDEC;
  border: 1px solid rgba(163, 46, 46, 0.3);
  color: #7A2323;
}
.form-status.is-shown { display: block; }
.form-status a { color: #7A2323; font-weight: 600; }

/* --- Calendario --- */
#agendar { scroll-margin-top: 88px; margin-top: 56px; }
.calendar-title { text-align: center; }
.calendar-embed {
  max-width: 820px;
  margin-inline: auto;
  margin-top: 32px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.calendar-embed iframe {
  display: block;
  width: 100%;
  min-height: 700px;
  border: 0;
}
@media (min-width: 768px) {
  .calendar-embed iframe { min-height: 760px; }
}
/* La caja del calendario es clara y vive dentro de .on-dark: hay que cortar
   la herencia del enlace dorado, que sobre blanco da 2.35 (mínimo 4.5). */
.calendar-embed a:not(.cta) { color: var(--petrol-700); }
.calendar-embed a:not(.cta):hover { color: var(--petrol-500); }

.calendar-fallback {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-small);
}

/* --- Confirmación --- */
.checklist { margin-top: 28px; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 16px;
  font-size: var(--fs-small);
  line-height: 1.55;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--gold-700);
  border-bottom: 2px solid var(--gold-700);
  transform: rotate(-45deg);
}
.signoff {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--petrol-900);
}

/* --- Documento legal --- */
.legal h2 {
  font-size: var(--fs-h3);
  margin: 40px 0 14px;
}
.legal p + p { margin-top: 16px; }
.pending {
  padding: 28px 24px;
  background: var(--sand);
  border-left: 2px solid var(--gold-500);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted);
  font-size: var(--fs-small);
}

/* ---------- 8. UTILIDADES ------------------------------------------------ */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }

/* ---------- 9. DIAGRAMA DEL RECORRIDO ------------------------------------ */
.journey__h { display: none; }
.journey__v { display: block; max-width: 300px; }
@media (min-width: 768px) {
  .journey__h { display: block; }
  .journey__v { display: none; }
}
.j-line {
  stroke: var(--petrol-700);
  stroke-width: 1.5;
  opacity: 0.4;
}
.j-leak {
  stroke: var(--gold-500);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
  stroke-linecap: round;
}
.j-node { fill: var(--petrol-700); }
.j-disc { fill: var(--gold-500); }
.j-label {
  fill: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.j-num {
  fill: var(--petrol-900);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
}
.journey__v .j-label { font-size: 13px; }
