/* Cabecera de Campervan Norway (inc/header.php), la de campervaniceland.com.
   - Escritorio (≥ 1121 px): mega menú, .mm (inc/mega_menu.php).
   - Móvil y tablet (≤ 1120 px): barra y menú, .hd (inc/header.php, inc/header_bar_tools.php).
   El corte de 1120 px es el de la franja del código de bienvenida (promo-topbar.css)
   y el del hueco de la reserva (assets/js/booking.js). Script: assets/js/mega-menu.js.
   La cabecera vieja (.main-menu, .top-header-container de style.css) ya no se pinta:
   aquí no se usa ninguna de sus clases. */

.mm {
  --mm-accent: #f37720;
  --mm-accent-hover: #d9640f;
  --mm-ink: #14272c;
  --mm-muted: #5c6a6e;
  --mm-link: #206c83;
  --mm-line: #ebf0f0;
  --mm-line-strong: #c7d3d8;
  --mm-sky: #e3f3f6;
  --mm-accent-ink: #b5530b;
  --mm-surface: #fff;
  --mm-tint: #ebf0f0;
  --mm-scrim: rgba(20, 39, 44, 0.45);
  --mm-shadow: 0 24px 40px rgba(20, 39, 44, 0.18);
  --mm-focus: 0 0 0 2px #fff, 0 0 0 4px var(--mm-accent-ink);
  --mm-radius: 20px;
  --mm-bar-h: 88px;
  --mm-gutter: 56px;
  --mm-transition: 0.2s ease;
  --mm-ease: cubic-bezier(0.22, 1, 0.36, 1);

  display: none;
  position: relative;
  font-family: "Cabin", sans-serif;
  color: var(--mm-ink);
}

.mm-nav-group { display: contents; }

.mm-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* La cabecera y sus paneles, por encima del contenido de la página y por debajo
   de los modales, la capa de carga y el resumen del móvil de la reserva (1040-1050). */
.site-header.site-header--mega { z-index: 1030; }

@media only screen and (min-width: 1121px) {
  .mm { display: block; }
}

/* ─── Barra ───────────────────────────────────────────────────── */

.mm-bar {
  position: relative;
  z-index: 2;
  height: var(--mm-bar-h);
  box-sizing: border-box;
  padding: 0 var(--mm-gutter);
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--mm-surface);
  border-bottom: 1px solid var(--mm-line);
}

.mm-logo { display: block; flex-shrink: 0; }
.mm-logo img { display: block; width: 192px; height: auto; }
/* Páginas con una foto oscura bajo la barra ($menu_color = 'light'): el logo de letras blancas
   mientras la barra es transparente; con un panel abierto la barra es blanca y vuelve el oscuro. */
.mm-logo .mm-logo-light { display: none; }
.site-header.light .mm:not([data-mm-open]) .mm-logo-dark { display: none; }
.site-header.light .mm:not([data-mm-open]) .mm-logo-light { display: block; }

.mm-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-grow: 1;
}

/* La página en la que se está (cvn_nav_a(): sin href y con aria-current): visible, en el
   naranja, sin ser enlace. */
.mm a[aria-current="page"] { color: var(--mm-accent-ink) !important; cursor: default; pointer-events: none; }
.mm a.is-section { color: var(--mm-accent-ink); }
.mm .mm-type:has(.mm-type-link[aria-current="page"]),
.mm .mm-tile:has(.mm-type-link[aria-current="page"]) { box-shadow: inset 0 0 0 3px var(--mm-accent); }
.mm .mm-type:has(.mm-type-link[aria-current="page"]) .mm-type-cta,
.mm .mm-tile:has(.mm-type-link[aria-current="page"]) .mm-tile-arrow { background: var(--mm-accent-ink); }
.mm .mm-city[aria-current="page"] { border-color: var(--mm-accent); }

.mm .mm-top {
  height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  color: var(--mm-ink);
  font: 600 18px/1 "Cabin", sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--mm-transition), color var(--mm-transition);
}
/* abierto: la palabra en el naranja y la flecha gira */
.mm .mm-top[aria-expanded="true"] { color: var(--mm-accent); }
.mm-chevron { flex-shrink: 0; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.mm [aria-expanded="true"] > .mm-chevron { transform: rotate(180deg); }

.mm-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.mm-lang { position: relative; }
.mm .mm-lang-button {
  height: 44px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: var(--mm-ink);
  font: 700 15px/1 "Cabin", sans-serif;
  cursor: pointer;
}
.mm .mm-lang-button[aria-expanded="true"] { color: var(--mm-accent); }
.mm-cur-code { font: 700 15px/1 "Cabin", sans-serif; letter-spacing: 0.02em; }

/* «Book»: el botón naranja de siempre (cvn_book_onclick()) */
.mm .mm-book {
  height: 44px;
  margin-left: 8px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--mm-accent);
  color: #fff;
  font: 700 16px/1 "Cabin", sans-serif;
  letter-spacing: 0.02em;
  text-shadow: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--mm-transition);
}
.mm .mm-book:hover,
.mm .mm-book:focus { background: var(--mm-accent-hover); color: #fff; }

/* Paneles compactos (idioma, moneda, contacto): bajo su botón. El script les pone left; sin
   él quedan pegados a la derecha. */
.mm .mm-lang-list {
  left: auto;
  right: calc(var(--mm-gutter) - 16px);
  margin: 0;
  padding: 12px;
  justify-content: center;
  gap: 2px;
  list-style: none;
  border-radius: 0 0 var(--mm-radius) var(--mm-radius);
  box-shadow: 0 14px 28px -8px rgba(20, 39, 44, 0.22), 0 4px 10px -4px rgba(20, 39, 44, 0.12);
}
.mm .mm-lang-list li { margin: 0; padding: 0; }
.mm .mm-lang-list li::before { content: none; display: none; }
.mm .mm-lang-list[data-mm-enter="open"] { animation-name: mm-unroll-soft; }
.mm .mm-lang-list.is-leaving { animation-name: mm-roll-up-soft; }
@keyframes mm-unroll-soft {
  from { clip-path: inset(0 -40px 100% -40px); }
  to { clip-path: inset(0 -40px -40px -40px); }
}
@keyframes mm-roll-up-soft {
  from { clip-path: inset(0 -40px -40px -40px); opacity: 1; }
  to { clip-path: inset(0 -40px 55% -40px); opacity: 0; }
}
.mm .mm-lang-list a {
  position: relative;
  width: 76px;
  padding: 10px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  color: var(--mm-ink);
  text-decoration: none;
  transition: transform var(--mm-transition);
}
.mm-flag { width: 36px; height: 36px; flex-shrink: 0; display: block; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 1px rgba(20, 39, 44, 0.12); }
.mm-flag svg { display: block; width: 100%; height: 100%; }
.mm-lang-button .mm-flag { width: 26px; height: 26px; }
.mm-lang-name { font-size: 13px; font-weight: 600; }
.mm-lang-name, .mm-lang-code { line-height: 1.1; }
.mm-lang-code { margin-top: -4px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--mm-muted); }
/* aro de la bandera: naranja en el idioma o la moneda actual; al pasar el ratón se dibuja desde
   el lado por el que entra (mega-menu.js pone data-mm-from / .is-lit) */
.mm .mm-lang-list a::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 50%;
  width: 46px;
  height: 46px;
  margin-left: -23px;
  box-sizing: border-box;
  border: 2px solid var(--mm-accent);
  border-radius: 50%;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.4s var(--mm-ease);
}
.mm .mm-lang-list a[data-mm-from="top"]::before { clip-path: inset(0 0 100% 0); }
.mm .mm-lang-list a[data-mm-from="bottom"]::before { clip-path: inset(100% 0 0 0); }
.mm .mm-lang-list a[data-mm-from="left"]::before { clip-path: inset(0 100% 0 0); }
.mm .mm-lang-list a[data-mm-from="right"]::before { clip-path: inset(0 0 0 100%); }
.mm .mm-lang-list a.is-lit::before,
.mm .mm-lang-list a[aria-current="true"]::before { clip-path: inset(0 0 0 0); }
.mm .mm-lang-list a.is-ring-reset::before { transition: none; }
.mm .mm-lang-list a[aria-current="true"] .mm-lang-code,
.mm .mm-cur-list a[aria-current="true"] .mm-lang-name { color: var(--mm-accent-ink); }
/* monedas: el código manda y el símbolo va debajo */
.mm .mm-cur-list .mm-lang-name { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.mm .mm-cur-list .mm-lang-code { letter-spacing: 0; font-weight: 600; }
.mm .mm-cur-list .mm-cur-note { align-self: center; width: 118px; padding: 0 4px 0 10px; font-size: 11px; line-height: 1.35; color: var(--mm-muted); }

/* ─── Barra centrada: transparente sobre el hero, con el logo grande en medio ───
   Dos botones a cada lado del logo: Our fleet · Plan your trip | logo | FAQs · Contact;
   moneda, idioma y «Book» a la derecha. */

.mm[data-mm-layout="center"] { --mm-bar-h: 132px; }
.mm[data-mm-layout="center"] .mm-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  background: transparent;
  border-bottom-color: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, height 0.35s var(--mm-ease);
}
.mm[data-mm-layout="center"][data-mm-open] .mm-bar { background: var(--mm-surface); border-bottom-color: var(--mm-line); }
/* foto oscura bajo la barra: letras blancas mientras es transparente */
.site-header.light .mm[data-mm-layout="center"]:not([data-mm-open]) .mm-bar { --mm-ink: #fff; text-shadow: 0 1px 8px rgba(20, 39, 44, 0.45); }
/* con un panel abierto la barra se estrecha: el logo encoge y los botones suben con él */
.mm[data-mm-layout="center"][data-mm-open] { --mm-bar-h: 92px; }
.mm[data-mm-layout="center"] .mm-logo img { width: 300px; transition: width 0.35s var(--mm-ease); }
.mm[data-mm-layout="center"][data-mm-open] .mm-logo img { width: 200px; }
/* los paneles siguen pegados al borde de la barra mientras vuelve a crecer al cerrar */
.mm[data-mm-layout="center"] .mm-panel { transition: top 0.35s var(--mm-ease); }
.mm[data-mm-layout="center"] .mm-logo { grid-column: 2; grid-row: 1; }
.mm[data-mm-layout="center"] .mm-nav { display: contents; }
.mm[data-mm-layout="center"] .mm-nav-group { display: flex; align-items: center; gap: 4px; }
.mm[data-mm-layout="center"] .mm-nav-group--left { grid-column: 1; grid-row: 1; justify-self: end; }
.mm[data-mm-layout="center"] .mm-nav-group--right { grid-column: 3; grid-row: 1; justify-self: start; }
.mm[data-mm-layout="center"] .mm-actions { grid-column: 3; grid-row: 1; justify-self: end; gap: 6px; }
.mm[data-mm-layout="center"] .mm-top { padding: 0 14px; font-size: 19px; }

/* ─── Paneles ─────────────────────────────────────────────────── */

.mm-scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--mm-scrim);
  animation: mm-fade-in 0.3s ease backwards;
}
.mm-scrim[hidden] { display: none; }
.mm-scrim.is-leaving { animation: mm-fade-out 0.32s ease forwards; }

.mm-panel {
  position: absolute;
  top: var(--mm-bar-h);
  left: 0;
  right: 0;
  z-index: 1;
  box-sizing: border-box;
  padding: 24px var(--mm-gutter) 40px;
  display: flex;
  gap: 40px;
  background: var(--mm-surface);
  box-shadow: var(--mm-shadow);
  font-size: 16px;
  line-height: 1.4;
}
.mm-panel[hidden] { display: none; }

/* el panel se desenrolla desde debajo de la barra; al cerrar sube mientras se desvanece */
.mm-panel[data-mm-enter="open"] { animation: mm-unroll 0.45s var(--mm-ease) backwards; }
.mm-panel.is-leaving { animation: mm-roll-up 0.3s cubic-bezier(0.4, 0, 0.2, 1) both; pointer-events: none; }

/* tarjetas y enlaces suben uno tras otro (mega-menu.js pone --mm-i) */
.mm-anim {
  animation: mm-rise 0.5s var(--mm-ease) backwards;
  animation-delay: calc(90ms + min(var(--mm-i, 0), 10) * 40ms);
}
.mm-subtabs { animation: mm-fade-in 0.4s ease 60ms backwards; }

@keyframes mm-fade-in { from { opacity: 0; } }
@keyframes mm-fade-out { to { opacity: 0; } }
@keyframes mm-unroll {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 -60px 0); }
}
@keyframes mm-roll-up {
  from { clip-path: inset(0 0 -60px 0); opacity: 1; }
  to { clip-path: inset(0 0 55% 0); opacity: 0; }
}
@keyframes mm-rise { from { opacity: 0; transform: translateY(14px); } }

.mm ul[role="list"] { margin: 0; padding: 0; list-style: none; }
.mm ul[role="list"] > li { margin: 0; padding: 0; }
/* style.css pone una viñeta a cada ul sin clase (ul:not([class]) li:before) */
.mm ul:not([class]) li::before { content: none; display: none; }
.mm b { font-weight: 700; }
.mm p { margin: 0; }

/* ─── Flota: una columna por categoría, con su tarjeta y sus ciudades ─── */

.mm-panel-fleet { display: block; padding-bottom: 32px; }
.mm [role="tabpanel"][hidden] { display: none; }
.mm-c1 { display: grid; row-gap: 24px; }

/* pestañas (solo con «Find your fit»): un control segmentado dentro del panel */
.mm-subtabs {
  justify-self: start;
  padding: 4px;
  display: inline-flex;
  gap: 4px;
  border-radius: 999px;
  background: var(--mm-tint);
}
.mm .mm-subtabs button {
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mm-muted);
  font: 700 15px/1 "Cabin", sans-serif;
  cursor: pointer;
  transition: background-color var(--mm-transition), color var(--mm-transition), box-shadow var(--mm-transition);
}
.mm .mm-subtabs button[aria-selected="true"] {
  background: var(--mm-surface);
  color: var(--mm-ink);
  box-shadow: 0 1px 4px rgba(20, 39, 44, 0.15);
}

.mm-fleet { display: grid; grid-template-columns: repeat(var(--mm-cols, 2), minmax(0, 1fr)); gap: 20px; }
.mm-fleet > li { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* tarjeta: foto, nombre (el único enlace: su ::before cubre la tarjeta), frase y pie con el
   «desde» y la flecha */
.mm .mm-type {
  position: relative;
  flex: 1 1 auto;
  box-sizing: border-box;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--mm-line-strong);
  border-radius: var(--mm-radius);
  color: var(--mm-ink);
  transition: border-color var(--mm-transition), transform var(--mm-transition);
}
.mm-type-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--mm-tint); }
.mm-type-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mm-type-body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 6px; min-width: 0; }
.mm .mm-type-name { font-family: "Cabin", sans-serif; font-weight: 600; font-size: 25px; line-height: 1.15; }
.mm .mm-type-link { color: inherit; text-decoration: none; }
.mm .mm-type-link::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.mm-type-for { font-size: 15px; line-height: 1.4; color: var(--mm-muted); }
.mm-type-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--mm-line); }
.mm-type-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
.mm-type-price-from,
.mm-type-price-unit { font-size: 14px; color: var(--mm-muted); }
.mm-type-price-amount { font-size: 24px; font-weight: 700; line-height: 1.1; white-space: nowrap; color: var(--mm-ink); }
.mm .mm-type-cta,
.mm .mm-tile-arrow {
  flex-shrink: 0;
  margin-left: auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--mm-accent);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  transition: background-color var(--mm-transition);
}
.mm-type-arrow { display: inline-block; }
@keyframes mm-arrow-through {
  0% { transform: translateX(0); }
  45% { transform: translateX(26px); }
  46% { transform: translateX(-26px); }
  100% { transform: translateX(0); }
}
/* una o dos categorías: la foto a la izquierda y el texto a su lado */
.mm-fleet--wide .mm-type { flex-direction: row; gap: 20px; }
.mm-fleet--wide .mm-type-media { flex: 0 0 44%; max-width: 300px; align-self: stretch; aspect-ratio: 3 / 2; }

/* aro al pasar el ratón: un borde naranja que entra por el lado por el que llega el puntero y
   sale por donde se va (mega-menu.js pone data-mm-from y .is-lit) */
.mm { --mm-green: #75a843; }
.mm .mm-type::after,
.mm .mm-tile::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 2px solid var(--mm-accent);
  border-radius: inherit;
  pointer-events: none;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.4s var(--mm-ease);
}
.mm :is(.mm-type, .mm-tile)[data-mm-from="top"]::after { clip-path: inset(0 0 100% 0); }
.mm :is(.mm-type, .mm-tile)[data-mm-from="bottom"]::after { clip-path: inset(100% 0 0 0); }
.mm :is(.mm-type, .mm-tile)[data-mm-from="left"]::after { clip-path: inset(0 100% 0 0); }
.mm :is(.mm-type, .mm-tile)[data-mm-from="right"]::after { clip-path: inset(0 0 0 100%); }
.mm :is(.mm-type, .mm-tile).is-lit::after { clip-path: inset(0 0 0 0); }
.mm :is(.mm-type, .mm-tile).is-ring-reset::after { transition: none; }

/* páginas por ciudad de cada categoría */
.mm-cities { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.mm-cities ul { display: flex; flex-wrap: wrap; gap: 8px; }
.mm .mm-city {
  height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--mm-line-strong);
  border-radius: 999px;
  color: var(--mm-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--mm-transition), color var(--mm-transition);
}

/* ─── Plan your trip: enlaces · tarjetas · ayuda ─────────────────── */

.mm-panel-trip {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: stretch;
}
.mm-panel-trip[hidden] { display: none; }

.mm-col { display: flex; flex-direction: column; gap: 14px; }
.mm-col ul { display: flex; flex-direction: column; gap: 12px; }
.mm-label--gap { margin-top: 14px; }
.mm-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mm-muted);
}
.mm .mm-col a {
  color: var(--mm-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: color var(--mm-transition);
}

.mm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mm .mm-tile {
  position: relative;
  height: 100%;
  box-sizing: border-box;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--mm-line-strong);
  border-radius: var(--mm-radius);
  background: #f7fafa;
  color: var(--mm-ink);
  transition: transform var(--mm-transition);
}
.mm-tile-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  padding: 10px;
  box-sizing: border-box;
  border-radius: 12px;
  background: var(--mm-sky);
  fill: none;
  stroke: var(--mm-link);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mm .mm-tile-title { font-family: "Bubblegum Sans", cursive; font-weight: 400; font-size: 26px; line-height: 1.05; }
.mm-tile-text { font-size: 15px; line-height: 1.4; color: var(--mm-muted); }
.mm .mm-tile-arrow { margin-top: auto; }

/* tarjeta de ayuda: cálida, con el email delante y el teléfono debajo */
.mm-help {
  position: relative;
  box-sizing: border-box;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-radius: var(--mm-radius);
  background: #fff6ee;
  color: var(--mm-ink);
}
.mm-help-title { font-family: "Bubblegum Sans", cursive; font-size: 28px; line-height: 1.05; }
.mm-help p { margin: 0 0 6px; font-size: 16px; line-height: 1.45; color: var(--mm-muted); }
.mm .mm-help-mail {
  margin-top: auto;
  height: 46px;
  padding: 0 20px 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--mm-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--mm-transition);
}
.mm .mm-help-tel {
  height: 32px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mm-link);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.mm-help svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ─── FAQs: una tarjeta por grupo y una cuarta con el buscador ─── */

.mm-panel-faq { display: block; }
.mm-faq { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mm-faq-group,
.mm-faq-foot {
  min-width: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--mm-line);
  border-radius: 16px;
}
.mm-faq-group { background: #f7fafa; }
.mm-faq-group-title {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--mm-ink);
}
.mm-faq-group-title svg {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 10px;
  background: var(--mm-sky);
  fill: none;
  stroke: var(--mm-link);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mm .mm-faq-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.mm .mm-faq-list li { margin: 0; padding: 0; }
.mm .mm-faq-list li::before { content: none; display: none; }
.mm .mm-faq-q {
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--mm-line);
  border-radius: 10px;
  background: var(--mm-surface);
  color: var(--mm-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: background-color var(--mm-transition), border-color var(--mm-transition);
}
.mm-faq-arrow { flex-shrink: 0; color: var(--mm-muted); transition: transform var(--mm-transition), color var(--mm-transition); }
.mm .mm-faq-q:hover { border-color: var(--mm-sky); background: var(--mm-sky); color: var(--mm-ink); }
.mm .mm-faq-q:hover .mm-faq-arrow { color: var(--mm-link); transform: translateX(3px); }

.mm-faq-foot { gap: 10px; background: #fff6ee; border-color: #fff6ee; }
.mm-faq-foot-title { margin-bottom: 6px; font-family: "Bubblegum Sans", cursive; font-size: 24px; line-height: 1.05; }
.mm .mm-faq-all { margin-top: auto; align-self: flex-start; font-size: 15px; font-weight: 700; color: var(--mm-link); text-decoration: none; white-space: nowrap; }
.mm .mm-faq-all:hover { text-decoration: underline; }

.mm-faq-search { position: relative; width: 100%; margin: 0; }
.mm-faq-search-icon {
  position: absolute;
  left: 14px;
  top: 27px;
  margin-top: -10px;
  fill: none;
  stroke: var(--mm-link);
  stroke-width: 2.4;
  stroke-linecap: round;
  pointer-events: none;
}
.mm .mm-faq-search input {
  width: 100%;
  height: 54px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 14px 0 42px;
  border: 2px solid var(--mm-link);
  border-radius: 14px;
  background: var(--mm-surface);
  color: var(--mm-ink);
  font: 600 15px/1.3 "Cabin", sans-serif;
  outline: none;
  cursor: text;
  -webkit-appearance: none;
  appearance: none;
}
.mm .mm-faq-search input::placeholder { color: var(--mm-muted); opacity: 1; }
.mm .mm-faq-search input:focus { box-shadow: 0 0 0 4px var(--mm-sky); }
/* las sugerencias caen bajo el campo, igual de anchas */
.mm .mm-faq-results {
  position: absolute;
  left: 0;
  right: 0;
  top: 62px;
  z-index: 2;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  background: var(--mm-surface);
  box-shadow: 0 12px 32px rgba(20, 39, 44, 0.18), 0 0 0 1px var(--mm-line);
}
.mm .mm-faq-results[hidden] { display: none; }
.mm .mm-faq-results li { margin: 0; }
.mm .mm-faq-results li::before { content: none; display: none; }
.mm-faq-result {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
}
.mm-faq-result:hover,
.mm-faq-result[aria-selected="true"] { background: var(--mm-tint); }
.mm-faq-result mark { padding: 0; background: none; color: inherit; font-weight: 700; }
.mm-faq-kind {
  flex-shrink: 0;
  min-width: 56px;
  padding: 3px 8px;
  box-sizing: border-box;
  border-radius: 999px;
  background: var(--mm-tint);
  color: var(--mm-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}
.mm-faq-kind[data-kind="faq"] { background: #eef6e6; color: #4f7f25; }
.mm-faq-kind[data-kind="page"] { background: var(--mm-sky); color: var(--mm-link); }
.mm-faq-empty { padding: 10px 12px; font-size: 14px; color: var(--mm-muted); }

/* ─── Contacto: un chat corto bajo su botón ─────────────────────── */

.mm .mm-contact {
  left: auto;
  right: calc(var(--mm-gutter) - 16px);
  width: 400px;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f6f9f9;
  border-radius: 0 0 var(--mm-radius) var(--mm-radius);
  box-shadow: 0 14px 28px -8px rgba(20, 39, 44, 0.22), 0 4px 10px -4px rgba(20, 39, 44, 0.12);
}
.mm .mm-contact[data-mm-enter="open"] { animation-name: mm-unroll-soft; }
.mm .mm-contact.is-leaving { animation-name: mm-roll-up-soft; }
.mm .mm-contact[hidden] { display: none; }

.mm-cd-bubbles { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.mm .mm-cd-bubble {
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 6px;
  background: var(--mm-surface);
  box-shadow: 0 1px 2px rgba(20, 39, 44, 0.08);
  font-size: 17px;
  line-height: 1.4;
  animation: mm-rise 0.4s var(--mm-ease) backwards;
}
.mm .mm-cd-bubble:nth-child(2) { animation-delay: 0.3s; }
.mm .mm-cd-bubble:nth-child(3) { animation-delay: 0.55s; }
.mm .mm-cd-bubble--info { display: flex; flex-direction: column; gap: 2px; }
.mm-cd-info-label { font-size: 17px; color: var(--mm-ink); }
.mm .mm-cd-info-value { font-size: 14px; font-weight: 600; color: var(--mm-muted); text-decoration: none; white-space: nowrap; }
.mm .mm-cd-info-value:hover { text-decoration: underline; }
.mm .mm-cd-info-line { display: flex; align-items: center; gap: 10px; }
.mm-cd-replies { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; animation: mm-rise 0.4s var(--mm-ease) 0.8s backwards; }
.mm .mm-cd-reply {
  height: 42px;
  padding: 0 16px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--mm-link);
  border-radius: 999px;
  background: var(--mm-surface);
  color: var(--mm-link);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--mm-transition), color var(--mm-transition);
}
.mm .mm-cd-reply:hover { background: var(--mm-link); color: #fff; }
.mm-cd-replies-sep { width: 1px; height: 28px; margin: 0 4px; background: var(--mm-line-strong); }
.mm-cd-reply svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Copiar el email (cabecera y pie): botón con el icono de copiar, que pasa a un tick 1,6 s */
.mm-copy { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; height: 20px; padding: 0 0 0 10px; border: 0; border-left: 1px solid #c7d3d8; border-radius: 0; background: none; color: #5c6a6e; cursor: pointer; transition: color 0.2s; -webkit-tap-highlight-color: transparent; }
.mm-copy::before { content: ""; position: absolute; inset: -12px -12px -12px 0; } /* más superficie para el dedo */
.mm-copy svg { display: block; width: 18px; height: 18px; }
.mm-copy .mm-copy-ck { display: none; }
.mm-copy:hover { color: #d9650f; }
.mm-copy:focus:not(:focus-visible) { outline: 0; }
.mm-copy:focus-visible { outline: 2px solid #d9650f; outline-offset: 2px; }
.mm-copy.is-copied { color: #2f8a4f; }
.mm-copy.is-copied .mm-copy-cp { display: none; }
.mm-copy.is-copied .mm-copy-ck { display: block; }
.mm-copy::after { content: attr(data-done); position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translate(-50%, 3px); padding: 3px 8px; border-radius: 8px; background: #14272c; color: #fff; font: 700 12px/1.3 "Cabin", sans-serif; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.mm-copy.is-copied::after { opacity: 1; transform: translate(-50%, 0); }

/* ─── Estados ─────────────────────────────────────────────────── */

@media (hover: hover) {
  .mm .mm-top[aria-expanded="false"]:hover > .mm-chevron { transform: translateY(3px); }
  .mm .mm-top:hover,
  .mm .mm-lang-button:hover,
  .mm .mm-col a:hover,
  .mm .mm-city:hover { color: var(--mm-accent); }
  .mm .mm-city:hover { border-color: var(--mm-accent); }
  .mm .mm-lang-list a:hover { color: var(--mm-ink); }
  .mm .mm-help-mail:hover { background: var(--mm-accent-hover); color: #fff; }
  .mm .mm-help-tel:hover { color: var(--mm-accent); }
  .mm .mm-subtabs button[aria-selected="false"]:hover { color: var(--mm-ink); }
  .mm .mm-type:hover,
  .mm .mm-tile:hover { transform: translateY(-2px); color: var(--mm-ink); }
  .mm .mm-type:hover .mm-type-cta,
  .mm .mm-tile:hover .mm-tile-arrow { background: var(--mm-accent-hover); }
  .mm .mm-type:hover .mm-type-arrow { animation: mm-arrow-through 0.45s var(--mm-ease); }
}

/* style.css quita el contorno a enlaces y botones: aquí, anillo solo con el teclado */
.mm a:focus:not(:focus-visible),
.mm button:focus:not(:focus-visible) { outline: none; }
.mm a:focus-visible,
.mm button:focus-visible {
  outline: none;
  box-shadow: var(--mm-focus);
}
.mm .mm-type-link:focus-visible { box-shadow: none; }
.mm .mm-type:has(.mm-type-link:focus-visible),
.mm .mm-tile:has(.mm-type-link:focus-visible) { box-shadow: var(--mm-focus); }
/* botones de la barra: con el teclado, un subrayado naranja bajo la palabra */
.mm .mm-top:focus-visible {
  box-shadow: none;
  color: var(--mm-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* escritorios estrechos */
@media only screen and (min-width: 1121px) and (max-width: 1320px) {
  .mm { --mm-gutter: 32px; }
  .mm-bar { gap: 24px; }
  .mm-type-for { font-size: 14px; }
  .mm .mm-type-name { font-size: 21px; }
  .mm-panel-trip { gap: 24px; }
  .mm-tile-text { font-size: 14px; }
  .mm .mm-tile-title { font-size: 22px; }
  .mm-faq { gap: 12px; }
  .mm-faq-group, .mm-faq-foot { padding: 16px; }
}
/* barra centrada: los botones de la derecha comparten columna con moneda, idioma y «Book»; por
   debajo de ~1460 px el logo encoge y los botones se aprietan para no pisarse (medido con los
   7 idiomas; el francés y el español son los más largos) */
@media only screen and (min-width: 1121px) and (max-width: 1460px) {
  .mm[data-mm-layout="center"] .mm-bar { gap: 20px; }
  .mm[data-mm-layout="center"] .mm-logo img { width: 220px; }
  .mm[data-mm-layout="center"][data-mm-open] .mm-logo img { width: 180px; }
  .mm[data-mm-layout="center"] .mm-top { padding: 0 8px; font-size: 17px; }
}
@media only screen and (min-width: 1121px) and (max-width: 1280px) {
  .mm { --mm-gutter: 20px; }
  .mm[data-mm-layout="center"] .mm-bar { gap: 12px; }
  .mm[data-mm-layout="center"] .mm-logo img,
  .mm[data-mm-layout="center"][data-mm-open] .mm-logo img { width: 170px; }
  .mm[data-mm-layout="center"] .mm-top { gap: 5px; padding: 0 6px; font-size: 16px; }
  .mm[data-mm-layout="center"] .mm-nav-group { gap: 0; }
  .mm[data-mm-layout="center"] .mm-actions { gap: 0; }
  .mm[data-mm-layout="center"] .mm-lang-button { padding: 0 4px; }
  .mm .mm-book { margin-left: 4px; padding: 0 14px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .mm *,
  .mm *::before,
  .mm *::after { transition: none !important; animation: none !important; }
}

/* ═══ Móvil y tablet (≤ 1120 px): barra blanca y menú por secciones ═══ */

.hd { display: none; }

@media only screen and (max-width: 1120px) {
  .hd { display: block; position: relative; font-family: "Cabin", sans-serif; color: #14272c; }

  /* barra: logo · soporte · bandera · | · MENU */
  .hd-bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 16px; background: #fff; }
  .hd-logo { display: block; flex: 0 1 164px; min-width: 0; margin-right: auto; }
  .hd-logo img { display: block; width: 100%; height: auto; }

  .hd-pop { display: flex; align-items: center; margin-right: 24px; }
  .hd-help { margin-left: 24px; }
  .hd-pop-btn { position: relative; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .hd-pop-btn::before { content: ""; position: absolute; inset: -10px; } /* unos 46 px para el dedo */
  /* soporte y bandera, una pareja del mismo tamaño */
  .hd-help-btn { width: 26px; height: 26px; color: #f37720; font-size: 26px; }
  .hd-help-btn:hover { color: #f37720; } /* style.css pone en azul todo botón con hover, y en un móvil el hover se queda tras tocar */
  .hd-help-btn i { display: block; line-height: 1; color: inherit; }
  /* abierto: el aro naranja de la bandera, también alrededor de los auriculares */
  .hd-help-btn::after { content: ""; position: absolute; inset: -5px; border: 2px solid #f37720; border-radius: 50%; opacity: 0; pointer-events: none; }
  .hd-help-btn[aria-expanded="true"]::after { opacity: 1; }
  .hd-loc-btn { width: 28px; height: 28px; border-radius: 50%; }
  .hd-loc-btn .mm-flag { width: 100%; height: 100%; }
  .hd-loc-btn[aria-expanded="true"] .mm-flag { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f37720; }

  /* el botón del menú es una palabra: «Menu», y «Close» abierto. Las dos comparten celda, así
     que el botón mide lo que la más larga y nada se mueve al cambiar. */
  .hd-toggle { position: relative; margin-left: -8px; padding-left: 16px; }
  .hd-toggle::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 20px; background: #e7e4e4; }
  .hd-toggle-btn { position: relative; display: grid; padding: 0; border: 0; background: none; color: #206c83; font: 700 15px/1 "Cabin", sans-serif; letter-spacing: 0.04em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .hd-toggle-btn > span { grid-area: 1 / 1; text-align: center; }
  .hd-toggle-btn::before { content: ""; position: absolute; inset: -14px -10px; }
  .hd-toggle-btn .hd-toggle-close,
  .hd-toggle-btn[aria-expanded="true"] .hd-toggle-open { visibility: hidden; }
  .hd-toggle-btn[aria-expanded="true"] .hd-toggle-close { visibility: visible; }
  .hd-toggle-btn:hover { color: #206c83; }
  .hd-toggle-btn[aria-expanded="true"] { color: #f37720; }
  .hd-toggle-btn:focus:not(:focus-visible),
  .hd-pop-btn:focus:not(:focus-visible) { outline: none; }
  .hd :focus-visible { outline: 2px solid #d9650f; outline-offset: 2px; }

  /* las tarjetas y el menú salen de la barra: a todo el ancho, blancos, pegados debajo */
  .hd-pop-panel,
  .hd-menu { position: absolute; top: 100%; left: 0; right: 0; z-index: 1; box-sizing: border-box; background: #fff; border-radius: 0 0 8px 8px; box-shadow: 0 5px 5px rgba(20, 39, 44, 0.15); text-align: left; }
  .hd-pop-panel[hidden],
  .hd-menu[hidden] { display: none; }
  .hd-pop-panel:focus { outline: none; }

  /* contacto: burbujas y, debajo, escribir y llamar */
  .hd-help-panel { display: flex; flex-direction: column; gap: 16px; padding: 12px 32px 28px; color: #14272c; }
  .hd-help-bubbles { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
  .hd-help-bubble { margin: 0; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #f0f4f5; font-size: 16px; line-height: 1.4; }
  .hd-help-bubble--info { display: flex; flex-direction: column; gap: 2px; }
  .hd-help-line { display: flex; align-items: center; gap: 10px; }
  .hd-help-panel .hd-help-value { font-size: 14px; font-weight: 600; color: #5c6a6e; text-decoration: none; white-space: nowrap; }
  .hd-help-replies { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
  .hd-help-panel .hd-help-reply { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px 0 12px; border: 1.5px solid #206c83; border-radius: 999px; background: #fff; color: #206c83; font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease; }
  .hd-help-panel .hd-help-reply:active { background: #206c83; color: #fff; }
  .hd-help-reply svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .hd-help-replies-sep { width: 1px; height: 28px; margin: 0 4px; background: #c7d3d8; }

  /* idioma y moneda: títulos y filas como los del menú */
  .hd-loc-panel { max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); padding: 0 22px 25px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .hd-loc-title { margin: 0 10px; padding: 15.5px 0 0; font: 400 23px/1.2 "Bubblegum Sans", cursive; color: #14272c; }
  .hd-loc-list + .hd-loc-title { border-top: 1px solid #e9e4da; }
  .hd-loc-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 8px 0 0; padding: 0 0 11.5px; list-style: none; }
  .hd-loc-list li { margin: 0; padding: 0; }
  .hd-loc-list li::before { content: none; display: none; }
  .hd-loc-list a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 10px; border-radius: 12px; color: #14272c; font-size: 17px; font-weight: 700; line-height: 1.3; text-decoration: none; }
  .hd-loc-list .mm-flag { width: 24px; height: 24px; }
  .hd-loc-name { min-width: 0; }
  .hd-loc-name b { font-weight: 700; }
  .hd-loc-list a[data-currency-pick] .hd-loc-name { font-weight: 400; color: #5f686b; }
  .hd-loc-list a[data-currency-pick] .hd-loc-name b { color: #14272c; }
  .hd-loc-list a[aria-current="true"] .mm-flag { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f37720; }
  .hd-loc-list a[aria-current="true"] .hd-loc-name b,
  .hd-loc-list a[lang][aria-current="true"] .hd-loc-name { color: #c95f12; }
  .hd-loc-list a:active { background: #f2f6f7; }
  .hd-loc-note { margin: 4px 10px 0; font-size: 14px; line-height: 1.4; color: #5f686b; }

  /* menú por secciones: título en Bubblegum Sans, enlaces en Cabin, una línea entre secciones.
     Si no cabe en la pantalla, se desplaza por dentro (el script le pone el alto que queda). */
  .hd-menu { max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); padding: 0 32px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .hd-groups { margin: 0; padding: 0 0 25px; list-style: none; }
  .hd-groups li { margin: 0; }
  .hd-groups li::before { content: none; display: none; }
  .hd-group { padding: 15.5px 0 11.5px; border-top: 1px solid #e9e4da; }
  .hd-group:first-child { border-top: 0; }
  .hd-group-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 2px; font-family: "Bubblegum Sans", cursive; font-weight: 400; font-size: 23px; line-height: 1.2; color: #14272c; }
  .hd-sub { list-style: none; margin: 0; padding: 0; }
  .hd-group-title + .hd-sub { margin-top: 6px; }
  .hd-sub-link { display: block; padding: 9.5px 0; font-size: 17px; line-height: 1.3; font-weight: 700; color: #14272c; text-decoration: none; cursor: pointer; }
  .hd-sub-link[aria-current="page"] { color: #f37720; cursor: default; }
  .hd-sub-link.is-section { color: #f37720; }
  .hd-fold summary { list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .hd-fold summary::-webkit-details-marker { display: none; }
  .hd-fold summary::after { content: "+"; margin-left: auto; padding-left: 12px; font: 400 26px/1 "Cabin", sans-serif; color: #f37720; }
  .hd-fold[open] summary::after { content: "−"; }
  .hd-fold[open] summary { margin-bottom: 6px; }
  .hd-group--book { padding-bottom: 0; }
  .hd-book { display: block; width: 100%; height: 52px; padding: 0 20px; border: 0; border-radius: 999px; background: #f37720; color: #fff; font: 700 17px/1 "Cabin", sans-serif; letter-spacing: 0.02em; cursor: pointer; }
  .hd-book:hover,
  .hd-book:focus { background: #d9640f; color: #fff; }

  /* La barra vuelve al subir (mega-menu.js). Arriba del todo la cabecera es la de siempre
     (absolute: se va con la página). Más abajo, al subir, el script la fija
     (data-hd-head="pinned"); al volver a bajar se va ("hidden"). --hd-top: lo que queda a la
     vista de la franja del código de bienvenida, para que no la tape al llegar arriba. */
  .site-header[data-hd-head] { position: fixed; top: var(--hd-top, 0px) !important; }
  .site-header[data-hd-head] .hd-bar { box-shadow: 0 2px 12px rgba(20, 39, 44, 0.12); }
  .site-header[data-hd-head="hidden"] { transform: translateY(-110%); }
}
@media only screen and (max-width: 1120px) and (hover: hover) {
  .hd-toggle-btn:hover { color: #f37720; }
  .hd-help-panel .hd-help-reply:hover { background: #206c83; color: #fff; }
  .hd-loc-list a:hover { background: #f2f6f7; color: #14272c; }
  .hd-sub-link:hover { color: #206c83; }
  .hd-sub-link[aria-current="page"]:hover { color: #f37720; }
}
@media only screen and (max-width: 767px) {
  .hd-logo { flex-basis: 150px; } /* el logo es lo primero que cede en los móviles estrechos */
  .hd-help { margin-left: 12px; }
  .hd-pop { margin-right: 16px; }
  .hd-help-btn { width: 22px; height: 22px; font-size: 22px; }
  .hd-loc-btn { width: 24px; height: 24px; }
  .hd-toggle { margin-left: 0; }
  .hd-toggle-btn { font-size: 14px; letter-spacing: 0.02em; }
}
/* móviles estrechos: menos margen y las píldoras a lo ancho, para que el email y las píldoras
   sigan en una línea */
@media only screen and (max-width: 374px) {
  .hd-help-panel { padding: 12px 16px 24px; }
  .hd-help-bubble { padding: 9px 12px; font-size: 15px; }
  .hd-help-panel .hd-help-value { font-size: 13px; }
  .hd-help-replies { justify-content: stretch; }
  .hd-help-panel .hd-help-reply { flex: 1; justify-content: center; padding: 0 12px; }
  .hd-loc-panel { padding: 0 8px 25px; }
  .hd-menu { padding: 0 20px; }
}

/* Con un desplegable abierto (menú, soporte o bandera) la página de debajo no se mueve
   (html.hd-lock): el script anula los gestos de scroll fuera de la tarjeta o el menú abierto.
   No se fija el <body>: iOS Safari movía entonces la página y sus barras. */
html.hd-lock, html.hd-lock body { overflow: hidden; overscroll-behavior: none; }

/* Movimiento, el mismo para los tres desplegables de la barra: la hoja blanca se desenrolla
   desde la barra y lo de dentro cae uno tras otro (.hd-stagger, --hd-i del script); al cerrar
   se enrolla, más rápido. Nada se mueve con «reducir movimiento». */
@media only screen and (max-width: 1120px) and (prefers-reduced-motion: no-preference) {
  @keyframes hd-head-in { from { transform: translateY(-110%); } }
  .site-header[data-hd-head="pinned"] { animation: hd-head-in 0.32s cubic-bezier(0.22, 0.9, 0.3, 1); }
  .site-header[data-hd-head="hidden"] { transition: transform 0.24s cubic-bezier(0.4, 0, 0.7, 0.2); }

  @keyframes hd-unroll { from { clip-path: inset(0 -24px 100% -24px); } to { clip-path: inset(0 -24px -24px -24px); } }
  @keyframes hd-rollup { from { clip-path: inset(0 -24px -24px -24px); } to { clip-path: inset(0 -24px 100% -24px); } }
  @keyframes hd-drop { from { opacity: 0; transform: translateY(-8px); } }
  @keyframes hd-rise { from { opacity: 0; transform: translateY(8px); } }
  @keyframes hd-line { from { border-top-color: transparent; } }
  [data-hd-anim="in"] { animation: hd-unroll 0.36s cubic-bezier(0.22, 0.9, 0.3, 1) backwards; }
  [data-hd-anim="out"] { animation: hd-rollup 0.2s cubic-bezier(0.4, 0, 0.7, 0.2) forwards; pointer-events: none; }
  [data-hd-anim="in"] .hd-stagger { animation: hd-drop 0.32s cubic-bezier(0.22, 0.9, 0.3, 1) backwards; animation-delay: calc(60ms + var(--hd-i, 0) * 24ms); }
  [data-hd-anim="in"] .hd-stagger-line { animation: hd-line 0.32s ease-out backwards; animation-delay: calc(60ms + var(--hd-i, 0) * 24ms); }
  .hd-fold[open] .hd-stagger-fold { animation: hd-drop 0.32s cubic-bezier(0.22, 0.9, 0.3, 1) backwards; animation-delay: calc(var(--hd-i, 0) * 24ms); }
  .hd-help-panel[data-hd-anim="in"] .hd-help-bubble,
  .hd-help-panel[data-hd-anim="in"] .hd-help-replies { animation: hd-rise 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; animation-delay: 0.08s; }
  .hd-help-panel[data-hd-anim="in"] .hd-help-bubble:nth-child(2) { animation-delay: 0.24s; }
  .hd-help-panel[data-hd-anim="in"] .hd-help-bubble:nth-child(3) { animation-delay: 0.4s; }
  .hd-help-panel[data-hd-anim="in"] .hd-help-replies { animation-delay: 0.56s; }
}
