/* ==========================================================================
   Enviar paquete · hoja de estilo propia
   Paleta «Rojo carretera sobre blanco roto» · Outfit (títulos) + Lora (texto)
   Maqueta de pantalla dividida, bandas planas y filete de carretera.
   ========================================================================== */

:root {
  --papel: #FFFDF9;
  --tinta: #1A1A1A;
  --rojo: #C8102E;
  --rojo-hondo: #A20C25;
  --rojo-claro: #FF8E9B;      /* acento legible sobre tinta */
  --superficie: #F4F1EC;
  --superficie-2: #EAE5DD;
  --gris: #5C564E;            /* texto secundario: 6,9:1 sobre papel */
  --gris-claro: #BDB6AB;      /* texto secundario sobre tinta: 8:1 */
  --hueso: #F4F1EC;
  --filete: #DED7CC;
  --filete-oscuro: #3A3835;

  --f-titulo: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-texto: 'Lora', Georgia, 'Times New Roman', serif;

  --ancho: 1240px;
  --lectura: 44rem;
  --margen: clamp(1.25rem, 4vw, 3rem);
  --cabecera: 4rem;
  --radio: 4px;
  --curva: cubic-bezier(.2, .7, .2, 1);

  --carretera: repeating-linear-gradient(90deg, var(--rojo) 0 28px, transparent 28px 44px);
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--cabecera) + 1rem);
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  font-family: var(--f-titulo);
  color: var(--tinta);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  text-wrap: balance;
}

h1 { font-size: clamp(2.25rem, 1.55rem + 2.9vw, 4.25rem); line-height: 1.02; letter-spacing: -0.032em; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.75rem); line-height: 1.08; }
h3 { font-size: clamp(1.25rem, 1.12rem + .5vw, 1.5rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.012em; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--rojo); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--rojo-hondo); text-decoration-thickness: 2px; }

strong { font-weight: 600; }

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

::selection { background: var(--rojo); color: #fff; }

.envoltura {
  width: min(100% - 2 * var(--margen), var(--ancho));
  margin-inline: auto;
}

.salto {
  position: absolute;
  left: var(--margen);
  top: -4rem;
  z-index: 100;
  padding: .6rem 1rem;
  background: var(--tinta);
  color: #fff;
  font-family: var(--f-titulo);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radio);
}
.salto:focus { top: .75rem; color: #fff; }

/* ---------- Cabecera ---------- */

.cabecera {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 253, 249, .96);
  border-bottom: 1px solid var(--filete);
  transition: box-shadow .25s var(--curva);
}
@supports (backdrop-filter: blur(8px)) {
  .cabecera { background: rgba(255, 253, 249, .88); backdrop-filter: saturate(1.4) blur(10px); }
}
.cabecera.con-sombra { box-shadow: 0 6px 24px -14px rgba(26, 26, 26, .35); }

.cabecera__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--cabecera);
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--tinta);
  text-decoration: none;
  font-family: var(--f-titulo);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.marca:hover { color: var(--tinta); }
.marca svg { width: 2rem; height: 2rem; flex-shrink: 0; transition: transform .35s var(--curva); }
.marca:hover svg { transform: rotate(-6deg); }
.marca__acento { color: var(--rojo); }

.menu-boton {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: 0 .9rem;
  border: 1px solid var(--tinta);
  border-radius: var(--radio);
  background: transparent;
  color: var(--tinta);
  font: 600 .95rem/1 var(--f-titulo);
  cursor: pointer;
}
.menu-boton__raya {
  position: relative;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  transition: background .2s;
}
.menu-boton__raya::before,
.menu-boton__raya::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform .3s var(--curva);
}
.menu-boton__raya::before { top: -6px; }
.menu-boton__raya::after { top: 6px; }
.menu-abierto .menu-boton__raya { background: transparent; }
.menu-abierto .menu-boton__raya::before { transform: translateY(6px) rotate(45deg); }
.menu-abierto .menu-boton__raya::after { transform: translateY(-6px) rotate(-45deg); }

.menu { font-family: var(--f-titulo); }
.menu__lista {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu__enlace,
.menu__sub > summary {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: var(--tinta);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}
.menu__sub > summary::-webkit-details-marker { display: none; }
.menu__flecha {
  width: .55rem;
  height: .55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .25s var(--curva);
}
.menu__sub[open] .menu__flecha { transform: translateY(2px) rotate(-135deg); }

.menu__panel {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: servicio;
}
.menu__panel a {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  padding: .55rem 0;
  color: var(--tinta);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--filete);
}
.menu__panel a::before {
  counter-increment: servicio;
  content: counter(servicio, decimal-leading-zero);
  font-size: .75rem;
  font-weight: 600;
  color: var(--rojo);
  font-variant-numeric: tabular-nums;
  min-width: 1.4rem;
}
.menu__panel a:hover { color: var(--rojo); }

.menu__accion {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 2.75rem;
  padding: 0 1.15rem;
  background: var(--rojo);
  color: #fff;
  border-radius: var(--radio);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
}
.menu__accion:hover { background: var(--rojo-hondo); color: #fff; }

/* Menú móvil (por defecto): plegable bajo la cabecera */
.menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - var(--cabecera));
  max-height: calc(100dvh - var(--cabecera));
  overflow-y: auto;
  background: var(--papel);
  border-bottom: 1px solid var(--filete);
  padding: .5rem var(--margen) 1.5rem;
}
.js .menu { display: none; }
.js .menu-abierto .menu { display: block; }
.menu__lista > li { border-bottom: 1px solid var(--filete); }
.menu__lista > li:last-child { border-bottom: 0; padding-top: 1rem; }
.menu__enlace, .menu__sub > summary { min-height: 3.1rem; font-size: 1.1rem; }
.menu__sub > summary { justify-content: space-between; }
.menu__panel { padding: 0 0 .75rem; }
.menu__panel li:last-child a { border-bottom: 0; }
.menu__accion { width: 100%; }

/* ---------- Piezas comunes ---------- */

/* Un solo marcador en toda la web: filete continuo ENCIMA del rótulo, así un rótulo
   largo que se parta nunca deja la segunda línea descolgada. El silo de Europa lo
   lleva discontinuo (ver «Antetítulo según el silo»); no hay más variantes. */
.w-antetitulo,
.rotulo {
  display: block;
  max-width: 34em;
  margin: 0 0 1.1rem;
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: .8125rem;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--rojo);
}
.w-antetitulo::before,
.rotulo::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-bottom: .7rem;
  background: var(--rojo);
}
.rotulo__num {
  font-variant-numeric: tabular-nums;
  color: var(--tinta);
}

.w-entradilla,
.entradilla {
  font-size: clamp(1.1875rem, 1.12rem + .25vw, 1.25rem);
  line-height: 1.6;
  max-width: 34em;
  color: var(--tinta);
}
.w-entradilla p { margin-bottom: .75em; }

.w-migas { margin: 0 0 1.75rem; font-family: var(--f-titulo); font-size: .875rem; }
.w-migas ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.w-migas li { display: inline-flex; align-items: center; gap: .5rem; color: var(--gris); min-width: 0; }
.w-migas li + li::before {
  content: "";
  width: .4rem;
  height: .4rem;
  border-top: 1.5px solid var(--gris);
  border-right: 1.5px solid var(--gris);
  transform: rotate(45deg);
  flex-shrink: 0;
}
.w-migas a { color: var(--gris); text-decoration: none; }
.w-migas a:hover { color: var(--rojo); text-decoration: underline; }
.w-migas [aria-current] { color: var(--tinta); font-weight: 600; }

.w-cta,
.boton {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 3.25rem;
  padding: 0 1.5rem;
  background: var(--rojo);
  color: #fff;
  border: 2px solid var(--rojo);
  border-radius: var(--radio);
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.w-cta::after,
.boton::after {
  content: "";
  width: .55rem;
  height: .55rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s var(--curva);
}
.w-cta:hover,
.boton:hover { background: var(--rojo-hondo); border-color: var(--rojo-hondo); color: #fff; text-decoration: none; }
.w-cta:hover::after,
.boton:hover::after { transform: translateX(4px) rotate(45deg); }

.w-cta-linea { margin: 2rem 0; }

.telefono {
  font-family: var(--f-titulo);
  font-weight: 600;
  color: var(--tinta);
  text-decoration: none;
  white-space: nowrap;
}
.telefono:hover { color: var(--rojo); }

/* Ficha de datos */
.w-datos {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 2px solid currentColor;
}
.w-datos__fila {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: .25rem 1.25rem;
  align-items: baseline;
  padding: .8rem 0;
  border-bottom: 1px solid var(--filete);
}
.w-datos dt {
  font-family: var(--f-titulo);
  font-weight: 500;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gris);
}
.w-datos dd {
  margin: 0;
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--tinta);
  font-variant-numeric: tabular-nums;
}

/* Fotos */
.w-foto { margin: 2.5rem 0; }
.w-foto img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radio);
  background: var(--superficie-2);
}
.w-foto figcaption {
  display: flex;
  gap: .6rem;
  align-items: baseline;
  margin-top: .7rem;
  font-size: .9375rem;
  font-style: italic;
  color: var(--gris);
}
.w-foto figcaption::before {
  content: "";
  flex: 0 0 1rem;
  height: 1px;
  background: var(--rojo);
  transform: translateY(-.3em);
}

/* Cotizador: el contenedor no entra nunca en el formulario */
.w-cotizador {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  min-width: 0;
}
.w-cotizador > * { max-width: 100%; }
.w-cotizador__titulo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tinta);
  text-align: center;
}
.w-cotizador__titulo::before,
.w-cotizador__titulo::after {
  content: "";
  flex: 1 1 2rem;
  max-width: 5rem;
  height: 3px;
  background: var(--carretera);
  background-size: 44px 3px;
}

/* Tablas */
.w-tabla {
  margin: 1.75rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 2px solid var(--tinta);
  border-bottom: 1px solid var(--tinta);
  overscroll-behavior-x: contain;
}
.w-tabla table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.45;
}
.w-tabla th {
  padding: .85rem 1rem;
  text-align: left;
  vertical-align: bottom;
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tinta);
  background: var(--superficie);
  border-bottom: 1px solid var(--tinta);
}
.w-tabla td {
  padding: .85rem 1rem;
  vertical-align: top;
  color: var(--tinta);
  background: var(--papel);
  border-bottom: 1px solid var(--filete);
}
.w-tabla tbody tr:last-child td { border-bottom: 0; }
.w-tabla td:first-child { font-family: var(--f-titulo); font-weight: 600; }
.w-tabla tbody tr { transition: background .15s; }
.w-tabla tbody tr:hover td { background: var(--superficie); }

/* Preguntas */
.w-faq { margin: 3.5rem 0; }
.w-faq > h2 { margin-bottom: 1.25rem; }
.w-faq__item { border-bottom: 1px solid var(--filete); }
.w-faq__item:first-of-type { border-top: 2px solid var(--tinta); }
.w-faq__item summary {
  position: relative;
  display: block;
  padding: 1.15rem 3rem 1.15rem 0;
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem);
  line-height: 1.35;
  color: var(--tinta);
  cursor: pointer;
  list-style: none;
  text-wrap: balance;
  transition: color .2s;
}
.w-faq__item summary::-webkit-details-marker { display: none; }
.w-faq__item summary::before,
.w-faq__item summary::after {
  content: "";
  position: absolute;
  right: .4rem;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: var(--rojo);
  transition: transform .3s var(--curva);
}
.w-faq__item summary::after { transform: rotate(90deg); }
.w-faq__item[open] summary::after { transform: rotate(0); }
.w-faq__item summary:hover { color: var(--rojo); }
.w-faq__resp { padding: 0 3rem 1.4rem 0; color: var(--tinta); max-width: 40em; }

/* Tarjetas de hijas */
.w-hijas { margin: 0; }
.w-hijas__titulo { margin-bottom: 1.75rem; }
.w-hijas__rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 0 1.5rem;
  counter-reset: hija;
}
.w-tarjeta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-height: 100%;
  padding: 1.1rem 2.5rem 1.4rem 0;
  border-top: 2px solid var(--tinta);
  color: var(--tinta);
  text-decoration: none;
  transition: border-color .25s;
}
.w-tarjeta::before {
  counter-increment: hija;
  content: counter(hija, decimal-leading-zero);
  font-family: var(--f-titulo);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--rojo);
  font-variant-numeric: tabular-nums;
}
.w-tarjeta::after {
  content: "";
  position: absolute;
  right: .5rem;
  top: 1.45rem;
  width: .6rem;
  height: .6rem;
  border-top: 2px solid var(--tinta);
  border-right: 2px solid var(--tinta);
  transform: rotate(45deg);
  transition: transform .25s var(--curva), border-color .25s;
}
.w-tarjeta__nombre {
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
  hyphens: none;
}
.w-tarjeta__texto { font-size: .975rem; line-height: 1.55; color: var(--gris); }
.w-tarjeta:hover { border-color: var(--rojo); color: var(--tinta); }
.w-tarjeta:hover .w-tarjeta__nombre { color: var(--rojo); }
.w-tarjeta:hover::after { transform: translateX(4px) rotate(45deg); border-color: var(--rojo); }

/* Muchas hijas: rejilla compacta en filas */
.w-hijas__rejilla:has(> .w-tarjeta:nth-child(13)) {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
}
.w-hijas__rejilla:has(> .w-tarjeta:nth-child(13)) .w-tarjeta {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .2rem .6rem;
  padding: .7rem 2rem .7rem 0;
  border-top: 1px solid var(--filete);
}
.w-hijas__rejilla:has(> .w-tarjeta:nth-child(13)) .w-tarjeta::after { top: 1.1rem; width: .45rem; height: .45rem; }
.w-hijas__rejilla:has(> .w-tarjeta:nth-child(13)) .w-tarjeta__nombre { font-size: 1.05rem; }
.w-hijas__rejilla:has(> .w-tarjeta:nth-child(13)) .w-tarjeta__texto { flex-basis: 100%; font-size: .9rem; }

/* Hermanas: índice en columnas */
.w-hermanas__titulo {
  margin-bottom: 1.25rem;
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
}
.w-hermanas__enlaces {
  columns: 4 12rem;
  column-gap: 2rem;
  border-top: 2px solid var(--tinta);
  padding-top: .5rem;
}
.w-hermanas__enlaces a {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--filete);
  color: var(--tinta);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.4;
  break-inside: avoid;
  transition: color .2s, padding .25s var(--curva);
}
.w-hermanas__enlaces a::before {
  content: "";
  flex: 0 0 .6rem;
  height: 2px;
  background: var(--rojo);
  transform: translateY(-.3em);
  transition: flex-basis .25s var(--curva);
}
.w-hermanas__enlaces a:hover { color: var(--rojo); }
.w-hermanas__enlaces a:hover::before { flex-basis: 1rem; }
.w-hermanas__mas {
  display: none;
  margin-top: 1rem;
  padding: .6rem 1rem;
  background: transparent;
  border: 1px solid var(--tinta);
  border-radius: var(--radio);
  color: var(--tinta);
  font: 600 .95rem/1.2 var(--f-titulo);
  cursor: pointer;
}
.w-hermanas__mas:hover { background: var(--tinta); color: #fff; }

/* Cierre */
.w-cierre {
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  line-height: 1.45;
  max-width: 32em;
}

/* Secciones del cuerpo */
.w-seccion { position: relative; margin: 0; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.w-seccion > h2 { margin-bottom: 1.25rem; }
.w-seccion h3 { margin: 2rem 0 .6rem; }
.w-seccion > p, .w-seccion > ul, .w-seccion > ol { max-width: var(--lectura); }
.w-seccion ul, .w-seccion ol { padding-left: 1.25rem; margin: 0 0 1em; }
.w-seccion li { margin-bottom: .4em; }
.w-seccion li::marker { color: var(--rojo); }

/* ---------- Pie ---------- */

.pie {
  background: var(--tinta);
  color: var(--hueso);
  font-size: .975rem;
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
  position: relative;
}
.pie::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--carretera);
}
.pie a { color: var(--hueso); text-decoration: none; }
.pie a:hover { color: var(--rojo-claro); text-decoration: underline; }
.pie__rejilla {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.pie .marca { color: #fff; }
.pie .marca__acento { color: var(--rojo-claro); }
.pie__lema { margin: 1rem 0 1.25rem; color: var(--gris-claro); max-width: 26em; }
.pie__tel {
  display: inline-block;
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.pie__nota { margin-top: .35rem; font-size: .875rem; color: var(--gris-claro); }
.pie__titulo {
  margin: 0 0 1rem;
  font-family: var(--f-titulo);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gris-claro);
}
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li { padding: .3rem 0; line-height: 1.4; }
.pie__servicios { columns: 2 10rem; column-gap: 2rem; }
.pie__servicios li { break-inside: avoid; }
.pie__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--filete-oscuro);
  font-size: .875rem;
  color: var(--gris-claro);
}
.pie__base p { margin: 0; }

/* ==========================================================================
   PÁGINAS INTERIORES
   ========================================================================== */

/* El orden de los bloques cambia según el nivel del árbol (ver más abajo) */
.p-principal { display: flex; flex-direction: column; }
.p-principal > * { min-width: 0; }
.p-heroe { order: -2; }

.p-heroe {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-top: 6px; /* el panel de la derecha arranca bajo la línea de carretera: la línea se ve entera */
  background: var(--papel);
}
/* Línea de carretera discontinua bajo la cabecera: motivo de marca en TODAS las páginas */
.p-heroe::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 2;
  height: 4px;
  background: var(--carretera);
}
.p-heroe__texto {
  padding: clamp(2rem, 6vw, 4.5rem) var(--margen) clamp(2.25rem, 5vw, 4rem);
  min-width: 0;
}
.p-heroe__texto h1 { margin-bottom: 1.4rem; max-width: 16em; }
/* Acciones del héroe: «Calcular precio» en rojo relleno (principal) y el teléfono al lado (secundaria) */
.p-heroe__ayuda {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin: 1.75rem 0 0;
  font-family: var(--f-titulo);
  font-size: .9375rem;
  color: var(--gris);
}
.llamar {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 3.25rem;
  padding: 0 1.15rem;
  border: 2px solid var(--tinta);
  border-radius: var(--radio);
  color: var(--tinta);
  font: 600 1.0625rem/1 var(--f-titulo);
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}
.llamar svg { width: 1.15rem; height: 1.15rem; color: var(--rojo); transition: color .2s; }
.llamar:hover { background: var(--tinta); color: #fff; text-decoration: none; }
.llamar:hover svg { color: #fff; }

/* Lado del héroe: la foto propia de cada página a sangre y la ficha de datos debajo */
.p-heroe__lado {
  display: flex;
  flex-direction: column;
  background: var(--tinta);
  color: #fff;
  min-width: 0;
}
.p-heroe__lado:empty { display: none; }
.p-heroe .w-foto { margin: 0; flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; background: var(--tinta); }
.p-heroe .w-foto img {
  flex: 1 1 auto;
  border-radius: 0;
  aspect-ratio: 16 / 10;
  min-height: 14rem;
}
/* Criterio único: el héroe no lleva pie de foto en ninguna página */
.p-heroe .w-foto figcaption { display: none; color: #fff; background: var(--tinta); }
.p-heroe .w-datos {
  --pi: var(--margen);
  --pd: var(--margen);
  margin: 0;
  padding: 1.25rem var(--pd) 1.75rem var(--pi);
  border-top: 0;
  background: var(--rojo);
  color: #fff;
}
.p-heroe .w-datos__fila { border-bottom-color: rgba(255, 255, 255, .35); }
.p-heroe .w-datos__fila:last-child { border-bottom: 0; }
.p-heroe .w-datos dt { color: #fff; }
.p-heroe .w-datos dd { color: #fff; }

/* Ruta dibujada: solo de reserva, en un héroe al que la fábrica no le ponga foto.
   viewBox con «meet»: se ve ENTERA (caja de origen y pin de destino) sea cual sea el alto del panel */
.p-ruta { display: none; }
.p-heroe__lado:not(:has(.w-foto)) .p-ruta {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  min-height: 12rem;
  max-height: 34rem;
  margin-block: auto;
  padding: clamp(1rem, 3vw, 2rem);
  background: var(--rojo);
}
.p-heroe__lado:not(:has(.w-foto)) { background: var(--rojo); }

/* Contacto: foto real del almacén en lugar de la ruta dibujada */
.pag-contacto .p-heroe__lado:not(:has(.w-foto)) {
  min-height: 18rem;
  background: var(--tinta) url("/img/banco-grupaje-3-768.webp") center / cover no-repeat;
  background-image: image-set(url("/img/banco-grupaje-3-768.webp") 1x, url("/img/banco-grupaje-3-1280.webp") 2x);
}
.pag-contacto .p-heroe__lado:not(:has(.w-foto)) .p-ruta { display: none; }
.pag-contacto .p-heroe .w-datos { margin-top: auto; }

/* Ficha según el tipo de página: región y continente en tinta, el resto en rojo
   (la provincia la saca a una franja propia bajo el héroe; ver ajustes ≥ 820 px) */
.pag-region .p-heroe .w-datos,
.pag-continente .p-heroe .w-datos {
  background: var(--tinta);
  border-top: 4px solid var(--rojo);
}
.pag-region .p-heroe .w-datos__fila,
.pag-continente .p-heroe .w-datos__fila { border-bottom-color: var(--filete-oscuro); }
.pag-region .p-heroe .w-datos dt,
.pag-continente .p-heroe .w-datos dt { color: var(--gris-claro); }

/* Antetítulo según el silo: nacional, filete continuo (base); Europa, filete discontinuo */
.pag-pais-europa .w-antetitulo::before,
.pag-continente .w-antetitulo::before {
  width: 2.75rem;
  background: repeating-linear-gradient(90deg, var(--rojo) 0 9px, transparent 9px 14px);
}

/* Banda del cotizador */
.p-cotizar {
  background: var(--superficie);
  padding: clamp(2.5rem, 5vw, 4rem) var(--margen);
  border-top: 1px solid var(--filete);
  border-bottom: 1px solid var(--filete);
}
.p-cotizar:empty { display: none; }
/* Páginas sin cotizador (solo botón): «Calcular precio» ya es la acción principal del héroe,
   así que el botón suelto de la fábrica no se repite debajo */
.p-cotizar:not(:has(.w-cotizador)) { display: none; }

/* Cuerpo: columna de lectura con numeración en el margen y bandas alternas */
.p-cuerpo { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 6vw, 5rem); }
.p-cuerpo:has(.p-texto:empty) { display: none; }
.p-texto { counter-reset: seccion; max-width: 52rem; margin-inline: auto; }
.p-texto > .w-seccion > h2::before {
  counter-increment: seccion;
  content: counter(seccion, decimal-leading-zero);
  display: block;
  width: fit-content;
  margin-bottom: .75rem;
  padding-bottom: .35rem;
  border-bottom: 3px solid var(--rojo);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--rojo);
  font-variant-numeric: tabular-nums;
}
.p-texto > .w-seccion + .w-seccion { border-top: 1px solid var(--filete); }
.p-texto > .w-seccion:nth-of-type(even) {
  background: var(--superficie);
  box-shadow: 0 0 0 100vmax var(--superficie);
  clip-path: inset(0 -100vmax);
  border-top-color: transparent;
}
.p-texto > .w-seccion:nth-of-type(even) + .w-seccion { border-top-color: transparent; }
.p-texto > .w-seccion:nth-of-type(even) .w-tabla td { background: var(--papel); }
.p-texto > .w-seccion:nth-of-type(even) .w-tabla th { background: var(--superficie-2); }
.p-texto > .w-faq { margin-top: 3rem; }
.p-texto > .w-foto { margin: 3rem 0; }

.p-hijas { padding: clamp(3rem, 6vw, 5rem) 0; border-top: 1px solid var(--filete); }
.p-hijas:has(.envoltura:empty) { display: none; }

.p-hermanas {
  background: var(--superficie);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.p-hermanas:has(.envoltura:empty) { display: none; }
.p-hermanas .w-hermanas__enlaces a { border-bottom-color: var(--superficie-2); }

.p-cierre {
  position: relative;
  background: var(--tinta);
  color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.p-cierre__in { display: grid; gap: 2rem; align-items: end; }
.p-cierre .w-cierre { color: #fff; }
.p-cierre .w-cierre a { color: var(--rojo-claro); }
.p-cierre__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 0; }
.p-cierre .telefono { color: #fff; font-size: 1.15rem; }
.p-cierre .telefono:hover { color: var(--rojo-claro); }

/* ==========================================================================
   RECORRIDO DEL COTIZADOR (_plantilla.html)
   ========================================================================== */

.recorrido {
  position: relative;
  padding: 0 var(--margen) clamp(3rem, 7vw, 5rem);
  background: var(--papel);
}
.recorrido::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 1;
  height: 4px;
  background: var(--carretera);
}
/* Encabezado: banda propia que se cierra ANTES del formulario */
.recorrido__cabeza {
  margin-inline: calc(-1 * var(--margen));
  padding: clamp(2rem, 5vw, 3.25rem) var(--margen) clamp(1.75rem, 4vw, 2.5rem);
  background: var(--superficie);
  border-bottom: 1px solid var(--filete);
}
.recorrido__marco { max-width: 820px; margin-inline: auto; min-width: 0; }
.recorrido__marco > * { max-width: 100%; }
.recorrido__rotulo { margin-bottom: .9rem; }
.recorrido__titulo { font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.75rem); max-width: 18em; }
/* Hueco del formulario: el formulario común ya trae su tarjeta, así que aquí no hay
   marco ni relleno lateral; solo el filete rojo superior que lo ata al encabezado */
.recorrido__tarjeta {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding: 1.25rem 0 0;
  background: none;
  border: 0;
  border-top: 3px solid var(--rojo);
}
.recorrido__ayuda {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .4rem 1rem;
  max-width: 820px;
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--filete);
  font-family: var(--f-titulo);
  font-size: .9375rem;
  color: var(--gris);
  text-align: center;
}

/* ==========================================================================
   PORTADA
   ========================================================================== */

.seccion { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.seccion--superficie { background: var(--superficie); }
.seccion__cabeza { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.seccion__cabeza h2 { margin-bottom: 1.1rem; }
.seccion__cabeza p { font-size: 1.125rem; color: var(--tinta); }

/* Héroe partido */
.heroe {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "texto" "foto" "cotizador";
  background: var(--papel);
  position: relative;
}
.heroe::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--carretera);
  z-index: 2;
}
.heroe__texto {
  grid-area: texto;
  padding: clamp(2.25rem, 6vw, 4.5rem) var(--margen) 1.75rem;
  min-width: 0;
}
.heroe__texto h1 { margin-bottom: 1.4rem; max-width: 13em; }
.heroe__puntos {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  font-family: var(--f-titulo);
  font-weight: 500;
  font-size: .975rem;
}
.heroe__puntos li { display: inline-flex; align-items: center; gap: .5rem; }
.heroe__puntos svg { width: 1.15rem; height: 1.15rem; color: var(--rojo); flex-shrink: 0; }
.heroe__accion {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin: 1.75rem 0 0;
}
/* Cotizador: franja propia a todo el ancho bajo el héroe partido, centrado */
.heroe__cotizar {
  grid-area: cotizador;
  min-width: 0;
  padding: clamp(2.5rem, 5vw, 3.75rem) var(--margen) clamp(2.5rem, 5vw, 4rem);
  background: var(--superficie);
  border-bottom: 1px solid var(--filete);
}
/* Encabezado propio del cotizador: mismo rótulo y H2 que el resto de secciones, alineado con el formulario */
.heroe__cotizar-cabeza {
  max-width: 820px;
  margin: 0 auto clamp(1.5rem, 3vw, 2rem);
}
.heroe__cotizar-cabeza .rotulo { margin-bottom: .8rem; }
.heroe__cotizar-cabeza h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); max-width: 18em; }
.heroe__foto {
  grid-area: foto;
  position: relative;
  margin: 0;
  min-width: 0;
  background: var(--tinta);
}
.heroe__foto img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
/* Placa en papel, anclada abajo a la izquierda contra el borde de la foto (lejos de la puerta de la furgoneta) */
.heroe__placa {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  max-width: min(22rem, 100%);
  padding: 1rem 1.5rem 1rem 1.25rem;
  background: var(--papel);
  color: var(--tinta);
  border-top: 4px solid var(--rojo);
  font-family: var(--f-titulo);
  line-height: 1.3;
}
.heroe__placa strong { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.heroe__placa span { font-size: .9rem; color: var(--gris); }

/* Cifras de la ficha */
.cifras {
  background: var(--superficie);
  border-bottom: 1px solid var(--filete);
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
}
.cifras__lista {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  margin: 0;
}
.cifras__item { border-top: 2px solid var(--tinta); padding-top: .9rem; min-width: 0; }
.cifras__item dt {
  font-family: var(--f-titulo);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--tinta);
  font-variant-numeric: tabular-nums;
}
.cifras__item dt small { font-size: .45em; font-weight: 600; letter-spacing: 0; color: var(--rojo); margin-left: .15em; }
.cifras__item dd { margin: .55rem 0 0; font-size: .975rem; line-height: 1.45; color: var(--gris); }

/* Bloques partidos imagen / texto */
.bloque {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  background: var(--papel);
}
.bloque__foto { margin: 0; min-width: 0; background: var(--superficie-2); }
.bloque__foto img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.bloque__texto {
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--margen);
  min-width: 0;
}
.bloque__texto h2 { margin-bottom: 1.25rem; }
.bloque__texto > p { max-width: 36em; }
.bloque--superficie, .bloque--superficie .bloque__texto { background: var(--superficie); }

.pasos {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: paso;
  max-width: 36em;
}
.pasos li {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--filete);
}
.pasos li:last-child { border-bottom: 1px solid var(--filete); }
.pasos li::before {
  counter-increment: paso;
  content: counter(paso, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--f-titulo);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--rojo);
  font-variant-numeric: tabular-nums;
}
.pasos h3 { font-size: 1.15rem; margin: 0 0 .3rem; }
.pasos p { margin: 0; font-size: 1rem; color: var(--tinta); }

/* Tres modalidades */
.modalidades-seccion { padding-bottom: clamp(3.5rem, 8vw, 6.5rem); }
.modalidades {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 2px solid var(--tinta);
}
.modalidad {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--filete);
  min-width: 0;
}
.modalidad__icono {
  width: 3rem;
  height: 3rem;
  color: var(--rojo);
}
.modalidad__icono circle { fill: var(--fondo-modalidad, var(--superficie)); }
/* Pista del carrusel de modalidades: solo en móvil y tablet estrecha */
.modalidades__pista {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 2rem 0 0;
  font-family: var(--f-titulo);
  font-size: .875rem;
  font-weight: 500;
  color: var(--gris);
}
.modalidades__pista::after {
  content: "";
  width: 2.25rem;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--rojo) 0 8px, transparent 8px 12px);
}
.modalidad h3 { font-size: 1.35rem; }
.modalidad p { margin: 0; font-size: 1rem; }
.modalidad .w-datos { margin-top: .25rem; }
.modalidad .w-datos__fila { padding: .55rem 0; }
.modalidad .w-datos dd { font-size: 1rem; }
.modalidad__enlace {
  margin-top: auto;
  padding-top: .5rem;
  font-family: var(--f-titulo);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.modalidad__enlace::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s var(--curva);
}
.modalidad__enlace:hover { text-decoration: none; }
.modalidad__enlace:hover::after { transform: translateX(4px) rotate(45deg); }
.aviso-mercancia {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin: 2rem 0 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--tinta);
  background: var(--superficie);
  font-size: 1rem;
  max-width: 46rem;
}
.aviso-mercancia svg { width: 1.35rem; height: 1.35rem; flex-shrink: 0; color: var(--tinta); margin-top: .15rem; }

/* Banda de foto a todo ancho con frase */
.banda-foto {
  position: relative;
  display: grid;
  min-height: clamp(22rem, 50vw, 36rem);
  margin: 0;
  background: var(--tinta);
  overflow: hidden;
}
.banda-foto img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banda-foto__frase {
  grid-area: 1 / 1;
  align-self: end;
  position: relative;
  margin: 0;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, .82) 45%, rgba(26, 26, 26, .94) 100%);
  color: #fff;
}
.banda-foto__frase p {
  max-width: 24em;
  margin: 0;
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  hyphens: none;
}
.banda-foto__frase p::before {
  content: "";
  display: block;
  width: 5.5rem;
  height: 4px;
  margin-bottom: 1.25rem;
  background: repeating-linear-gradient(90deg, #fff 0 22px, transparent 22px 34px);
}

/* Destinos destacados: cuatro accesos con foto antes del índice completo */
.destacados {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
  list-style: none;
  margin: 0 0 clamp(2.5rem, 5vw, 3.75rem);
  padding: 0;
}
.destacado { min-width: 0; }
.destacado__enlace {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--tinta);
  text-decoration: none;
  border-bottom: 3px solid var(--tinta);
  transition: border-color .25s;
}
.destacado__enlace img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--superficie-2);
  transition: filter .3s var(--curva);
}
.destacado__cuerpo { display: flex; flex-direction: column; gap: .25rem; padding: .85rem 1.5rem .95rem 0; position: relative; }
.destacado__cuerpo::after {
  content: "";
  position: absolute;
  right: .35rem;
  top: 1.2rem;
  width: .5rem;
  height: .5rem;
  border-top: 2px solid var(--rojo);
  border-right: 2px solid var(--rojo);
  transform: rotate(45deg);
  transition: transform .25s var(--curva);
}
.destacado__nombre {
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: clamp(1.05rem, .98rem + .35vw, 1.3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
  hyphens: none;
}
.destacado__texto { font-size: .9375rem; line-height: 1.45; color: var(--gris); }
.destacado__enlace:hover { border-bottom-color: var(--rojo); color: var(--tinta); }
.destacado__enlace:hover .destacado__nombre { color: var(--rojo); }
.destacado__enlace:hover img { filter: saturate(1.15) contrast(1.05); }
.destacado__enlace:hover .destacado__cuerpo::after { transform: translateX(4px) rotate(45deg); }

/* Índice completo: dos bloques plegables (España y Europa) con filas compactas */
.indice { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem 3.5rem; align-items: start; }
.indice__bloque { min-width: 0; }
.indice__titulo {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin: 0 0 .25rem;
  padding: 0 2rem .75rem 0;
  position: relative;
  border-bottom: 2px solid var(--tinta);
  cursor: pointer;
  list-style: none;
}
.indice__titulo::-webkit-details-marker { display: none; }
.indice__titulo::after {
  content: "";
  position: absolute;
  right: .4rem;
  top: .5rem;
  width: .6rem;
  height: .6rem;
  border-right: 2px solid var(--rojo);
  border-bottom: 2px solid var(--rojo);
  transform: rotate(45deg);
  transition: transform .25s var(--curva);
}
.indice__bloque[open] > .indice__titulo::after { transform: translateY(4px) rotate(-135deg); }
.indice__nombre { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.65rem); }
.indice__titulo:hover .indice__nombre { color: var(--rojo); }
.indice__cuenta {
  font-family: var(--f-titulo);
  font-weight: 500;
  font-size: .875rem;
  letter-spacing: .04em;
  color: var(--gris);
}

/* Filas por comunidad (y por zona de Europa): nombre como acceso, provincias plegadas a la derecha */
.tarjetas-destino {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  column-gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.destino {
  position: relative;
  min-width: 0;
  padding: .6rem 0;
  border-bottom: 1px solid var(--filete);
}
.destino__nombre {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  max-width: calc(100% - 7.5rem);
  margin: 0;
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--tinta);
  text-decoration: none;
  text-wrap: balance;
  hyphens: none;
}
a.destino__nombre::after {
  content: "";
  flex: 0 0 auto;
  width: .42rem;
  height: .42rem;
  border-top: 2px solid var(--rojo);
  border-right: 2px solid var(--rojo);
  transform: translateY(-.1em) rotate(45deg);
  transition: transform .25s var(--curva);
}
a.destino__nombre:hover { color: var(--rojo); text-decoration: none; }
a.destino__nombre:hover::after { transform: translate(4px, -.1em) rotate(45deg); }
.destino__mas > summary,
.destino__nota {
  position: absolute;
  right: 0;
  top: .6rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0;
  padding: .1rem 0;
  font-family: var(--f-titulo);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--gris);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.destino__mas > summary { cursor: pointer; list-style: none; }
.destino__mas > summary::-webkit-details-marker { display: none; }
.destino__mas > summary::after {
  content: "";
  width: .4rem;
  height: .4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .25s var(--curva);
}
.destino__mas > summary:hover { color: var(--tinta); }
.destino__mas[open] > summary { color: var(--tinta); }
.destino__mas[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.destino__lista {
  list-style: none;
  margin: .5rem 0 0;
  padding: .35rem 0 .2rem;
  border-top: 1px solid var(--filete);
  columns: 2 8rem;
  column-gap: 1.25rem;
}
.destino__lista li { break-inside: avoid; }
.destino__lista a {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .25rem 0;
  font-size: .975rem;
  line-height: 1.35;
  color: var(--tinta);
  text-decoration: none;
}
.destino__lista a::before {
  content: "";
  flex: 0 0 .5rem;
  height: 2px;
  background: var(--rojo);
  transform: translateY(-.3em);
  transition: flex-basis .25s var(--curva);
}
.destino__lista a:hover { color: var(--rojo); }
.destino__lista a:hover::before { flex-basis: .9rem; }

.indice-europa__intro { max-width: 46rem; margin: 1rem 0 .5rem; font-size: 1rem; }
.indice__ver-todos {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.5rem;
  font-family: var(--f-titulo);
  font-weight: 600;
  text-decoration: none;
}
.indice__ver-todos::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s var(--curva);
}
.indice__ver-todos:hover::after { transform: translateX(4px) rotate(45deg); }

/* Plazos, recogida y seguro: banda oscura */
.garantias { background: var(--tinta); color: var(--hueso); }
.garantias h2, .garantias h3 { color: #fff; }
.garantias .rotulo { color: var(--rojo-claro); }
.garantias .rotulo::before { background: var(--rojo-claro); }
.garantias .rotulo__num { color: #fff; }
.garantias .seccion__cabeza p { color: var(--hueso); }
.garantias a { color: var(--rojo-claro); }
.garantias a:hover { color: #fff; }
.garantias__rejilla {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 2.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.garantia {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: .2rem 1.1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--filete-oscuro);
}
.garantia svg { grid-row: span 2; width: 2.5rem; height: 2.5rem; color: var(--rojo-claro); }
.garantia h3 { font-size: 1.2rem; }
.garantia p { margin: 0; font-size: 1rem; color: var(--gris-claro); }

/* Índice de servicios */
.servicios {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: srv;
  border-top: 2px solid var(--tinta);
}
.servicios li { border-bottom: 1px solid var(--filete); }
.servicios a {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: .15rem .75rem;
  padding: 1rem 2rem 1rem 0;
  color: var(--tinta);
  text-decoration: none;
}
.servicios a::before {
  counter-increment: srv;
  content: counter(srv, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: .875rem;
  color: var(--rojo);
  padding-top: .2rem;
  font-variant-numeric: tabular-nums;
}
.servicios a::after {
  content: "";
  position: absolute;
  right: .4rem;
  top: 1.4rem;
  width: .5rem;
  height: .5rem;
  border-top: 2px solid var(--tinta);
  border-right: 2px solid var(--tinta);
  transform: rotate(45deg);
  transition: transform .25s var(--curva), border-color .2s;
}
.servicios__nombre { font-family: var(--f-titulo); font-weight: 600; font-size: 1.15rem; line-height: 1.3; }
.servicios__texto { font-size: .95rem; line-height: 1.5; color: var(--gris); }
.servicios a:hover .servicios__nombre { color: var(--rojo); }
.servicios a:hover::after { transform: translateX(4px) rotate(45deg); border-color: var(--rojo); }

/* Portada: preguntas y cierre */
.portada-faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 4rem; }
.portada-faq .w-faq { margin: 0; }

.cierre-portada {
  background: var(--superficie);
  border-top: 1px solid var(--filete);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.cierre-portada__in { display: grid; gap: 2rem; align-items: end; }
.cierre-portada h2 { max-width: 16em; margin-bottom: 1rem; }
.cierre-portada p { max-width: 36em; font-size: 1.125rem; }
.cierre-portada__acciones { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin: 0; }

/* ==========================================================================
   AJUSTES RESPONSIVE (siempre al final)
   ========================================================================== */

@media (min-width: 640px) {
  .cifras__lista { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tarjetas-destino { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pie__rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .garantias__rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .servicios { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .servicios li:nth-child(-n+2) { border-top: 2px solid var(--tinta); }
}

@media (min-width: 820px) {
  /* Héroe de portada en tablet: texto y foto arriba, cotizador debajo a todo el ancho */
  .heroe {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "texto foto" "cotizador cotizador";
  }
  .heroe__texto {
    align-self: center;
    padding: clamp(3rem, 5vw, 4.5rem) clamp(2rem, 3vw, 3rem) clamp(2.5rem, 5vw, 4rem) max(var(--margen), calc(50vw - var(--ancho) / 2));
  }
  .heroe__foto img { aspect-ratio: auto; min-height: 100%; position: absolute; inset: 0; }
  .heroe__foto { min-height: 30rem; }

  .modalidades__pista { display: none; }

  .bloque { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bloque__foto { position: relative; min-height: 28rem; }
  .bloque__foto img { position: absolute; inset: 0; aspect-ratio: auto; }
  .bloque__texto { align-self: center; padding-inline: clamp(2rem, 5vw, 5rem) max(var(--margen), calc(50vw - var(--ancho) / 2)); }
  .bloque--inverso .bloque__foto { order: 2; }
  .bloque--inverso .bloque__texto { padding-inline: max(var(--margen), calc(50vw - var(--ancho) / 2)) clamp(2rem, 5vw, 5rem); }

  .modalidades { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; border-top: 0; }
  .modalidad { border-top: 2px solid var(--tinta); border-bottom: 0; padding-bottom: 0; }

  .portada-faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .portada-faq .seccion__cabeza { margin-bottom: 0; }

  .cierre-portada__in, .p-cierre__in { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .cierre-portada__acciones, .p-cierre__acciones { justify-content: flex-end; }

  /* Héroe interior partido 50/50 con el lado a sangre */
  .p-heroe { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .p-heroe:has(.p-heroe__lado:empty) { grid-template-columns: minmax(0, 1fr); }
  .p-heroe__texto {
    align-self: center;
    padding-left: max(var(--margen), calc(50vw - var(--ancho) / 2));
    padding-right: clamp(2rem, 4vw, 4rem);
  }
  .p-heroe .w-foto img { aspect-ratio: auto; min-height: 18rem; height: 100%; }
  .p-heroe .w-datos { --pi: clamp(1.5rem, 3vw, 2.5rem); --pd: max(var(--margen), calc(50vw - var(--ancho) / 2)); }
  /* La ruta de reserva ocupa el alto sobrante, centrada y entera; la ficha queda debajo */
  .p-heroe__lado:not(:has(.w-foto)) .p-ruta { flex: 1 1 0; aspect-ratio: auto; min-height: 16rem; }

  .p-texto { padding-left: 0; }

  /* ---- Composición del héroe: siempre 50/50 y la foto de la página a la derecha ----
     A) Servicio, región, continente, país y municipio: foto arriba y ficha debajo, en la columna derecha
        (región y continente con la ficha en tinta; el resto en rojo; el país, como ruta con paradas).
     B) Provincia: la foto ocupa todo el lado y la ficha sale a una franja roja a todo el ancho bajo el
        héroe, con sus datos en grande: cada provincia abre con su dato propio, no con el molde de la región. */

  /* Región y continente: el índice de hijas sube justo bajo el héroe */
  .pag-region .p-hijas,
  .pag-continente .p-hijas { order: -1; border-top: 0; border-bottom: 1px solid var(--filete); padding-block: clamp(2.5rem, 5vw, 3.5rem); }

  /* Variante B: provincia */
  .pag-division .p-heroe { grid-template-areas: "texto foto" "datos datos"; }
  .pag-division .p-heroe__lado { display: contents; }
  .pag-division .p-heroe__texto { grid-area: texto; }
  .pag-division .p-heroe .w-foto,
  .pag-division .p-ruta { grid-area: foto; align-self: stretch; height: 100%; }
  .pag-division .p-heroe .w-datos {
    grid-area: datos;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    column-gap: 1.5rem;
    padding: 1.75rem max(var(--margen), calc(50vw - var(--ancho) / 2)) 2rem;
    border-top: 0;
  }
  .pag-division .p-heroe .w-datos__fila {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: .35rem;
    padding: .1rem 0 .1rem 1rem;
    border-bottom: 0;
    border-left: 2px solid rgba(255, 255, 255, .5);
  }
  .pag-division .p-heroe .w-datos__fila:first-child dd {
    font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  /* Municipio: ficha compacta bajo la foto, misma columna y mismo encuadre que el resto */
  .pag-municipio .p-heroe .w-datos__fila { padding: .6rem 0; }

  /* País: la ficha se lee como una ruta, con paradas sobre una línea de carretera */
  .pag-pais-europa .p-heroe .w-datos { position: relative; padding-left: calc(var(--pi) + 1.9rem); }
  .pag-pais-europa .p-heroe .w-datos::before {
    content: "";
    position: absolute;
    left: calc(var(--pi) + .45rem);
    top: 2.2rem;
    bottom: 2.6rem;
    width: 3px;
    background: repeating-linear-gradient(180deg, #fff 0 14px, transparent 14px 24px);
  }
  .pag-pais-europa .p-heroe .w-datos__fila { position: relative; }
  .pag-pais-europa .p-heroe .w-datos__fila::before {
    content: "";
    position: absolute;
    left: calc(-1.9rem + 1.5px);
    top: 1.05rem;
    width: .9rem;
    height: .9rem;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--rojo);
  }
  .pag-pais-europa .p-heroe .w-datos__fila:last-child::before { background: #fff; }
}

@media (min-width: 1000px) {
  .destacados { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
  .indice { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .tarjetas-destino--zonas { grid-template-columns: minmax(0, 1fr); }
  .pie__rejilla { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
  .garantias__rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .garantia { grid-template-columns: minmax(0, 1fr); padding-top: 1.75rem; border-top: 2px solid var(--filete-oscuro); }
  .garantia svg { grid-row: auto; margin-bottom: .75rem; }

  /* Numeración de secciones en el margen izquierdo */
  .p-texto { padding-left: 6.5rem; max-width: calc(52rem + 6.5rem); }
  .p-texto > .w-seccion > h2::before {
    position: absolute;
    left: -6.5rem;
    top: calc(clamp(2.5rem, 5vw, 4rem) + .5rem);
    margin: 0;
  }
}

@media (min-width: 1160px) {
  :root { --cabecera: 4.5rem; }
  .menu-boton { display: none; }
  .menu, .js .menu {
    position: static;
    display: block;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
  }
  .menu__lista { display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 1.75rem); }
  .menu__lista > li { border: 0; position: relative; }
  .menu__lista > li:last-child { padding: 0 0 0 .5rem; }
  .menu__enlace, .menu__sub > summary { min-height: var(--cabecera); font-size: .975rem; position: relative; }
  .menu__enlace::after, .menu__sub > summary::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 1.1rem;
    height: 2px;
    background: var(--rojo);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--curva);
  }
  .menu__enlace:hover::after, .menu__sub > summary:hover::after,
  .menu__sub[open] > summary::after, .menu__enlace[aria-current]::after { transform: scaleX(1); }
  .menu__enlace:hover { color: var(--tinta); }
  .menu__panel {
    position: absolute;
    top: calc(100% - .5rem);
    left: -1.5rem;
    width: 34rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
    padding: 1.25rem 1.5rem 1.5rem;
    background: var(--papel);
    border: 1px solid var(--filete);
    border-top: 3px solid var(--rojo);
    border-radius: 0 0 var(--radio) var(--radio);
    box-shadow: 0 24px 48px -24px rgba(26, 26, 26, .35);
    animation: aparecer .25s var(--curva);
  }
  .menu__panel li:last-child a { border-bottom: 1px solid var(--filete); }
  .menu__accion { width: auto; min-height: 2.6rem; }

  .heroe__foto { min-height: 34rem; }
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 639px) {
  .w-tabla table { font-size: .9375rem; }
  .w-tabla th, .w-tabla td { padding: .7rem .75rem; }
  .w-datos__fila { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .15rem .9rem; padding: .6rem 0; }
  .w-datos dt { font-size: .75rem; }
  .w-datos dd { font-size: 1rem; }
  .w-faq__item summary { padding-right: 2.5rem; }
  .w-faq__resp { padding-right: 0; }
  .w-hermanas__enlaces { columns: 2 8.5rem; column-gap: 1.25rem; }
  .w-hermanas__enlaces a { font-size: .95rem; }
  .w-hermanas.plegada .w-hermanas__enlaces a:nth-child(n+13) { display: none; }
  .w-hermanas.plegable .w-hermanas__mas { display: inline-block; }
  .heroe__placa { position: static; max-width: none; }
  /* Destacados: 2 × 2 compactos */
  .destacado__cuerpo { padding: .65rem 1.25rem .75rem 0; }
  .destacado__cuerpo::after { top: 1rem; right: .2rem; }
  .destacado__texto { font-size: .875rem; }
  /* «Todo sobre el envío»: índice compacto, solo nombres */
  .servicios a { padding: .7rem 2rem .7rem 0; align-items: baseline; }
  .servicios a::before { grid-row: auto; padding-top: 0; }
  .servicios__texto { display: none; }
  /* Pie compacto: destinos y legal en dos columnas */
  .pie__rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
  .pie__rejilla > :nth-child(-n+2) { grid-column: 1 / -1; }
  .pie li { padding: .2rem 0; }
  .pie__base { flex-direction: column; }
  .marca { font-size: 1.15rem; }
  .seccion { padding-block: 3rem; }
  .bloque__foto img { aspect-ratio: 16 / 9; }
  .banda-foto { min-height: 18rem; }
  .p-heroe__ayuda .boton, .p-heroe__ayuda .llamar { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 819px) {
  /* Modalidades: tarjetas deslizables con scroll propio, sin salir del ancho */
  .modalidades {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(15.5rem, 84%);
    gap: 1rem;
    margin-top: 1rem;
    padding-bottom: .75rem;
    border-top: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--rojo) var(--superficie-2);
  }
  .modalidad {
    --fondo-modalidad: var(--papel);
    scroll-snap-align: start;
    padding: 1.25rem;
    background: var(--papel);
    border-top: 3px solid var(--rojo);
    border-bottom: 0;
  }
}

@media (max-width: 479px) {
  /* Antetítulo de portada en una sola línea */
  .solo-ancho { display: none; }
  .heroe__accion .boton { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .cabecera, .pie, .p-cotizar, .w-cotizador, .heroe__cotizar, .menu-boton { display: none !important; }
  body { background: #fff; }
}
