/* ==========================================================================
   Austral Solutions — Landing page
   Dirección: "Taller de ingeniería" — charcoal + esmeralda técnico
   ========================================================================== */

:root {
  --bg: #0B0D10;
  --bg-elevated: #12151B;
  --bg-elevated-2: #171B22;
  --border: #22262D;
  --border-soft: rgba(255,255,255,0.08);

  --ink: #F3F5F4;
  --ink-muted: #9AA3AC;
  --ink-faint: rgba(243,245,244,0.55);

  --accent: #2BAE7E;
  --accent-hover: #34C690;
  --accent-deep: #175C40;
  --accent-soft: rgba(43,174,126,0.12);
  --accent-ink: #06110C;

  --shadow-card: rgba(0,0,0,0.2);
  --shadow-card-hover: rgba(0,0,0,0.35);

  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --sticky-cta-height: 76px;
  --container-max: 1160px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--sticky-cta-height) + env(safe-area-inset-bottom));
}

h1, h2, h3, h4, legend {
  font-family: var(--font-sans);
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}

p { margin: 0; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow { max-width: 760px; }

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

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.gold-italic {
  font-style: normal;
  color: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
  touch-action: manipulation;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn__arrow { display: inline-block; transition: transform 220ms var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--gold { background: var(--accent); color: var(--accent-ink); }
.btn--gold:hover { background: var(--accent-hover); box-shadow: 0 8px 24px rgba(43,174,126,0.35); }

.btn--navy { background: var(--ink); color: var(--bg); }
.btn--navy:hover { background: #ffffff; box-shadow: 0 8px 24px rgba(0,0,0,0.3); }

.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border); }
.btn--ghost:hover { background: var(--bg-elevated); }

.btn--sm { padding: 10px 20px; font-size: 13px; min-height: 40px; }
.btn--block { width: 100%; }

.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  z-index: 400;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(11,13,16,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 250ms var(--ease), background 250ms var(--ease);
}
.navbar--scrolled {
  background: rgba(11,13,16,0.97);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar__logo-mark { width: 34px; height: 34px; border-radius: 8px; }
.navbar__logo-text {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.navbar__logo-text em { font-style: normal; color: var(--accent); }

.navbar__links {
  display: none;
  gap: 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
}
.navbar__links a {
  position: relative;
  opacity: 0.85;
  padding-bottom: 4px;
  transition: opacity 150ms, color 150ms;
}
.navbar__links a:hover { opacity: 1; color: var(--ink); }
.navbar__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transition: right 220ms var(--ease);
}
.navbar__links a.is-active { opacity: 1; color: var(--ink); }
.navbar__links a.is-active::after { right: 0; }

.navbar__actions { display: flex; align-items: center; gap: 12px; }
.navbar__actions .btn--sm { display: none; }

.navbar__burger {
  width: 44px; height: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.navbar__burger span {
  width: 22px; height: 2px; background: var(--ink);
  transition: transform 200ms var(--ease), opacity 200ms var(--ease);
}
.navbar__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu a {
  padding: 14px 4px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu .btn { margin-top: 14px; }

@media (min-width: 900px) {
  .navbar__links { display: flex; }
  .navbar__actions .btn--sm { display: inline-flex; }
  .navbar__burger { display: none; }
  .mobile-menu { display: none !important; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: radial-gradient(120% 90% at 80% -10%, #16211B 0%, #08090B 55%);
  padding: 24px 0 28px;
}
.hero__grid {
  display: grid;
  gap: 28px;
}
.hero__title {
  font-size: clamp(32px, 6vw, 46px);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero__subtitle {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 52ch;
}

.hero__media { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin: 0 auto; width: 100%; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.video-frame__video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.video-frame__fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--accent);
  background: radial-gradient(circle at 50% 30%, #171f1a 0%, #0B0D10 70%);
}
.video-frame__fallback p { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.04em; font-weight: 500; color: var(--ink-muted); }
.video-frame--no-source .video-frame__fallback { display: flex; }

.video-frame__sound {
  position: absolute;
  left: 12px;
  bottom: 44px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(11,13,16,0.72);
  backdrop-filter: blur(4px);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 160ms var(--ease), border-color 160ms var(--ease);
}
.video-frame__sound:hover { background: rgba(11,13,16,0.9); border-color: var(--accent); }
.video-frame__sound-icon { color: var(--accent); flex: none; }
.video-frame__sound-icon--on { display: none; }
.video-frame__sound[aria-pressed="true"] .video-frame__sound-icon--off { display: none; }
.video-frame__sound[aria-pressed="true"] .video-frame__sound-icon--on { display: block; }

.video-frame__caption {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: rgba(243,245,244,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  /* Es texto informativo, nunca interactivo — que nunca intercepte toques
     destinados a los controles nativos del video que caen en esa esquina. */
  pointer-events: none;
}

.hero__cta { width: 100%; }

/* Entrada animada del hero (no depende de scroll, corre al cargar) */
.js .hero__copy .eyebrow,
.js .hero__copy .hero__title,
.js .hero__copy .hero__subtitle,
.js .hero__media {
  opacity: 0;
  animation: fade-up 800ms var(--ease) forwards;
}
.js .hero__copy .eyebrow { animation-delay: 80ms; }
.js .hero__copy .hero__title { animation-delay: 180ms; }
.js .hero__copy .hero__subtitle { animation-delay: 340ms; }
.js .hero__media { animation-delay: 260ms; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Scroll reveal (secciones fuera del hero) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 750ms var(--ease), transform 750ms var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

.js .reveal-group > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}
.js .reveal-group.is-visible > * { opacity: 1; transform: translateY(0); }
.js .reveal-group.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.js .reveal-group.is-visible > *:nth-child(2) { transition-delay: 90ms; }
.js .reveal-group.is-visible > *:nth-child(3) { transition-delay: 180ms; }
.js .reveal-group.is-visible > *:nth-child(4) { transition-delay: 270ms; }
.js .reveal-group.is-visible > *:nth-child(5) { transition-delay: 360ms; }

@media (min-width: 900px) {
  .hero { padding: 40px 0 32px; }
  .hero__copy { max-width: 720px; margin: 0 auto; text-align: center; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__media { max-width: 860px; margin: 16px auto 0; }
}

/* ==========================================================================
   SECTIONS (generic)
   ========================================================================== */
.section {
  padding: 32px 0;
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
}
.section--navy {
  background: radial-gradient(130% 100% at 12% 0%, #16251C 0%, #0D1712 55%);
  color: var(--ink);
}
/* Cada bloque tiene su propio tono dentro de la misma familia oscura —
   distinguible del hero y entre sí, pero sin saltos fuertes de color. */
.section--glow-a {
  background: radial-gradient(120% 120% at 90% -10%, #17211C 0%, #12151B 60%);
}
.section--glow-b {
  background: radial-gradient(120% 120% at 10% 110%, #131A1D 0%, #0E1116 60%);
}

/* Secciones claras — alternan con las oscuras para dar respiro visual.
   Redefinen las custom properties de color/superficie; el resto de los
   componentes (cards, steps, eyebrow, accent) las heredan sin cambios. */
.section--cream {
  background: #F5F0E8;
  color: #1A1A1A;
  --ink: #1A1A1A;
  --ink-muted: #5B5548;
  --ink-faint: rgba(26,26,26,0.55);
  --bg-elevated: #FFFFFF;
  --bg-elevated-2: #FBF8F2;
  --border: #E4DCCC;
  --border-soft: rgba(26,26,26,0.08);
  --shadow-card: rgba(26,26,26,0.08);
  --shadow-card-hover: rgba(26,26,26,0.14);
}
.section--white {
  background: #FFFFFF;
  color: #1A1A1A;
  --ink: #1A1A1A;
  --ink-muted: #5A5F66;
  --ink-faint: rgba(26,26,26,0.55);
  --bg-elevated: #F5F6F7;
  --bg-elevated-2: #EFF1F2;
  --border: #E2E5E8;
  --border-soft: rgba(26,26,26,0.08);
  --shadow-card: rgba(26,26,26,0.06);
  --shadow-card-hover: rgba(26,26,26,0.1);
}

/* Divisor interno: separa dos bloques de contenido que comparten un mismo
   fondo, sin cortar la sección ni cambiar de color. */
.block-divider {
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid var(--border-soft);
}
.block-divider--navy { border-top-color: rgba(255,255,255,0.1); }

.section__title {
  font-size: clamp(26px, 4vw, 34px);
  color: var(--ink);
  max-width: 20ch;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.section__title--light { color: var(--ink); max-width: none; }

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

/* ---------- 3-card grid ---------- */
.cards-3 {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 4px 20px var(--shadow-card);
  border: 1px solid var(--border);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), border-color 280ms var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px var(--shadow-card-hover);
  border-color: rgba(43,174,126,0.4);
}
.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
  width: 34px; height: 34px;
  margin-bottom: 18px;
  transition: background 220ms var(--ease), color 220ms var(--ease);
}
.card:hover .card__num { background: var(--accent); color: var(--accent-ink); }
.card h3 {
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 12px;
}
.card p { color: var(--ink-muted); line-height: 1.6; font-size: 15px; }

.card--case { border-top: 2px solid var(--accent); transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), border-top-color 280ms var(--ease); }
.card--case:hover { border-top-color: var(--accent-hover); }
.card__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

/* ==========================================================================
   PROCESS STEPS
   ========================================================================== */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  gap: 16px;
  padding: 14px 12px;
  margin: 0 -12px;
  border-bottom: 1px solid var(--border);
  border-radius: 12px;
  transition: background 240ms var(--ease);
}
.step:hover { background: var(--bg-elevated); }
.step__num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  transition: background 240ms var(--ease), color 240ms var(--ease), transform 240ms var(--ease);
}
.step:hover .step__num { background: var(--accent); color: var(--accent-ink); transform: scale(1.08); }
.step__body h3 { font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.step__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}
.step__body p:last-child { color: var(--ink-muted); line-height: 1.5; font-size: 14px; max-width: 60ch; }

/* Debajo de 900px los pasos son una lista apilada con el borde inferior
   como separador entre filas, así que el último no debe tener uno. Desde
   900px cada paso pasa a ser una tarjeta con borde completo (ver abajo). */
@media (max-width: 899px) {
  .step:last-child { border-bottom: none; }
}

@media (min-width: 900px) {
  .steps { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; gap: 12px 28px; }
  .step { border: 1px solid var(--border); border-radius: 12px; margin: 0; padding: 18px; }
}

/* ==========================================================================
   TIMELINE (urgencia)
   ========================================================================== */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 22px 0 18px;
  padding-left: 24px;
}
.timeline__track {
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.timeline__track-fill {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 0;
  background: var(--accent);
  transition: height 1100ms var(--ease), width 1100ms var(--ease);
}
.js .timeline.is-visible .timeline__track-fill { height: 100%; }
.timeline__item { position: relative; display: flex; align-items: center; gap: 16px; }
.timeline__dot {
  position: absolute;
  left: -24px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg-elevated-2);
  border: 2px solid var(--border);
  transition: background 400ms var(--ease), border-color 400ms var(--ease);
}
.timeline__item--gold .timeline__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(43,174,126,0.18);
}

/* Sin JS (o antes de entrar en pantalla) el único punto encendido es el
   último, como estado final estático. Con JS, los puntos se van encendiendo
   en secuencia a medida que la línea los alcanza, en vez de quedar 3 puntos
   apagados debajo de una línea ya completamente verde. */
.js .timeline.is-visible .timeline__dot {
  background: var(--accent);
  border-color: var(--accent);
}
.js .timeline.is-visible .timeline__item:nth-child(1) .timeline__dot { transition-delay: 0ms; }
.js .timeline.is-visible .timeline__item:nth-child(2) .timeline__dot { transition-delay: 320ms; }
.js .timeline.is-visible .timeline__item:nth-child(3) .timeline__dot { transition-delay: 650ms; }
.js .timeline.is-visible .timeline__item:nth-child(4) .timeline__dot { transition-delay: 950ms; }
.timeline__item p {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}
.timeline__item--gold p { color: var(--accent); }

.urgency__footer {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(18px, 2.6vw, 22px);
  color: var(--ink-faint);
  line-height: 1.5;
}

@media (min-width: 860px) {
  .timeline {
    flex-direction: row;
    align-items: flex-start;
    padding-left: 0;
    gap: 12px;
  }
  /* Los 4 ítems son columnas flex:1 de ancho igual (flex-basis: 0%) con gap
     de 12px, así que el centro del primer y último punto queda siempre a
     ((100% - 3 * 12px) / 4) / 2 = 12.5% - 4.5px del borde del contenedor,
     sin importar el largo del texto de cada ítem. */
  .timeline__track {
    left: calc(12.5% - 4.5px);
    right: calc(12.5% - 4.5px);
    top: 5px; bottom: auto;
    width: auto; height: 2px;
  }
  .timeline__track-fill { height: 100%; width: 0; }
  .js .timeline.is-visible .timeline__track-fill { width: 100%; height: 100%; }
  .timeline__item {
    position: relative;
    z-index: 1;
    flex: 1;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }
  .timeline__dot { position: relative; left: auto; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 20px;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.faq-item:hover { border-color: rgba(43,174,126,0.35); }
.faq-item[open] { background: var(--bg-elevated-2); border-color: rgba(43,174,126,0.35); }
.faq-item p { animation: faq-fade-in 320ms var(--ease); }
@keyframes faq-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item__chevron { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); transition: transform 200ms var(--ease); }
.faq-item[open] .faq-item__chevron { transform: rotate(180deg); }
.faq-item p { padding: 0 0 14px; color: var(--ink-muted); line-height: 1.6; font-size: 14px; }

/* ==========================================================================
   FOOTER — compacto, estilo "abogados": marca + columnas de enlaces
   ========================================================================== */
.site-footer {
  background: #08090B;
  border-top: 1px solid var(--border-soft);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 36px 0 24px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.footer__logo em { font-style: normal; color: var(--accent); }
.footer__tagline {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.footer__desc {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 42ch;
}
.footer__col-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.footer__col { display: flex; flex-direction: column; }
.footer__col a {
  font-size: 13.5px;
  color: var(--ink-muted);
  padding: 5px 0;
  transition: color 150ms;
}
.footer__col a:hover { color: var(--accent); }
.footer__person {
  font-size: 13.5px;
  color: var(--ink);
  padding: 5px 0;
  line-height: 1.5;
}
.footer__person span { display: block; font-size: 12px; color: var(--ink-muted); }

.footer__bottom { border-top: 1px solid var(--border-soft); }
.footer__bottom-inner { padding: 14px 0; }
.footer__bottom-inner p { font-size: 12px; color: var(--ink-muted); }

@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
  }
}

/* ==========================================================================
   STICKY CTA — siempre visible, sin animación de entrada ni de hover
   ========================================================================== */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  display: flex;
  justify-content: center;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(0,0,0,0.4);
}
.sticky-cta .btn { max-width: 640px; width: 100%; }
.sticky-cta .btn:hover { transform: none; }
.sticky-cta .btn .btn__arrow { transition: none; }
.sticky-cta .btn:hover .btn__arrow { transform: none; }

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 16px;
  bottom: calc(var(--sticky-cta-height) + 16px + env(safe-area-inset-bottom));
  z-index: 350;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.whatsapp-float:hover { background: #1ebe5b; transform: scale(1.06); }
.whatsapp-float.is-pulsing { animation: whatsapp-pulse 2s var(--ease); }

@keyframes whatsapp-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* ==========================================================================
   MODAL — Formulario de calificación
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

.modal {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--ink);
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
  padding: 32px 24px 28px;
  animation: modal-up 260ms var(--ease);
}
@keyframes modal-up { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: 20px; }
  .modal { border-radius: 20px; padding: 40px 40px 32px; }
}

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated-2);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.modal__close:hover { background: var(--border); }

.modal__meta {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin: 0 0 14px;
}

.modal__progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.modal__progress-step {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-elevated-2);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: background 200ms, color 200ms;
}
.modal__progress-step.is-active,
.modal__progress-step.is-done { background: var(--accent); color: var(--accent-ink); }
.modal__progress-line { width: 32px; height: 2px; background: var(--border); }

.form-step { display: none; border: none; margin: 0; padding: 0; }
.form-step.is-active { display: block; }

legend {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 20px;
  padding: 0;
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  outline: 2px solid transparent;
  outline-offset: 6px;
  border-radius: 10px;
  transition: outline-color 150ms;
}
.option-grid--stack { grid-template-columns: 1fr; }
.option-grid.is-invalid { outline-color: #D9724B; }

.option-card {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-elevated-2);
  transition: border-color 150ms, background 150ms;
}
.option-card input { position: absolute; opacity: 0; }
.option-card:hover { border-color: var(--accent); }
.option-card:has(input:checked),
.option-card.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.option-card:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }

.field {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 18px 0 8px;
}
.field:first-of-type { margin-top: 0; }
.field__optional { font-weight: 400; color: var(--ink-muted); }
.required { color: #E5A15C; }

.form-privacy-note {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 16px 0 0;
}

.field-honeypot { position: absolute; left: -9999px; top: -9999px; }

.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}
.input:focus { border-color: var(--accent); outline: none; }
.input.is-invalid { border-color: #D9724B; background: rgba(217,114,75,0.08); }

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #E58A67;
  font-size: 13.5px;
  font-weight: 700;
  margin-top: 8px;
  min-height: 1em;
}
.form-error:not(:empty)::before {
  content: '⚠';
  flex-shrink: 0;
}

.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}
.form-nav .btn { flex: 1; }
.form-nav span:empty { flex: 1; }

.form-result {
  text-align: center;
  padding: 12px 0 4px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.form-result.is-active { display: flex; }
.form-result__icon { margin: 0 auto; }
.form-result p { font-size: 16px; line-height: 1.6; color: var(--ink); max-width: 40ch; }
.form-result .btn { min-width: 160px; }

/* Paso de agendamiento: calendario embebido en vez de link externo, así el
   usuario elige día y horario sin salir de la landing. */
.modal--wide { max-width: 520px; }
@media (min-width: 640px) {
  .modal--wide { max-width: 620px; }
}

.form-booking { display: none; flex-direction: column; gap: 14px; text-align: center; }
.form-booking.is-active { display: flex; }
.form-booking__title { font-size: 16px; line-height: 1.5; color: var(--ink); }
.form-booking__frame-wrap {
  position: relative;
  width: 100%;
  min-height: 480px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-elevated-2);
}
.form-booking__frame { width: 100%; height: 480px; border: 0; display: block; }
@media (min-width: 640px) {
  .form-booking__frame-wrap, .form-booking__frame { height: 560px; }
}
.form-booking__fallback { font-size: 13px; color: var(--ink-muted); }
.form-booking__fallback a { color: var(--accent); font-weight: 700; }

/* Spinner mientras carga el iframe de Calendly: se oculta con .is-hidden
   apenas dispara el evento "load" (ver showBookingStep en main.js). */
.form-booking__loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--bg-elevated-2);
  color: var(--ink-muted);
  font-size: 13px;
  transition: opacity 200ms var(--ease);
}
.form-booking__loading.is-hidden { opacity: 0; pointer-events: none; }
.form-booking__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: form-booking-spin 800ms linear infinite;
}
@keyframes form-booking-spin { to { transform: rotate(360deg); } }
