/* Asteriq · estilos principales
   Paleta: verde oscuro #112D2B (base), blanco (lectura), turquesa #6FE6C7 (acento), naranja cálido (puntual). */

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-900: #112D2B;
  --green-800: #173C39;
  --green-700: #21504C;
  --turquoise: #6FE6C7;
  --teal-700: #0B6B5A;   /* acento legible sobre blanco */
  --orange: #F2994A;
  --orange-soft: #FDEBDD;
  --orange-ink: #8A4210;
  --ink: #0F1F1E;
  --muted: #4A5B59;
  --line: #DCE5E3;
  --surface: #FFFFFF;
  --tint: #F2F7F6;

  /* Escalas compartidas: tipografía, radios, bordes y espaciado (evitan excepciones por sección) */
  --fs-h2: clamp(1.85rem, 1.3rem + 2.2vw, 2.9rem);
  --fs-h3: clamp(1.25rem, 1.12rem + .45vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1rem + .45vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-label: .8125rem;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --line-dark: rgba(111, 230, 199, .22);
  --space-section: clamp(56px, 7vw, 96px);
  --shadow: 0 1px 2px rgba(17, 45, 43, .06), 0 8px 24px rgba(17, 45, 43, .07);
  --header-h: 68px;
  --gutter: 20px;
  --focus: var(--teal-700);

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body); /* 17px */
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--teal-700); }
a:hover { text-decoration-thickness: 2px; }

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

.on-dark { --focus: var(--turquoise); color: #fff; }
.on-dark a:not(.btn) { color: var(--turquoise); }

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--turquoise);
  color: var(--green-900);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* ---------- Tipografía ---------- */
h1 {
  font-size: clamp(2.35rem, 1.4rem + 4.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}
h2 {
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 650;
}
h4 {
  font-size: var(--fs-label);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.eyebrow {
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 16px;
}
.eyebrow-dark { color: var(--teal-700); }

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

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-accent { background: var(--turquoise); color: var(--green-900); }
.btn-accent:hover { background: #95EFD8; }

.btn-primary { background: var(--green-900); color: #fff; }
.btn-primary:hover { background: var(--green-700); }

.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--turquoise); color: var(--turquoise); }

.btn-outline { border-color: var(--green-900); color: var(--green-900); background: #fff; }
.btn-outline:hover { background: var(--tint); }

.btn-link {
  background: none;
  color: var(--teal-700);
  padding-left: 8px;
  padding-right: 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn[disabled] { opacity: .45; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-900);
  border-bottom: 1px solid rgba(111, 230, 199, .14);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}
.on-dark a.brand { color: #fff; }
.brand-dot { color: var(--turquoise); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before,
.nav-toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
}
.site-header .nav-list a { color: rgba(255, 255, 255, .88); }
.site-header .nav-list a:hover { color: var(--turquoise); }

@media (max-width: 859px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--green-900);
    border-bottom: 1px solid rgba(111, 230, 199, .2);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .25);
  }
  .js .site-nav.is-open { display: flex; }
  .js .nav-list { flex-direction: column; }
  .js .nav-list a {
    min-height: 52px;
    padding: 0 4px;
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    border-radius: 0;
  }
  /* Sin JavaScript, el menú se muestra en línea y puede ajustarse */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 8px; }
  html:not(.js) .nav-list { flex-wrap: wrap; }
}

/* ---------- Primera pantalla (la composición está en cinematic.css) ---------- */
.hero-accent { display: block; color: var(--turquoise); }
.hero-support {
  margin-top: 20px;
  font-size: 1rem;
  color: rgba(255, 255, 255, .72);
}

/* Esquema del recorrido: línea continua con pasos numerados */
.flow-card {
  background: var(--green-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, .25);
}
.flow-head { margin-bottom: 12px; }
.flow-title {
  margin-top: 12px;
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
}
.tag-warm { background: var(--orange); color: var(--green-900); }

.flow { display: grid; }
.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 8px 0;
}
.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 38px;
  bottom: -38px;
  width: 2px;
  background: rgba(111, 230, 199, .45);
}
.flow-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--turquoise);
  color: var(--green-900);
  font-weight: 700;
  font-size: 1.0625rem;
  box-shadow: 0 0 0 6px var(--green-800);
}
.flow-step:nth-child(3) .flow-num { background: var(--orange); }
.flow-step > div {
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .05);
}
.flow-name { font-size: 1.0625rem; font-weight: 700; color: #fff; }
.flow-desc { font-size: 1rem; color: rgba(255, 255, 255, .78); line-height: 1.45; }
.flow-caption { margin-top: 14px; font-size: .9375rem; color: rgba(255, 255, 255, .72); }

/* ---------- Secciones ---------- */
.section { padding: var(--space-section) 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--green-900); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.section-head h2 { margin-bottom: 16px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.125rem; }
.on-dark .section-head p:not(.eyebrow) { color: rgba(255, 255, 255, .8); }

.icon {
  width: 28px;
  height: 28px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 22px; height: 22px; }

/* Problema */
.problem-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.problem {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--tint);
}
.problem .icon {
  color: var(--teal-700);
  margin-bottom: 16px;
  padding: 10px;
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: var(--radius-sm);
}
.problem h3 { margin-bottom: 8px; }
.problem p { color: var(--muted); }

/* Servicios: una fila por servicio, con icono y número propios */
.service-grid { display: grid; gap: 20px; }
.service {
  display: grid;
  gap: 24px;
  padding: clamp(24px, 3vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
/* Número e icono discretos; el nombre del servicio es lo que destaca */
.service-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.service-badge .icon {
  order: -1;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--tint);
  color: var(--teal-700);
}
.service-num {
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  color: var(--muted);
}
.service h3 { font-size: clamp(1.45rem, 1.2rem + .8vw, 1.85rem); letter-spacing: -0.02em; margin-bottom: 10px; }
.service-summary { font-size: 1.125rem; max-width: 36ch; }
.service-detail > div { max-width: 60ch; }
.service-cta .text-link { font-size: var(--fs-body); }
.service h4 { margin: 0 0 8px; }
.service-detail p { color: var(--muted); }
.service-detail {
  display: grid;
  gap: 20px 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  align-content: start;
}
.service-cta { padding-top: 16px; border-top: 1px solid var(--line); }
@media (max-width: 599px) {
  /* Menos relleno y sangría: el margen exterior ya separa la tarjeta del borde */
  .service { padding: 24px 18px; }
  .service .checklist li { padding-left: 22px; }
}
@media (min-width: 1100px) {
  .service {
    grid-template-columns: minmax(0, 4fr) minmax(0, 9fr);
    grid-template-areas: "main detail" "cta detail";
    gap: 16px 48px;
  }
  .service-main { grid-area: main; }
  .service-detail {
    grid-area: detail;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    padding-left: 40px;
    border-left: 1px solid var(--line);
  }
  .service-cta { grid-area: cta; align-self: end; padding-top: 0; border-top: 0; }
}

.checklist { display: grid; gap: 8px; color: var(--muted); }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .5em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--teal-700);
  border-bottom: 2px solid var(--teal-700);
  transform: rotate(-45deg);
}

.text-link {
  display: inline-block;
  padding: 10px 0;
  font-weight: 600;
  text-underline-offset: 3px;
}
.text-link::after { content: "\00a0→"; }

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}
.note .icon { color: var(--teal-700); margin-top: 2px; }

/* ---------- Ejemplo interactivo ---------- */
.disclaimer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--tint);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal-700);
}
.disclaimer .icon { margin-top: 2px; color: var(--teal-700); }

.demo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

/* Pestañas de los pasos (se crean con JS): el paso activo se distingue por fondo, número relleno,
   línea inferior y aria-selected, no solo por el color */
.demo-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.demo:not(.is-tabs) .demo-steps { display: none; }
.demo-step { display: flex; min-width: 0; background: var(--tint); }
.demo-tab {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 78px;   /* reserva dos líneas: la barra no cambia de alto entre pasos */
  padding: 14px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}
.demo-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: transparent;
}
.demo-tab:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.demo-tab:hover .demo-step-num { border-color: var(--teal-700); }
.demo-tab:focus-visible { outline: 3px solid var(--focus); outline-offset: -6px; border-radius: 8px; }
.demo-tab[aria-selected="true"] { background: #fff; color: var(--ink); }
.demo-tab[aria-selected="true"]::after { background: var(--teal-700); }
.demo-step-num {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #9FB3AF;
  background: #fff;
  font-weight: 700;
  font-size: .9375rem;
}
.demo-tab[aria-selected="true"] .demo-step-num {
  background: var(--green-900);
  border-color: var(--green-900);
  color: var(--turquoise);
  box-shadow: 0 0 0 4px rgba(111, 230, 199, .45);
}
.demo-step-label { min-width: 0; overflow-wrap: break-word; }
/* Tableta, móvil y zoom del 200 %: dos filas de dos, mismo orden del DOM y nombres completos.
   (Cuatro celdas compactas no caben a 360 px: «Revisión de una persona» necesita tres líneas.) */
@media (max-width: 899px) {
  .demo-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-tab { min-height: 64px; padding: 10px 14px; gap: 10px; }
}
@media (max-width: 559px) {
  .demo-tab { padding: 10px 12px; font-size: .9375rem; }
  .demo-step-num { width: 30px; height: 30px; font-size: .875rem; }
}

.demo-body { min-width: 0; }
.demo-panels { padding: clamp(20px, 3.5vw, 40px); }
/* En escritorio, con pestañas, los paneles comparten celda: la altura no cambia entre pasos y los controles no saltan */
@media (min-width: 900px) {
  .is-tabs .demo-panels { display: grid; }
  .is-tabs .demo-panel { grid-area: 1 / 1; }
  .is-tabs .demo-panel[hidden] { display: grid; visibility: hidden; }
}
/* Sin pestañas (sin JS o si el script falla): los cuatro pasos, uno debajo de otro */
.demo:not(.is-tabs) .demo-panel + .demo-panel { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }

.demo-panel { display: grid; gap: 24px; align-content: start; outline: none; }
.demo-panel[hidden] { display: none; }
@media (min-width: 900px) {
  .demo-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
}
.demo-panel:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
.demo-text h3 { font-size: var(--fs-h3); margin-bottom: 12px; }
.demo-text > p:not(.demo-who) { color: var(--muted); max-width: 60ch; }
.demo-who {
  margin-top: 18px;
  padding: 12px 16px;
  border-left: 4px solid var(--teal-700);
  border-radius: 0 10px 10px 0;
  background: var(--tint);
  font-size: 1rem;
}

.sample {
  padding: 18px 20px;
  border: 1px dashed #A9BDB9;
  border-radius: var(--radius-sm);
  background: #FBFDFC;
}
.sample-label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.sample-message p:not(.sample-label):not(.sample-meta) { font-size: 1.0625rem; }
.sample-meta { margin-top: 10px; font-size: .9375rem; color: var(--muted); }

.fields { display: grid; gap: 0; }
.fields > div {
  display: grid;
  grid-template-columns: minmax(110px, 34%) 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.fields > div:last-child { border-bottom: 0; }
.fields dt { color: var(--muted); font-size: 1rem; }
.fields dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .fields > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (min-width: 900px) {
  /* El panel 2 fija la altura común: filas más compactas, mismo tamaño de letra */
  .fields > div { padding: 6px 0; }
}

.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--tint);
  border: 1px solid var(--line);
  font-size: .9375rem;
  font-weight: 600;
}
.pill-warm { background: var(--orange-soft); border-color: #F6C9A5; color: var(--orange-ink); }

/* Pie del ejemplo: indicador y controles juntos, bajo el contenido */
.demo-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 16px clamp(20px, 3.5vw, 40px);
  border-top: 1px solid var(--line);
  background: var(--tint);
}
.demo-progress { font-size: 1rem; font-weight: 700; color: var(--teal-700); }
.demo:not(.is-tabs) .demo-footer { display: none; }
.demo-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.demo-controls[hidden], .btn[hidden] { display: none; }
@media (max-width: 559px) {
  .demo-controls { width: 100%; }
  .demo-controls .btn:not(.btn-link) { padding-left: 16px; padding-right: 16px; white-space: nowrap; }
  .demo-controls .btn-primary { flex: 1 1 auto; }
  .demo-controls .btn-link { margin: 0 auto; }
}

/* ---------- Método: tres fases en línea, sin repetir el formato de tarjeta ---------- */
.phases { display: grid; }
.phase { position: relative; padding: 0 0 32px 68px; }
.phase:last-child { padding-bottom: 0; }
.phase-num {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--turquoise);
  background: var(--green-900);
  color: var(--turquoise);
  font-weight: 700;
  font-size: 1.125rem;
}
.phase:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: rgba(111, 230, 199, .35);
}
.phase h3 { font-size: var(--fs-h3); margin: 8px 0; }
.phase p { color: rgba(255, 255, 255, .82); max-width: 34ch; }
@media (min-width: 860px) {
  .phases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
  .phase, .phase:last-child { padding: 64px 0 0; }
  .phase:not(:last-child)::before { left: 60px; right: -24px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .phase h3 { margin-top: 0; }
}
.phases-note {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .75);
  font-size: 1rem;
}

/* ---------- Preguntas frecuentes ---------- */
@media (min-width: 960px) {
  .faq-grid { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: start; }
}
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  font-size: 1.125rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2px solid var(--teal-700);
  border-bottom: 2px solid var(--teal-700);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--teal-700); }
.faq-body { padding: 0 0 24px; color: var(--muted); max-width: 64ch; }

/* ---------- Contacto ---------- */
.contact {
  background:
    radial-gradient(700px 380px at 0% 100%, rgba(111, 230, 199, .1), transparent 60%),
    var(--green-900);
}
.contact-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 440px; gap: 64px; } }
.contact h2 { margin-bottom: 16px; max-width: 16ch; }
.contact .lead { color: rgba(255, 255, 255, .86); margin-bottom: 24px; }
.contact-email-line { font-size: 1.125rem; color: rgba(255, 255, 255, .86); }
.email { font-weight: 600; overflow-wrap: anywhere; }

.contact-card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--green-800);
  border: 1px solid var(--line-dark);
}
.field-label { display: block; font-weight: 600; margin-bottom: 8px; }
.select {
  width: 100%;
  min-height: 50px;
  margin-bottom: 20px;
  padding: 10px 44px 10px 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-sm);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%236FE6C7' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center,
    var(--green-900);
  color: #fff;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.select option { color: var(--ink); background: #fff; }

.help { margin-top: 10px; font-size: .9375rem; color: rgba(255, 255, 255, .72); line-height: 1.5; }

.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.copy-email { font-weight: 600; font-size: 1.125rem; user-select: all; overflow-wrap: anywhere; }
.copy-status { min-height: 1.5em; margin-top: 8px; font-size: .9375rem; font-weight: 600; color: var(--turquoise); }
.copy-status.is-error { color: #FFC59A; }

/* Copia de la consulta completa: alternativa secundaria al botón de correo */
.query-copy[hidden], .query-manual[hidden] { display: none; }
.query-copy { margin-top: 8px; }
.query-manual { margin-top: 8px; }
.query-text {
  display: block;
  width: 100%;
  min-height: 13em;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-sm);
  background: var(--green-900);
  color: #fff;
  font: inherit;
  font-size: var(--fs-small);
  line-height: 1.5;
  resize: vertical;
}
.contact-next {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--fs-small);
  line-height: 1.5;
  color: rgba(255, 255, 255, .88);
}

/* ---------- Pie ---------- */
.site-footer {
  background: #0B201F;
  padding: 40px 0;
  border-top: 1px solid rgba(111, 230, 199, .12);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
.brand-footer { min-height: 0; margin-bottom: 8px; }
.footer-text { color: rgba(255, 255, 255, .72); font-size: 1rem; }
.footer-meta { display: grid; gap: 4px; font-size: 1rem; color: rgba(255, 255, 255, .72); }
.footer-meta a { display: inline-block; padding: 10px 0; }
@media (min-width: 700px) { .footer-meta { text-align: right; } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
