/* ============================================================
   MOTOESCUELA QUITO — Hoja de estilos
   ============================================================ */

/* ---------- Reset básico ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea { font: inherit; }

/* ---------- Tokens de diseño ---------- */
:root {
  /* Marca */
  --wine: #591E23;
  --wine-2: #3c1418;
  --wine-light: #7a2c34;
  --crimson: #A60F37;
  --crimson-light: #c41643;
  --red: #8C0F31;
  --gold: #D9A05B;
  --gold-light: #eab876;
  --cream: #FCFEF9;
  --cream-alt: #F6EEE7;

  /* Superficies / texto */
  --ink: #241016;
  --ink-soft: #6a4b50;
  --ink-faint: #9c7f83;
  --line: #E8DCD3;
  --on-dark: #FDF7F1;
  --on-dark-soft: #d8bcc0;

  --bg: var(--cream);
  --surface: #ffffff;
  --surface-alt: var(--cream-alt);

  /* Tipografía */
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;

  /* Espaciado / forma */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --radius-pill: 999px;
  --container: 1220px;

  /* Sombra (tintada de vino, no negro puro) */
  --shadow-sm: 0 2px 10px rgba(89, 30, 35, .10);
  --shadow-md: 0 14px 34px rgba(89, 30, 35, .16);
  --shadow-lg: 0 26px 60px rgba(89, 30, 35, .22);

  /* Movimiento */
  --ease: cubic-bezier(.16, .84, .44, 1);
  --dur-fast: 180ms;
  --dur: 340ms;
  --dur-slow: 700ms;

  --header-h: 76px;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: .2px;
}

em { font-style: normal; color: var(--crimson); }

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

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

@media (min-width: 768px) { .container { padding-inline: 32px; } }
@media (min-width: 1280px) { .container { padding-inline: 40px; } }

/* ---------- Accesibilidad ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--wine);
  color: var(--on-dark);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Barra de progreso de scroll ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--crimson));
  z-index: 1001;
  transition: width 80ms linear;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { flex-shrink: 0; }

.btn--primary {
  background: linear-gradient(135deg, var(--crimson-light), var(--crimson) 55%, var(--red));
  color: var(--on-dark);
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { box-shadow: var(--shadow-lg); }

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

.btn--outline {
  background: transparent;
  color: var(--crimson);
  border-color: var(--crimson);
}
.btn--outline:hover { background: var(--crimson); color: var(--on-dark); }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--wine-2);
  box-shadow: 0 14px 34px rgba(217, 160, 91, .35);
}
.btn--gold:hover { box-shadow: 0 20px 44px rgba(217, 160, 91, .5); }

.btn--lg { padding: 17px 32px; font-size: 16px; }
.btn--sm { padding: 11px 20px; font-size: 13px; }
.btn--block { width: 100%; }

/* ============================================================
   ENCABEZADO / NAVEGACIÓN
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), height var(--dur) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(252, 254, 249, .92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  height: 68px;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 46px; width: auto; border-radius: 6px; transition: height var(--dur) var(--ease); }
.site-header.is-scrolled .brand__logo { height: 40px; }

.nav__list {
  display: none;
}

.nav__cta { display: none; }

@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: 28px; }
  .nav__list {
    display: flex;
    align-items: center;
    gap: 28px;
  }
  .nav__link {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15.5px;
    letter-spacing: .3px;
    color: var(--ink);
    position: relative;
    padding-block: 6px;
  }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0%; height: 2px;
    background: var(--crimson);
    transition: width var(--dur) var(--ease);
  }
  .nav__link:hover::after { width: 100%; }
  .header__cta { display: none; }
  .nav__cta { display: inline-flex; }
}

.header__actions { display: flex; align-items: center; gap: 14px; }
.header__cta { display: none; }
@media (min-width: 560px) { .header__cta { display: inline-flex; } }
@media (min-width: 1024px) { .header__actions .header__cta { display: none; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  color: var(--wine);
  background: rgba(89, 30, 35, .06);
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(36, 16, 22, .55);
  backdrop-filter: blur(2px);
  z-index: 400;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.nav-overlay.is-open { opacity: 1; }

@media (max-width: 1023.98px) {
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(340px, 86vw);
    background: var(--wine);
    z-index: 450;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 32px;
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .nav__link {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--on-dark);
    padding: 12px 4px;
    border-bottom: 1px solid rgba(253, 247, 241, .12);
  }
  .nav__cta { margin-top: 20px; width: 100%; justify-content: center; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--cream);
}

.hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero__road {
  position: absolute;
  left: -10%; right: -10%; bottom: -60px;
  height: clamp(140px, 20vh, 220px);
  background: var(--wine);
  transform: skewY(-3.4deg);
  transform-origin: left bottom;
}
.hero__road::before {
  content: "";
  position: absolute;
  top: 34%; left: 0; right: 0;
  height: 5px;
  background-image: repeating-linear-gradient(90deg, var(--gold) 0 46px, transparent 46px 84px);
  opacity: .85;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
}
.hero__glow--1 { width: 480px; height: 480px; top: -140px; right: -120px; background: var(--gold); }
.hero__glow--2 { width: 360px; height: 360px; bottom: 0; left: -120px; background: var(--crimson); opacity: .2; }

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  padding-block: 56px 140px;
}

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 32px; }
}

.hero__title {
  font-size: clamp(2.6rem, 6.4vw, 4.6rem);
  color: var(--ink);
}
.hero__title-accent {
  color: var(--crimson);
  font-style: normal;
}

.hero__lead {
  margin-top: 22px;
  max-width: 54ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--ink-soft);
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__chips {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wine);
  box-shadow: var(--shadow-sm);
}
.hero__chip .icon { color: var(--crimson); }

.hero__visual { position: relative; }
.hero__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin-inline: auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, var(--wine-light) 0%, var(--wine) 58%, var(--wine-2) 100%);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: center;
}
.hero__stage::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1.5px dashed rgba(217, 160, 91, .45);
  animation: spin 40s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .hero__stage::before { animation: none; } }

.hero__vehicle {
  position: absolute;
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, .4));
  width: 72%;
}
.hero__vehicle--moto {
  top: 8%; left: 50%;
  transform: translateX(-50%);
  width: 62%;
  animation: float-y 5.5s ease-in-out infinite;
}
.hero__vehicle--auto {
  bottom: 6%; left: 50%;
  transform: translateX(-50%);
  width: 78%;
  animation: float-y 6.5s ease-in-out infinite reverse;
}
@media (prefers-reduced-motion: reduce) { .hero__vehicle--moto, .hero__vehicle--auto { animation: none; } }

@keyframes float-y {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero__ring {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
  color: var(--wine-2);
  background: var(--gold);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
}
.hero__ring--a { top: 4%; right: 2%; }
.hero__ring--b { bottom: 4%; left: 0%; }

.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  color: var(--wine);
  opacity: .7;
  animation: bob 2.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .hero__scroll-cue { animation: none; } }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
@media (max-width: 640px) { .hero__scroll-cue { display: none; } }

/* ============================================================
   CINTA / MARQUEE
   ============================================================ */
.ticker {
  background: var(--wine-2);
  overflow: hidden;
  padding-block: 14px;
  border-block: 1px solid rgba(217, 160, 91, .25);
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 14px;
  animation: ticker-scroll 34s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .ticker__track { animation-duration: 90s; } }
.ticker__item {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--on-dark-soft);
  white-space: nowrap;
}
.ticker__dot { color: var(--gold); }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECCIONES / ENCABEZADOS DE SECCIÓN
   ============================================================ */
.section { padding-block: 92px; }

.section__head { max-width: 680px; margin-bottom: 52px; }
.section__title {
  font-size: clamp(2rem, 4.4vw, 3rem);
}
.section__title--light { color: var(--on-dark); }
.section__lead {
  margin-top: 16px;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.section__lead--light { color: var(--on-dark-soft); }
.section__head--light .section__title { color: var(--on-dark); }

/* ============================================================
   SERVICIOS
   ============================================================ */
.services {
  display: grid;
  gap: 28px;
}
@media (min-width: 760px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .services { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.service-card--featured { border-color: var(--crimson); }
@media (min-width: 1100px) {
  .service-card--featured { transform: translateY(-14px); }
  .service-card--featured:hover { transform: translateY(-20px); }
}

.service-card__media {
  aspect-ratio: 4 / 3;
  background: radial-gradient(ellipse at 50% 32%, var(--wine-light) 0%, var(--wine) 68%, var(--wine-2) 100%);
  display: grid;
  place-items: center;
  padding: 20px;
}
.service-card__media img { width: 88%; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .38)); }

.service-card__body { padding: 28px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.service-card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--surface-alt);
  color: var(--crimson);
  margin-bottom: 16px;
}
.service-card__title { font-size: 1.5rem; margin-bottom: 10px; }
.service-card__text { color: var(--ink-soft); font-size: .96rem; margin-bottom: 18px; }

.service-card__list { margin-bottom: 22px; display: flex; flex-direction: column; gap: 10px; }
.service-card__list li {
  display: flex; align-items: center; gap: 10px;
  font-size: .92rem; color: var(--ink);
}
.service-card__list .icon { color: var(--gold); flex-shrink: 0; }

.service-card__price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.service-card__price-old {
  text-decoration: line-through;
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.service-card__price-new {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--crimson);
}
.service-card__price-tag {
  width: 100%;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ink-faint);
}

/* ============================================================
   POR QUÉ ELEGIRNOS
   ============================================================ */
.why {
  background: linear-gradient(180deg, var(--wine-2), var(--wine) 55%, var(--wine-2));
  padding-block: 96px;
  position: relative;
}

.why__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 860px) {
  .why__grid { grid-template-columns: 40px 1fr; gap: 40px; }
}

.why__rail { display: none; }
@media (min-width: 860px) {
  .why__rail { display: block; position: relative; }
  .why__line {
    position: sticky;
    top: calc(var(--header-h) + 40px);
    width: 4px;
    height: min(420px, 56vh);
    margin-inline: auto;
    background: rgba(253, 247, 241, .12);
    border-radius: var(--radius-pill);
    overflow: hidden;
  }
  .why__line-fill {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--gold), var(--crimson-light));
    border-radius: var(--radius-pill);
    transition: height var(--dur) var(--ease);
  }
}

.why__panels { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 860px) { .why__panels { gap: 26px; } }

.why__panel {
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  background: rgba(253, 247, 241, .04);
  border: 1px solid rgba(253, 247, 241, .1);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.why__panel.is-active {
  background: rgba(253, 247, 241, .08);
  border-color: rgba(217, 160, 91, .4);
}
@media (min-width: 860px) {
  .why__panel { opacity: .55; transform: translateX(6px); }
  .why__panel.is-active { opacity: 1; transform: translateX(0); }
}

.why__index {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}
.why__icon { color: var(--gold); margin-block: 12px 14px; }
.why__title { color: var(--on-dark); font-size: 1.5rem; margin-bottom: 10px; }
.why__text { color: var(--on-dark-soft); max-width: 56ch; }

/* ============================================================
   GALERÍA
   ============================================================ */
.gallery { position: relative; padding-block: 6px; }
.gallery__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: 20px;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .gallery__track { padding-inline: 32px; } }
@media (min-width: 1280px) { .gallery__track { padding-inline: calc((100vw - var(--container)) / 2 + 40px); } }

.gallery__item {
  position: relative;
  flex: 0 0 auto;
  width: min(78vw, 420px);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  background: linear-gradient(0deg, rgba(36, 16, 22, .82), transparent);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .3px;
  font-size: 15px;
}

.gallery__controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}
.gallery__btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--wine);
  box-shadow: var(--shadow-sm);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.gallery__btn:hover { background: var(--crimson); color: var(--on-dark); }

/* ============================================================
   AULA VIRTUAL
   ============================================================ */
.virtual {
  position: relative;
  padding-block: 100px;
  overflow: hidden;
  color: var(--on-dark);
}
.virtual__bg {
  position: absolute; inset: 0;
  background: radial-gradient(1100px 500px at 15% 10%, var(--wine-light) 0%, transparent 60%), var(--wine-2);
  z-index: -1;
}

.virtual__grid {
  display: grid;
  gap: 52px;
  align-items: center;
}
@media (min-width: 960px) { .virtual__grid { grid-template-columns: 1.05fr .95fr; } }

.virtual__list { margin: 28px 0 32px; display: grid; gap: 14px; }
.virtual__list li {
  display: flex; align-items: center; gap: 12px;
  font-size: 1rem; color: var(--on-dark);
}
.virtual__list .icon { color: var(--gold); }

.virtual__actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.virtual__note { font-size: .82rem; color: var(--on-dark-soft); }

.browser-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 460px;
  margin-inline: auto;
}
.browser-card__bar {
  display: flex; gap: 7px;
  padding: 14px 16px;
  background: var(--surface-alt);
}
.browser-card__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-card__bar span:first-child { background: var(--crimson); }

.browser-card__body { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.browser-card__row { display: flex; align-items: center; }
.browser-card__row--play { gap: 14px; }
.browser-card__play {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--crimson);
  color: var(--on-dark);
}
.browser-card__lines { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.line { display: block; height: 9px; border-radius: var(--radius-pill); background: var(--surface-alt); }
.line--40 { width: 40%; } .line--50 { width: 50%; } .line--60 { width: 60%; }
.line--70 { width: 70%; } .line--80 { width: 80%; }

.browser-card__progress {
  width: 100%; height: 9px;
  border-radius: var(--radius-pill);
  background: var(--surface-alt);
  overflow: hidden;
}
.browser-card__progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--crimson));
  border-radius: var(--radius-pill);
  animation: grow-bar 2.4s var(--ease) infinite alternate;
}
@media (prefers-reduced-motion: reduce) { .browser-card__progress span { animation: none; } }
@keyframes grow-bar {
  from { width: 30%; } to { width: 72%; }
}

/* ============================================================
   PROCESO / RUTA
   ============================================================ */
.route { position: relative; display: grid; gap: 40px; }

.route__line {
  position: relative;
  width: 4px;
  margin-inline: 26px;
  background: var(--line);
  border-radius: var(--radius-pill);
  display: none;
}
.route__line-fill {
  width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--gold), var(--crimson));
  border-radius: var(--radius-pill);
  transition: height 120ms linear;
}
.route__marker {
  position: absolute;
  left: 50%;
  top: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--on-dark);
  display: grid; place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: var(--shadow-md);
  transition: top 120ms linear;
}

@media (min-width: 760px) {
  .route { grid-template-columns: 60px 1fr; }
  .route__line { display: block; grid-row: 1 / -1; grid-column: 1; height: 100%; }
  .route__step { grid-column: 2; }
}

.route__step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 30px 32px;
  box-shadow: var(--shadow-sm);
}
.route__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--crimson);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.route__title { font-size: 1.4rem; margin-bottom: 8px; }
.route__text { color: var(--ink-soft); max-width: 60ch; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contact { padding-block: 100px; background: var(--surface-alt); }
.contact__grid {
  display: grid;
  gap: 44px;
}
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1.1fr .9fr; align-items: start; } }

.contact__list { margin-top: 34px; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--crimson);
  box-shadow: var(--shadow-sm);
}
.contact__list strong { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 2px; }
.contact__list span { color: var(--ink-soft); font-size: .95rem; }

.contact__social { margin-top: 34px; display: flex; align-items: center; gap: 12px; }
.contact__social-label { font-family: var(--font-display); font-weight: 600; margin-right: 4px; color: var(--ink-soft); font-size: .9rem; text-transform: uppercase; letter-spacing: .4px; }

.social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--wine);
  border: 1px solid var(--line);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.social-btn:hover { background: var(--crimson); color: var(--on-dark); transform: translateY(-3px); }
.social-btn--sm { width: 38px; height: 38px; background: rgba(253, 247, 241, .08); color: var(--on-dark); border-color: rgba(253, 247, 241, .18); }
.social-btn--sm:hover { background: var(--crimson); }

.contact__card {
  background: linear-gradient(160deg, var(--wine-light), var(--wine) 60%, var(--wine-2));
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.contact__card-logo { width: 150px; margin-inline: auto 16px; margin-bottom: 20px; border-radius: 10px; }
.contact__card-title { font-size: 1.6rem; margin-bottom: 10px; color: var(--on-dark); }
.contact__card-text { color: var(--on-dark-soft); margin-bottom: 26px; }
.contact__card-note { display: block; margin-top: 14px; font-size: .78rem; color: var(--on-dark-soft); opacity: .8; }

/* ============================================================
   PIE DE PÁGINA
   ============================================================ */
.site-footer { background: var(--wine-2); color: var(--on-dark-soft); padding-top: 76px; }
.footer__grid {
  display: grid;
  gap: 44px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(253, 247, 241, .1);
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }

.footer__logo { width: 168px; margin-bottom: 18px; border-radius: 10px; }
.footer__brand p { max-width: 42ch; font-size: .92rem; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }

.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { color: var(--on-dark); font-size: 1.05rem; margin-bottom: 4px; }
.footer__col a, .footer__col span { font-size: .92rem; color: var(--on-dark-soft); }
.footer__col a:hover { color: var(--gold); }

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  padding-block: 22px;
  font-size: .82rem;
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(37, 211, 102, .45);
  transition: transform var(--dur-fast) var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse-ring 2.4s var(--ease) infinite;
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float__ring { animation: none; } }
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ============================================================
   AVISO EMERGENTE (enlaces de demostración)
   ============================================================ */
.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translate(-50%, 12px);
  background: var(--wine-2);
  color: var(--on-dark);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: .88rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.demo-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   ANIMACIONES DE APARICIÓN (SCROLL REVEAL)
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal="up"] { transform: translateY(34px); }
[data-reveal="left"] { transform: translateX(-34px); }
[data-reveal="scale"] { transform: scale(.92); }
[data-reveal].is-visible { opacity: 1; transform: none; }

.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   UTILIDADES RESPONSIVE FINAS
   ============================================================ */
@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .why { padding-block: 64px; }
  .virtual { padding-block: 70px; }
  .contact { padding-block: 70px; }
  .hero__actions .btn { flex: 1 1 auto; }
}
