/* ============================================================
   Mexalink — hoja de estilos principal
   Paleta: azul tinta + latón. Tipografía: Archivo / Inter.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --ink:        #0A1726;
  --ink-2:      #0E2035;
  --ink-3:      #16324F;
  --paper:      #F8F7F4;
  --paper-2:    #EFECE5;
  --white:      #FFFFFF;

  --brass:      #B4832F;
  --brass-2:    #D8B173;
  --brass-soft: rgba(180, 131, 47, .12);

  --text:       #132234;
  --muted:      #5A6B7C;
  --on-dark:    #E8EDF3;
  --on-dark-mut:#94A8BD;

  --line:       #DEDACF;
  --line-dark:  rgba(255, 255, 255, .13);

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);

  --r-sm: 2px;
  --r-md: 4px;

  --ease: cubic-bezier(.22, .61, .36, 1);

  --f-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

::selection { background: var(--brass); color: #fff; }

/* ---------- 3. Utilidades de layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(72px, 10vw, 132px); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }

.section--dark {
  background: var(--ink);
  color: var(--on-dark);
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.section--paper2 { background: var(--paper-2); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--ink);
  color: #fff;
  padding: 14px 22px;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- 4. Tipografía de composición ---------- */
.eyebrow {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .38;
  max-width: 90px;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::before {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: .38;
  max-width: 90px;
}

.h-xl { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.h-lg { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
.h-md { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.h-sm { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -.012em; }

.lead {
  font-size: clamp(1.03rem, 1.4vw, 1.2rem);
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.66;
}
.section--dark .lead { color: var(--on-dark-mut); }

.accent { color: var(--brass); }
.section--dark .accent { color: var(--brass-2); }

/* ---------- 5. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--f-body);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 15px; height: 15px; flex: none; }

.btn--primary { background: var(--brass); color: #fff; }
.btn--primary:hover { background: #9C7028; }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-3); }

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

.btn--ghost-light {
  border-color: var(--line-dark);
  color: var(--white);
  background: transparent;
}
.btn--ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- 6. Encabezado / navegación ---------- */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease),
              border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 86px;
}
.hdr.is-stuck {
  background: rgba(10, 23, 38, .95);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line-dark);
}
.hdr.is-stuck .hdr__inner { min-height: 70px; }

/* páginas de contenido claro: barra sólida desde el inicio */
.hdr--solid { background: var(--ink); border-bottom-color: var(--line-dark); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  flex: none;
}
.logo__mark { width: 26px; height: 15px; color: var(--brass-2); }
.logo__word {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1;
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  padding: 10px 15px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--on-dark-mut);
  position: relative;
  transition: color .2s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link[aria-current="page"] { color: #fff; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 2px;
  height: 1.5px;
  background: var(--brass-2);
}

.hdr__cta { display: flex; align-items: center; gap: 20px; flex: none; }
.hdr__tel {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  color: #fff;
}
.hdr__tel b { font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.hdr__tel span { font-size: 11.5px; color: var(--on-dark-mut); }
.hdr .btn { padding: 12px 20px; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  cursor: pointer;
  padding: 0;
  place-items: center;
  color: #fff;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  margin: 3px auto;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 1080px) {
  .hdr__cta .hdr__tel { display: none; }
}

@media (max-width: 900px) {
  .burger { display: grid; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--ink);
    padding: 108px var(--gut) 40px;
    transform: translateX(100%);
    transition: transform .38s var(--ease);
    overflow-y: auto;
    margin: 0;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: 20px 0;
    font-family: var(--f-display);
    font-size: 26px;
    font-weight: 500;
    border-bottom: 1px solid var(--line-dark);
    color: var(--white);
  }
  .nav__link[aria-current="page"] { color: var(--brass-2); }
  .nav__link[aria-current="page"]::after { display: none; }
  .hdr__cta .btn { display: none; }
  body.nav-open { overflow: hidden; }
}

/* ---------- 7. Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
  padding-top: clamp(140px, 17vw, 190px);
  padding-bottom: clamp(60px, 8vw, 96px);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90ch 60ch at 78% 12%, rgba(22, 50, 80, .82), transparent 62%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.028) 0 1px, transparent 1px 7px);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  color: #fff;
  font-weight: 600;
  margin-bottom: 26px;
}
.hero .lead { margin-bottom: 34px; max-width: 46ch; }
.hero__note {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 14.5px;
  color: var(--on-dark-mut);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.hero__note b {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--brass-2);
  letter-spacing: -.01em;
}

/* panel de ruta (arte generado, sustituible por fotografía) */
.routecard {
  border: 1px solid var(--line-dark);
  background: linear-gradient(168deg, rgba(22,50,80,.55), rgba(10,23,38,.2));
  padding: 34px clamp(24px, 3vw, 38px) 30px;
}
.routecard__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin-bottom: 26px;
}
.route { list-style: none; margin: 0; padding: 0; }
.route li {
  position: relative;
  padding: 0 0 22px 30px;
  font-size: 15.5px;
  color: var(--on-dark);
}
.route li:last-child { padding-bottom: 0; }
.route li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--brass-2);
  border-radius: 50%;
  background: var(--ink);
}
.route li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  bottom: 2px;
  width: 1px;
  background: var(--line-dark);
}
.route li:last-child::after { display: none; }
.route li span {
  display: block;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-dark-mut);
  margin-top: 2px;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .routecard { order: -1; }
}

/* ---------- 8. Cabecera de página interna ---------- */
.pagehead {
  background: var(--ink);
  color: var(--on-dark);
  padding-top: clamp(140px, 16vw, 180px);
  padding-bottom: clamp(56px, 7vw, 82px);
  position: relative;
  overflow: hidden;
}
.pagehead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.028) 0 1px, transparent 1px 7px);
}
.pagehead > .wrap { position: relative; }
.pagehead h1 { color: #fff; margin-bottom: 18px; }
.crumbs {
  font-size: 13px;
  color: var(--on-dark-mut);
  display: flex;
  gap: 9px;
  align-items: center;
}
.crumbs a:hover { color: #fff; }
.crumbs span { opacity: .45; }

/* ---------- 9. Encabezado de sección ---------- */
.shead { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 64px); }
.shead--center { margin-inline: auto; text-align: center; }
.shead h2 { margin-bottom: 20px; }

/* ---------- 10. Servicios (lista editorial numerada) ---------- */
.svc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.svc__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  padding: 34px 30px 34px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .3s var(--ease);
}
.svc__item:nth-child(odd) { padding-right: 44px; }
.svc__item:nth-child(even) { padding-left: 44px; }
.svc__item:nth-child(even)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: -1px;
  width: 1px;
  background: var(--line);
}
.svc__item:hover { background: var(--brass-soft); }
.svc__num {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--brass);
  padding-top: 6px;
}
.svc__item h3 { margin-bottom: 9px; }
.svc__item p { font-size: 15.5px; color: var(--muted); margin: 0; max-width: 42ch; }
.svc__item .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.svc__item .more svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.svc__item:hover .more svg { transform: translateX(4px); }
.svc__item .stretch::after { content: ""; position: absolute; inset: 0; }

@media (max-width: 780px) {
  .svc { grid-template-columns: 1fr; }
  .svc__item,
  .svc__item:nth-child(odd),
  .svc__item:nth-child(even) { padding: 28px 0; }
  .svc__item:nth-child(even)::before { display: none; }
}

/* ---------- 11. Cobertura + cifras ---------- */
.cover__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.cities {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 32px;
}
.cities li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 15.5px;
  break-inside: avoid;
  display: flex;
  align-items: center;
  gap: 11px;
}
.cities li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--brass-2);
  border-radius: 50%;
  flex: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(48px, 6vw, 76px);
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
.stats div { background: var(--ink); padding: 30px clamp(18px, 2.4vw, 32px); }
.stats b {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--brass-2);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats span {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--on-dark-mut);
}

@media (max-width: 780px) {
  .cover__grid { grid-template-columns: 1fr; }
  .cities { columns: 1; }
  .stats { grid-template-columns: 1fr; }
}

/* ---------- 12. Flota ---------- */
.fleet {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}
.fleet__card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.fleet__media {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(150deg, var(--paper-2), #E3DFD6);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.fleet__media svg { width: 62%; height: auto; color: #A9A093; }
.fleet__body { padding: 26px clamp(20px, 2vw, 28px) 28px; flex: 1; }
.fleet__body h3 { margin-bottom: 4px; }
.fleet__kicker {
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 600;
  margin-bottom: 14px;
}
.spec { list-style: none; margin: 0; padding: 0; }
.spec li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.spec li:last-child { border-bottom: 0; padding-bottom: 0; }
.spec dt, .spec .k { color: var(--muted); }
.spec .v { font-weight: 600; text-align: right; }

@media (max-width: 900px) { .fleet { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .fleet { grid-template-columns: 1fr; } }

/* ---------- 13. Pasos ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  counter-reset: step;
}
.steps__item { border-top: 2px solid var(--ink); padding-top: 24px; }
.section--dark .steps__item { border-top-color: var(--brass-2); }
.steps__num {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--brass);
  display: block;
  margin-bottom: 14px;
}
.steps__item h3 { margin-bottom: 10px; }
.steps__item p { font-size: 15.5px; color: var(--muted); }
.section--dark .steps__item p { color: var(--on-dark-mut); }

@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* ---------- 14. Pestañas (Nosotros) ---------- */
.tabs__nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tabs__btn {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 14px 20px;
  margin-bottom: -1px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.tabs__btn:hover { color: var(--text); }
.tabs__btn[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brass); }
.tabs__panel[hidden] { display: none; }
.tabs__panel p {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  color: var(--muted);
  max-width: 68ch;
  line-height: 1.72;
}

/* ---------- 15. Acordeón (FAQ) ---------- */
.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 44px 26px 0;
  position: relative;
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight: 500;
  letter-spacing: -.012em;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brass); }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-right: 1.5px solid var(--brass);
  border-bottom: 1.5px solid var(--brass);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq__a { padding: 0 44px 28px 0; color: var(--muted); max-width: 72ch; }

/* ---------- 16. Formularios ---------- */
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.field label .req { color: var(--brass); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 15.5px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px var(--brass-soft);
}
.field input::placeholder, .field textarea::placeholder { color: #9CA7B2; }

.check {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.check input { width: 17px; height: 17px; margin-top: 2px; flex: none; accent-color: var(--brass); }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

.form__msg {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--brass);
  background: var(--brass-soft);
  font-size: 14.5px;
}
.form__msg[hidden] { display: none; }
.form__msg.is-error { border-left-color: #B3261E; background: rgba(179, 38, 30, .08); }

@media (max-width: 640px) { .form__grid { grid-template-columns: 1fr; } }

/* panel de formulario sobre fondo oscuro */
.formpanel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(28px, 3.4vw, 44px);
}
.formpanel h2 { margin-bottom: 8px; }
.formpanel > p { color: var(--muted); margin-bottom: 28px; }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 4.5vw, 68px);
  align-items: start;
}
@media (max-width: 900px) { .contact__grid { grid-template-columns: 1fr; } }

.infolist { list-style: none; margin: 0; padding: 0; }
.infolist li { padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.infolist .k {
  display: block;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin-bottom: 7px;
  font-weight: 600;
}
.infolist .v { font-size: 16px; line-height: 1.55; }
.infolist a:hover { color: var(--brass-2); }

/* ---------- 17. Banda CTA ---------- */
.cta {
  background: var(--ink-2);
  color: #fff;
  padding-block: clamp(56px, 7vw, 88px);
  border-top: 1px solid var(--line-dark);
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.rotator {
  color: var(--brass-2);
  display: inline-block;
  min-width: 6ch;
}
.rotator span { display: inline-block; }
.rotator.is-swap span { animation: swap .45s var(--ease); }
@keyframes swap {
  0%   { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: none; }
}

/* ---------- 18. Pie ---------- */
.ftr {
  background: var(--ink);
  color: var(--on-dark-mut);
  padding-block: clamp(56px, 7vw, 84px) 0;
  font-size: 15px;
}
.ftr__grid {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 60px);
}
.ftr h3 {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
}
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin-bottom: 11px; }
.ftr a:hover { color: #fff; }
.ftr__brand .logo { margin-bottom: 20px; }
.ftr__brand p { max-width: 34ch; font-size: 14.5px; line-height: 1.6; }
.ftr__social { display: flex; gap: 10px; }
.ftr__social a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.ftr__social a:hover { background: #fff; color: var(--ink); }
.ftr__social svg { width: 17px; height: 17px; }

.ftr__legal {
  border-top: 1px solid var(--line-dark);
  padding-block: 26px 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}
.ftr__legal nav { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 900px) { .ftr__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ftr__grid { grid-template-columns: 1fr; } }

/* ---------- 19. Botones flotantes ---------- */
.float {
  position: fixed;
  right: clamp(14px, 2vw, 26px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.float a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 22px rgba(10, 23, 38, .26);
  transition: transform .25s var(--ease);
}
.float a:hover { transform: translateY(-3px); }
.float svg { width: 24px; height: 24px; }
.float__wa { background: #25D366; }
.float__tel { background: var(--ink); }

/* ---------- 20. Prosa (aviso de privacidad) ---------- */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 9px; }
.prose strong { color: var(--text); }
.prose .note {
  border-left: 3px solid var(--brass);
  background: var(--brass-soft);
  padding: 16px 18px;
  font-size: 15px;
}

/* ---------- 21. Revelado al hacer scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 22. Error 404 ---------- */
.err { text-align: center; padding-block: clamp(90px, 14vw, 170px); }
.err__code {
  font-family: var(--f-display);
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 700;
  line-height: .85;
  color: var(--brass);
  letter-spacing: -.045em;
  margin-bottom: 22px;
}
.err .btn-row { justify-content: center; margin-top: 32px; }

/* ---------- 23. Detalle de servicio ---------- */
.svcdetail {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.55fr);
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(38px, 4.5vw, 58px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.svcdetail:last-child { border-bottom: 1px solid var(--line); }
.svcdetail__num {
  display: block;
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--brass);
  margin-bottom: 12px;
}
.svcdetail__body > .lead { margin-bottom: 22px; max-width: 60ch; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding: 9px 0 9px 28px;
  font-size: 15.5px;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 11px;
  height: 6px;
  border-left: 1.8px solid var(--brass);
  border-bottom: 1.8px solid var(--brass);
  transform: rotate(-45deg);
}

@media (max-width: 780px) {
  .svcdetail { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- 24. Correcciones de contraste ---------- */

/* El panel blanco vive dentro de .section--dark: hay que devolverle
   el color de texto claro, si no los títulos y etiquetas quedan
   blanco sobre blanco. */
.formpanel { color: var(--text); }
.section--dark .formpanel h2,
.section--dark .formpanel h3,
.section--dark .formpanel label { color: var(--text); }
.section--dark .formpanel .lead { color: var(--muted); }

/* El botón flotante de teléfono desaparecía sobre el fondo azul tinta. */
.float__tel { background: var(--brass); }
.float__tel:hover { background: #9C7028; }

/* Enlaces de la lista de datos sobre fondo claro. */
.section:not(.section--dark) .infolist a:hover { color: var(--brass); }

/* ---------- 25. Reservas ---------- */

/* El primer diálogo del sitio. La mecánica de abrir y cerrar es la
   misma del menú móvil: clase .is-open, transform en vez de display
   y bloqueo del scroll del body. Lo que se añade aquí es la trampa
   de foco, porque esto sí es un role="dialog". */

/* El botón Reservar de la portada vive dentro de una tarjeta que es
   toda clicable (.svc__item .stretch::after cubre la tarjeta entera).
   Sin este z-index el clic nunca llega al botón. */
.svc__item .btn--reservar,
.svcdetail .btn--reservar {
  position: relative;
  z-index: 1;
}

.svc__item .btn--reservar {
  margin-top: 16px;
  padding: 11px 18px;
  font-size: 13.5px;
}

.svcdetail .btn-row { margin-top: 26px; }

/* ---- Capa y panel ---- */
.rsv {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(12px, 4vh, 48px) var(--gut);
  background: rgba(10, 23, 38, .68);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.rsv.is-open { opacity: 1; visibility: visible; }

.rsv__panel {
  width: 100%;
  max-width: 720px;
  max-height: 100%;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  padding: clamp(24px, 3.4vw, 40px);
  transform: translateY(14px);
  transition: transform .3s var(--ease);
}
.rsv.is-open .rsv__panel { transform: none; }

/* ---- Encabezado ---- */
.rsv__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 6px;
}
.rsv__eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 10px;
}
.rsv__head h2 { margin: 0; }
.rsv__sub { color: var(--muted); margin: 10px 0 0; font-size: 15.5px; }

.rsv__close {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  color: var(--text);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.rsv__close:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.rsv__close svg { width: 15px; height: 15px; }

/* ---- Pasos ---- */
.rsv__steps {
  display: flex;
  gap: 26px;
  margin: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}
.rsv__step {
  background: none;
  border: 0;
  padding: 0 0 14px;
  cursor: default;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.rsv__step[aria-selected="true"] { color: var(--brass); border-bottom-color: var(--brass); }

/* ---- Estimado ---- */
.rsv__precio {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--brass-soft);
  border-left: 3px solid var(--brass);
}
.rsv__monto {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -.022em;
  color: var(--ink);
  display: block;
}
.rsv__detalle {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}
.rsv__nota {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---- Tramos del trip planner ---- */
.rsv__tramo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.rsv__tramo-quitar {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  width: 42px;
  height: 44px;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.rsv__tramo-quitar:hover { border-color: #B3261E; color: #B3261E; }

/* ---- Confirmación ---- */
.rsv__ok { text-align: center; padding: 18px 0 6px; }
.rsv__folio {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--brass);
  margin: 18px 0 6px;
}

/* ---- La trampa para bots. Nunca visible para una persona. ---- */
.rsv__trampa {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* .field trae display:flex, que le gana al display:none que el
   navegador aplica por el atributo [hidden]. Sin esta regla los
   campos de regreso siguen viéndose en un viaje sencillo. */
.field[hidden],
.rsv__tramo[hidden],
.rsv [hidden] { display: none; }

/* ---- Controles que el sitio todavía no tenía ---- */

/* El <select> nativo traía la flecha del sistema operativo. Se le
   pone la misma escuadra girada que usa el acordeón de preguntas. */
.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brass) 50%),
    linear-gradient(135deg, var(--brass) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% + 2px),
    calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* Los campos de fecha y hora se dibujan más altos que un input de
   texto en Chrome. Se igualan a mano. */
.field input[type="date"],
.field input[type="time"] {
  padding-block: 12px;
  min-height: 46px;
}
.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: .5;
  cursor: pointer;
}
.field input[type="date"]::-webkit-calendar-picker-indicator:hover,
.field input[type="time"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* Sin flechitas en el contador de pasajeros. */
.field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* El JS ya deshabilitaba el botón al enviar, pero no se notaba. */
.btn:disabled { opacity: .55; cursor: default; }
.btn:disabled:hover { transform: none; }

@media (max-width: 640px) {
  .rsv { padding: 0; }
  .rsv__panel {
    max-width: none;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    padding: 22px var(--gut) 40px;
  }
  .rsv__tramo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rsv__tramo-quitar { grid-column: 1 / -1; width: 100%; }
}
