/* ==========================================================================
   Enviar paquete a Italia · hoja de estilo
   Rejilla suiza de 12 columnas · Fraunces (títulos) + Inter (texto)
   Paleta «Terracota y crema»
   Nota: nada de esta hoja entra en el formulario del cotizador
   (todo lo genérico va con :not(.w-cotizador *)).
   ========================================================================== */

:root {
  --papel: #FBF4EC;
  --papel-2: #F4E6D7;
  --blanco: #FFFFFF;
  --tinta: #2A1D17;
  --tinta-2: #5E4B41;
  --terracota: #B5452B;
  --terracota-osc: #93361F;
  --terracota-noche: #6E2716;
  --terracota-luz: #EE9C82;
  --teal: #2E6E6A;
  --teal-osc: #245652;
  --teal-luz: #8CC7BF;
  /* Arena: crema más oscura para diferenciar secciones (el verde queda para acentos mínimos) */
  --arena: #F0E2D1;
  --arena-osc: #E5D1BA;
  --crema-tenue: #D9C8BB;
  --filete: rgba(42, 29, 23, .16);
  --filete-medio: rgba(42, 29, 23, .34);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ancho: 1240px;
  --margen: clamp(20px, 4vw, 48px);
  --gutter: clamp(16px, 2vw, 28px);
  --cab: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

*:not(.w-cotizador *),
*:not(.w-cotizador *)::before,
*:not(.w-cotizador *)::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--cab) + 20px);
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
}

/* :where() deja estas reglas base sin especificidad: cualquier clase propia manda sobre ellas */
:where(h1, h2, h3, h4):where(:not(.w-cotizador *)) {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.018em;
  color: var(--tinta);
  hyphens: none;
  -webkit-hyphens: none;
  text-wrap: balance;
  font-variation-settings: "opsz" 96;
}

:where(p, ul, ol, dl, dd, figure, blockquote):where(:not(.w-cotizador *)) { margin: 0; }

:where(img):where(:not(.w-cotizador *)) { max-width: 100%; height: auto; display: block; }

:where(a):where(:not(.w-cotizador *)) { color: inherit; }

:where(:focus-visible):where(:not(.w-cotizador *)) {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

::selection { background: var(--terracota); color: var(--blanco); }

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

.rejilla {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.rejilla > * { min-width: 0; }

.salto {
  position: absolute;
  left: var(--margen);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--tinta);
  color: var(--papel);
  font-weight: 600;
  text-decoration: none;
}

.salto:focus { top: 12px; }

/* ---------- Botones propios ---------- */

.w-cta,
.boton {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid var(--terracota);
  border-radius: 2px;
  background: var(--terracota);
  color: var(--blanco);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.005em;
  text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

.w-cta::after,
.boton::after {
  content: "";
  width: 18px;
  height: 10px;
  flex: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease);
}

.w-cta:hover,
.boton:hover { background: var(--terracota-osc); border-color: var(--terracota-osc); }

.w-cta:hover::after,
.boton:hover::after { transform: translateX(4px); }

/* Botón secundario: el mismo en todo el sitio, papel blanco con el acento verde azulado */
.boton--sec {
  background: var(--blanco);
  border-color: var(--teal);
  color: var(--teal-osc);
}

.boton--sec:hover { background: var(--teal); border-color: var(--teal); color: var(--blanco); }

.boton--claro {
  background: var(--papel);
  border-color: var(--papel);
  color: var(--tinta);
}

.boton--claro:hover { background: var(--blanco); border-color: var(--blanco); color: var(--tinta); }

.boton--linea {
  background: transparent;
  border-color: rgba(251, 244, 236, .55);
  color: var(--papel);
}

.boton--linea::after { display: none; }

.boton--linea:hover { background: transparent; border-color: var(--papel); color: var(--blanco); }

.w-cta-linea { margin-top: 32px; }

/* ---------- Cabecera y menú ---------- */

.cab {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 244, 236, .96);
  border-bottom: 1px solid var(--tinta);
}

@supports (backdrop-filter: blur(8px)) {
  .cab { background: rgba(251, 244, 236, .88); backdrop-filter: saturate(1.3) blur(10px); }
}

.cab__marco {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--cab);
}

.marca {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--tinta);
  text-decoration: none;
}

.marca__simbolo { width: 34px; height: 34px; flex: none; }

.marca__nombre {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.015em;
  white-space: nowrap;
}

.marca__nombre em { font-style: italic; font-weight: 500; color: var(--terracota); }

.cab__boton {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--tinta);
  border-radius: 2px;
  background: transparent;
  color: var(--tinta);
  font: 600 .95rem/1 var(--sans);
  cursor: pointer;
}

.cab__boton-icono { position: relative; width: 18px; height: 12px; }

.cab__boton-icono::before,
.cab__boton-icono::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}

.cab__boton-icono::before { top: 2px; }
.cab__boton-icono::after { top: 9px; }

.cab__boton[aria-expanded="true"] .cab__boton-icono::before { top: 5.5px; transform: rotate(45deg); }
.cab__boton[aria-expanded="true"] .cab__boton-icono::after { top: 5.5px; transform: rotate(-45deg); }

.menu { display: flex; align-items: center; gap: 18px; }

.menu__lista {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu__item { position: relative; }

.menu__enlace {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  background: none;
  color: var(--tinta);
  font-family: var(--serif);
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-decoration: none;
  cursor: pointer;
}

.menu__enlace::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--terracota);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}

.menu__enlace:hover::after,
.menu__enlace[aria-expanded="true"]::after { transform: scaleX(1); }

.menu__flecha {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .3s var(--ease);
}

.menu__enlace[aria-expanded="true"] .menu__flecha { transform: translateY(2px) rotate(-135deg); }

.submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: -6px;
  z-index: 70;
  width: 440px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--blanco);
  border-top: 2px solid var(--terracota);
  box-shadow: 0 24px 48px -24px rgba(42, 29, 23, .4), 0 0 0 1px var(--filete);
  counter-reset: sub;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}

.submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.menu__item--sub:hover .submenu,
.menu__item--sub:focus-within .submenu,
.menu__enlace[aria-expanded="true"] + .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
}

.submenu__enlace {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 8px;
  padding: 13px 22px;
  color: var(--tinta);
  text-decoration: none;
  counter-increment: sub;
  transition: background-color .2s var(--ease);
}

.submenu li + li .submenu__enlace { border-top: 1px solid var(--filete); }

.submenu__enlace::before {
  content: counter(sub, decimal-leading-zero);
  grid-row: 1 / span 2;
  padding-top: 3px;
  font-family: var(--serif);
  font-size: .85rem;
  font-weight: 500;
  color: var(--terracota-osc);
  font-variant-numeric: tabular-nums;
}

.submenu__titulo { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; line-height: 1.25; }

.submenu__texto { font-size: .875rem; line-height: 1.45; color: var(--tinta-2); }

.submenu__enlace:hover { background: var(--papel); }

.submenu__enlace:hover .submenu__titulo { color: var(--terracota-osc); }

.menu .boton { min-height: 44px; padding: 10px 18px; font-size: .95rem; }

/* ---------- Componentes de la fábrica ---------- */

/* Migas */
.w-migas { font-size: .875rem; line-height: 1.4; color: var(--tinta-2); }

.w-migas ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.w-migas li { display: inline-flex; align-items: center; min-width: 0; }

.w-migas li + li::before {
  content: "";
  width: 14px;
  height: 1px;
  margin: 0 10px;
  background: var(--filete-medio);
}

.w-migas a {
  color: var(--tinta-2);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .3s var(--ease), color .2s;
}

.w-migas a:hover { color: var(--terracota-osc); background-size: 100% 1px; }

.w-migas [aria-current="page"] { color: var(--tinta); font-weight: 500; }

/* Antetítulo */
.w-antetitulo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--terracota-osc);
}

.w-antetitulo::before {
  content: "";
  width: 28px;
  height: 2px;
  flex: none;
  background: var(--terracota);
}

/* H1 */
.w-h1 {
  font-size: clamp(2.3rem, 1.35rem + 3.6vw, 4.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.028em;
  max-width: 16ch;
}

/* Entradilla */
.w-entradilla {
  max-width: 35rem;
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  line-height: 1.55;
  color: var(--tinta);
}

.w-entradilla p + p { margin-top: .7em; }

.w-entradilla a { color: var(--terracota-osc); text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Ficha de datos */
.w-datos {
  counter-reset: dato;
  background: var(--blanco);
  border-top: 2px solid var(--tinta);
  box-shadow: 0 0 0 1px var(--filete);
}

.w-datos__fila {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) minmax(0, 1.5fr);
  column-gap: 14px;
  align-items: baseline;
  padding: 15px 20px;
  counter-increment: dato;
}

.w-datos__fila + .w-datos__fila { border-top: 1px solid var(--filete); }

.w-datos__fila::before {
  content: counter(dato, decimal-leading-zero);
  font-family: var(--serif);
  font-size: .85rem;
  font-weight: 500;
  color: var(--terracota-osc);
  font-variant-numeric: tabular-nums;
}

.w-datos dt {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tinta-2);
}

.w-datos dd {
  margin: 0;
  font-size: .98rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--tinta);
}

.w-datos dd a { color: var(--terracota-osc); text-underline-offset: 3px; }

/* Cotizador (solo el contenedor) */
.w-cotizador {
  position: relative;
  width: 100%;
  padding-top: 22px;
  border-top: 1px solid var(--tinta);
}

.w-cotizador::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 64px;
  height: 3px;
  background: var(--terracota);
}

.w-cotizador .w-cotizador__titulo {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--tinta);
  hyphens: none;
  text-wrap: balance;
}

.w-cotizador > [data-cotizador-one],
.w-cotizador > .cotizador-one {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

/* Foto */
.w-foto { margin: 0; }

.w-foto img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  background: var(--papel-2);
}

/* Un mismo grado de color para todas las fotos: cálido, hacia terracota y crema */
.w-foto img,
.banda img,
.red__foto img,
.vuelta__foto img { filter: sepia(.24) saturate(.84) contrast(1.03) brightness(1.01); }

/* Sin pies de foto: los que llegan describen la imagen y no aportan nada al lector
   (el texto alternativo ya cumple esa función) */
.w-foto figcaption { display: none; }

/* Secciones del documento */
.w-seccion,
.w-faq {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-top: 26px;
  border-top: 1px solid var(--tinta);
  counter-increment: seccion;
}

.w-seccion + .w-seccion,
.w-seccion + .w-faq,
.w-faq + .w-seccion,
.w-faq + .w-faq { margin-top: clamp(56px, 7vw, 96px); }

.w-seccion > *,
.w-faq > * { grid-column: 3 / span 8; min-width: 0; }

.w-seccion::before,
.w-faq::before {
  content: counter(seccion, decimal-leading-zero);
  grid-column: 1 / span 2;
  grid-row: 1;
  padding-top: .5em;
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 500;
  color: var(--terracota-osc);
  font-variant-numeric: tabular-nums;
}

.w-seccion > h2,
.w-faq > h2 {
  grid-row: 1;
  font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.65rem);
  line-height: 1.08;
  margin-bottom: 26px;
}

.w-seccion > h3 {
  margin-top: 40px;
  margin-bottom: 4px;
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  line-height: 1.2;
}

.w-seccion > p,
.w-seccion > ul,
.w-seccion > ol {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.68;
}

.w-seccion > p + p,
.w-seccion > p + ul,
.w-seccion > p + ol,
.w-seccion > ul + p,
.w-seccion > ol + p,
.w-seccion > h3 + p { margin-top: 1em; }

.w-seccion > h2 + p:first-of-type { font-size: 1.125rem; }

.w-seccion ul,
.w-seccion ol { padding-left: 1.2em; }

.w-seccion li + li { margin-top: .4em; }

.w-seccion li::marker { color: var(--terracota); }

.w-seccion strong { font-weight: 600; color: var(--tinta); }

.w-seccion a,
.w-faq__resp a,
.w-cierre a:not(.boton):not(.w-cta),
.texto a {
  color: var(--terracota-osc);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(147, 54, 31, .45);
  transition: text-decoration-color .2s, color .2s;
}

.w-seccion a:hover,
.w-faq__resp a:hover,
.texto a:hover { color: var(--terracota); text-decoration-color: currentColor; }

/* Tablas */
.w-tabla {
  grid-column: 3 / -1;
  max-width: 100%;
  margin-top: 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  background:
    linear-gradient(to right, var(--papel) 30%, rgba(251, 244, 236, 0)) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--papel) 30%, rgba(251, 244, 236, 0)) right / 32px 100% no-repeat local,
    linear-gradient(to right, rgba(42, 29, 23, .12), rgba(42, 29, 23, 0)) left / 12px 100% no-repeat scroll,
    linear-gradient(to left, rgba(42, 29, 23, .12), rgba(42, 29, 23, 0)) right / 12px 100% no-repeat scroll;
}

.w-tabla table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: .95rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.w-tabla th,
.w-tabla td {
  padding: 13px 18px 13px 0;
  text-align: left;
  vertical-align: top;
  color: var(--tinta);
}

.w-tabla thead th {
  padding-top: 0;
  border-bottom: 2px solid var(--tinta);
  background: transparent;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tinta-2);
}

.w-tabla tbody th,
.w-tabla tbody td { border-bottom: 1px solid var(--filete); }

.w-tabla tbody td:first-child,
.w-tabla tbody th { font-weight: 600; }

.w-tabla tbody tr { transition: background-color .2s; }

.w-tabla tbody tr:hover { background: rgba(255, 255, 255, .7); }

/* Preguntas frecuentes */
.w-faq > h2 { margin-bottom: 14px; }

.w-faq__item { border-bottom: 1px solid var(--filete-medio); }

.w-faq__item summary {
  position: relative;
  display: block;
  padding: 20px 52px 20px 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.02rem + .35vw, 1.28rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.01em;
  list-style: none;
  cursor: pointer;
  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: 6px;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--terracota);
  transition: transform .3s var(--ease);
}

.w-faq__item summary::after { transform: rotate(90deg); }

.w-faq__item[open] summary::after { transform: rotate(0deg); }

.w-faq__item summary:hover { color: var(--terracota-osc); }

.w-faq__resp {
  max-width: 64ch;
  padding: 0 0 24px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tinta);
}

.w-faq__resp p + p { margin-top: .8em; }

/* Páginas hijas: tarjetas */
.w-hijas,
.w-hermanas {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding-top: 26px;
  border-top: 1px solid var(--tinta);
}

.w-hijas__titulo,
.w-hermanas__titulo {
  grid-column: 1 / span 4;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.1;
  padding-right: 24px;
}

.w-hijas__rejilla,
.w-hermanas__enlaces { grid-column: 5 / -1; min-width: 0; }

.w-hijas__rejilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0 var(--gutter);
  counter-reset: hija;
}

.w-tarjeta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 16px 34px 20px 0;
  border-top: 1px solid var(--filete-medio);
  color: var(--tinta);
  text-decoration: none;
  counter-increment: hija;
}

.w-tarjeta::before {
  content: counter(hija, decimal-leading-zero);
  font-family: var(--serif);
  font-size: .8rem;
  font-weight: 500;
  color: var(--terracota-osc);
  font-variant-numeric: tabular-nums;
}

.w-tarjeta::after {
  content: "";
  position: absolute;
  top: 19px;
  right: 2px;
  width: 16px;
  height: 10px;
  background: var(--tinta);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}

.w-tarjeta__nombre {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.012em;
  text-wrap: balance;
  hyphens: none;
}

.w-tarjeta__texto { font-size: .925rem; line-height: 1.5; color: var(--tinta-2); }

.w-tarjeta {
  background: linear-gradient(var(--terracota), var(--terracota)) 0 0 / 0 3px no-repeat;
  transition: background-size .4s var(--ease);
}

.w-tarjeta:hover { background-size: 100% 3px; }

.w-tarjeta:hover .w-tarjeta__nombre { color: var(--terracota-osc); }

.w-tarjeta:hover::after { transform: translateX(4px); background: var(--terracota); }

/* Hermanas: índice en columnas */
.w-hermanas__enlaces {
  columns: 3 12rem;
  column-gap: var(--gutter);
  column-rule: 1px solid var(--filete);
  counter-reset: hermana;
}

.w-hermanas__enlaces a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  counter-increment: hermana;
  padding: 9px 0;
  border-bottom: 1px solid var(--filete);
  break-inside: avoid;
  font-size: .95rem;
  line-height: 1.35;
  color: var(--tinta);
  text-decoration: none;
  transition: color .2s, padding .3s var(--ease);
}

.w-hermanas__enlaces a::before {
  content: counter(hermana, decimal-leading-zero);
  flex: none;
  min-width: 1.6rem;
  font-family: var(--serif);
  font-size: .78rem;
  font-weight: 500;
  color: var(--terracota-osc);
  font-variant-numeric: tabular-nums;
}

.w-hermanas__enlaces a::after {
  content: "→";
  flex: none;
  margin-left: auto;
  font-size: .85rem;
  color: var(--terracota);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s, transform .3s var(--ease);
}

.w-hermanas__enlaces a:hover { color: var(--terracota-osc); padding-left: 4px; }

.w-hermanas__enlaces a:hover::after { opacity: 1; transform: none; }

/* Botón de plegado (lo añade web.js en móvil) */
.w-plegar {
  grid-column: 1 / -1;
  justify-self: start;
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 11px 16px;
  border: 1px solid var(--tinta);
  border-radius: 2px;
  background: var(--arena);
  color: var(--tinta);
  font: 600 .925rem/1.2 var(--sans);
  cursor: pointer;
}

.w-plegar::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.w-plegar[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }

/* Cierre */
.w-cierre {
  position: relative;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 72px);
  background: var(--tinta);
  color: var(--papel);
  border-top: 4px solid var(--terracota);
}

.w-cierre p {
  max-width: 34ch;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.015em;
  text-wrap: pretty;
}

.w-cierre p + p { margin-top: .6em; }

.w-cierre a:not(.boton):not(.w-cta) { color: var(--terracota-luz); text-decoration-color: rgba(238, 156, 130, .6); }

.w-cierre a:not(.boton):not(.w-cta):hover { color: var(--blanco); }

.w-cierre .w-cta { color: var(--blanco); text-decoration: none; font-family: var(--sans); }

/* ==========================================================================
   Página interior (_pagina.html)
   ========================================================================== */

/* Orden de los bloques: la región adelanta su franja de provincias */
.pag { display: flex; flex-direction: column; counter-reset: seccion; }

.pag > .pag-heroe { order: 0; }
.pag > .pag-cotiza { order: 2; }
.pag > .pag-cuerpo { order: 4; }
.pag > .pag-hijas { order: 5; }
.pag > .pag-red { order: 6; }
.pag > .pag-cierre { order: 7; }

/* Cabecera interior: migas, texto, foto y ficha en la rejilla.
   Esquema base (servicio y contacto): texto 1-7 | foto y ficha apiladas 8-12.
   Cada tipo de página recoloca foto y ficha más abajo. */
.pag-heroe { padding: clamp(24px, 3vw, 36px) 0 clamp(40px, 5vw, 64px); }

.pag-heroe__migas { grid-column: 1 / -1; grid-row: 1; margin-bottom: clamp(24px, 3.5vw, 44px); }

/* Un solo acento sobre el H1: la raya del antetítulo */
.pag-heroe__texto {
  grid-column: 1 / span 7;
  grid-row: 2 / span 2;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-right: clamp(0px, 2vw, 24px);
}

.pag-heroe__texto .w-h1 { max-width: 17ch; font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4rem); }

.pag-heroe__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.pag-heroe__foto { grid-column: 8 / -1; grid-row: 2; min-width: 0; }

.pag-heroe__foto:not(:has(img)) { display: none; }

.pag-heroe__foto .w-foto img { aspect-ratio: 3 / 2; }

.pag-heroe__datos {
  grid-column: 8 / -1;
  grid-row: 3;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.pag-heroe:not(:has(.pag-heroe__foto img)) .pag-heroe__datos { grid-row: 2; margin-top: 0; }

.pag-heroe__datos:not(:has(.w-datos)) { display: none; }

.pag-heroe:not(:has(.w-datos)):not(:has(.pag-heroe__foto img)) .pag-heroe__texto { grid-column: 1 / span 10; }

.pag-heroe__datos .ficha__cab { order: -2; margin-bottom: -2px; }

/* Fotos de anochecer o de noche: se aclaran para que se lean en cualquier cabecera */
:is(.w-foto, .banda, .red__foto, .vuelta__foto) img:is([src*="banco-grupaje-6"], [src*="banco-urgente-1"], [src*="banco-internacional-8"], [src*="banco-internacional-3"]) {
  filter: sepia(.18) saturate(.9) brightness(1.32) contrast(.94);
}

/* Rótulo de la ficha según el tipo de página (web.js pone data-tipo en <html>) */
.ficha__tipo::before { content: "Ficha"; }
[data-tipo="servicio"] .ficha__tipo::before { content: "Ficha del servicio"; }
[data-tipo="precio"] .ficha__tipo::before { content: "Ficha del precio"; }
[data-tipo="contacto"] .ficha__tipo::before { content: "Datos de contacto"; }
[data-tipo="region"] .ficha__tipo::before { content: "Ficha de la región"; }
[data-tipo="provincia"] .ficha__tipo::before { content: "Ficha de la provincia"; }
[data-tipo="ciudad"] .ficha__tipo::before { content: "Ficha de la ciudad"; }

/* Pie de la ficha: una línea discreta con el teléfono (quién presta el servicio ya va en el pie) */
.ficha__pie {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--tinta-2);
}

.ficha__pie svg { width: 16px; height: 16px; flex: none; color: var(--terracota-osc); }

.ficha__tel {
  font-weight: 600;
  color: var(--tinta);
  text-decoration: none;
  white-space: nowrap;
}

.ficha__tel:hover { color: var(--terracota-osc); text-decoration: underline; text-underline-offset: 3px; }

/* En Contacto el teléfono ya está en la ficha: no se repite */
[data-tipo="contacto"] .ficha__pie { display: none; }

/* --- Ficha de la cabecera interior: UN solo componente en todas las páginas.
   Celdas con rótulo arriba y valor debajo (Inter, a la izquierda, como en la portada),
   en dos columnas; la página de precio la pone en tira de tres. --- */
.pag-heroe .w-datos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.pag-heroe .w-datos__fila {
  grid-template-columns: 2rem minmax(0, 1fr);
  row-gap: 4px;
  align-items: start;
  padding: 16px 18px 18px;
  box-shadow: 1px 0 0 var(--filete), 0 1px 0 var(--filete);
}

/* Las dos celdas de una fila comparten pistas: rótulo con rótulo y valor con valor */
@supports (grid-template-rows: subgrid) {
  .pag-heroe .w-datos__fila {
    grid-row: span 2;
    grid-template-rows: subgrid;
  }
}

.pag-heroe .w-datos__fila + .w-datos__fila { border-top: 0; }

.pag-heroe .w-datos__fila:nth-child(odd):last-child { grid-column: 1 / -1; }

.pag-heroe .w-datos__fila::before { grid-row: 1 / span 2; }

.pag-heroe .w-datos dt { grid-column: 2; grid-row: 1; }

.pag-heroe .w-datos dd { grid-column: 2; grid-row: 2; }

/* Foto que acompaña al texto hasta abajo: no aporta altura a la fila (contain: size)
   y se estira hasta donde llega la columna del texto; la imagen recorta con object-fit */
:is([data-tipo="contacto"], [data-tipo="region"], [data-tipo="precio"], [data-tipo="provincia"], [data-tipo="ciudad"]) .pag-heroe__foto:has(img) {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  contain: size;
}

:is([data-tipo="contacto"], [data-tipo="region"], [data-tipo="precio"], [data-tipo="provincia"], [data-tipo="ciudad"]) .pag-heroe__foto .w-foto { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }

:is([data-tipo="contacto"], [data-tipo="region"], [data-tipo="precio"], [data-tipo="provincia"], [data-tipo="ciudad"]) .pag-heroe__foto .w-foto img { flex: 1 1 0; min-height: 0; height: auto; aspect-ratio: auto; }

/* --- Región, precio, provincia y ciudad: UNA composición. Texto 1-7 a lo alto de dos filas;
   a la derecha (8-12), la ficha con los límites por envío y, debajo, la foto de la página,
   que se estira hasta donde baja el texto: la columna derecha nunca queda en blanco.
   El fondo es el papel de la cabecera, sin franjas de otro tono --- */
:is([data-tipo="region"], [data-tipo="precio"], [data-tipo="provincia"], [data-tipo="ciudad"]) .pag-heroe__texto { grid-column: 1 / span 7; grid-row: 2 / span 2; }

:is([data-tipo="region"], [data-tipo="precio"], [data-tipo="provincia"], [data-tipo="ciudad"]) .pag-heroe__datos { grid-column: 8 / -1; grid-row: 2; margin-top: 0; }

:is([data-tipo="region"], [data-tipo="precio"], [data-tipo="provincia"], [data-tipo="ciudad"]) .pag-heroe__foto { grid-column: 8 / -1; grid-row: 3; margin-top: 20px; }

:is([data-tipo="region"], [data-tipo="precio"], [data-tipo="provincia"], [data-tipo="ciudad"]) .pag-heroe__foto:has(img) { min-height: 220px; }

/* Límites por envío (datos de la ficha de CabiTrans): completan la ficha en las páginas
   de destino y de precio */
.ficha__limites { display: none; }

:is([data-tipo="region"], [data-tipo="precio"], [data-tipo="provincia"], [data-tipo="ciudad"]) .ficha__limites { display: block; }

.ficha__limites {
  padding: 14px 18px 6px;
  background: var(--blanco);
  border-left: 3px solid var(--teal);
  box-shadow: 0 0 0 1px var(--filete);
}

.ficha__limites-titulo {
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-osc);
}

.ficha__limites ul { margin: 8px 0 0; padding: 0; list-style: none; }

.ficha__limites li {
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) minmax(0, 1fr);
  column-gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--filete);
  font-size: .9375rem;
  line-height: 1.45;
}

.ficha__limites b { font-family: var(--serif); font-size: 1.02rem; font-weight: 600; color: var(--tinta); }

.ficha__limites span { color: var(--tinta); font-variant-numeric: tabular-nums; }

/* --- Región: titular grande; la cuadrícula de provincias sube justo debajo de la cabecera --- */
[data-tipo="region"] .pag-heroe { padding-bottom: clamp(36px, 4vw, 56px); }

[data-tipo="region"] .pag-heroe .w-h1 { max-width: 15ch; font-size: clamp(2.4rem, 1.3rem + 3.8vw, 4.6rem); }

[data-tipo="region"] .pag-hijas {
  order: 1;
  margin-bottom: clamp(48px, 6vw, 80px);
  padding: 0;
}

/* Ficha de región: sin numeración (la lleva el resto de fichas); la capital en grande a lo ancho
   y las cifras de la región (número de provincias) como cifra de titular */
[data-tipo="region"] .pag-heroe .w-datos { border-top: 3px solid var(--terracota); }

[data-tipo="region"] .pag-heroe .w-datos__fila { grid-template-columns: minmax(0, 1fr); }

[data-tipo="region"] .pag-heroe .w-datos__fila::before { display: none; }

[data-tipo="region"] .pag-heroe .w-datos dt,
[data-tipo="region"] .pag-heroe .w-datos dd { grid-column: 1; }

.pag-heroe .w-datos__fila--cifra dd {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.6rem + 1.3vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--terracota-osc);
  font-variant-numeric: lining-nums tabular-nums;
}

[data-tipo="region"] .w-hijas__titulo {
  grid-column: 1 / -1;
  margin-bottom: 24px;
  font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem);
}

/* Cuadrícula de provincias: celdas iguales con filetes finos y número grande */
[data-tipo="region"] .w-hijas__rejilla {
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  border-top: 1px solid var(--filete-medio);
  border-left: 1px solid var(--filete-medio);
}

[data-tipo="region"] .w-tarjeta {
  gap: 8px;
  padding: 18px 44px 22px 20px;
  border-top: 0;
  border-right: 1px solid var(--filete-medio);
  border-bottom: 1px solid var(--filete-medio);
  background: none;
  transition: background-color .25s var(--ease);
}

[data-tipo="region"] .w-tarjeta::before {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
}

[data-tipo="region"] .w-tarjeta::after { top: 24px; right: 18px; }

[data-tipo="region"] .w-tarjeta:hover { background: var(--blanco); }

/* --- Servicio: el esquema base (texto | foto y ficha apiladas) --- */

/* --- Contacto: texto y, bajo los botones, la ficha de contacto (1-7); la foto sola a la derecha,
   a lo alto de las dos filas --- */
[data-tipo="contacto"] .pag-heroe__texto { grid-row: 2; }

[data-tipo="contacto"] .pag-heroe__datos { grid-column: 1 / span 7; grid-row: 3; margin-top: clamp(32px, 4vw, 44px); padding-right: clamp(0px, 2vw, 24px); }

[data-tipo="contacto"] .pag-heroe__foto { grid-column: 8 / -1; grid-row: 2 / span 2; min-height: 320px; }

[data-tipo="contacto"] .pag-heroe:not(:has(.pag-heroe__foto img)) .pag-heroe__datos { grid-column: 8 / -1; grid-row: 2; margin-top: 0; }

/* --- Precio: titular más contenido (los de esta página son largos) y la ficha en una
   columna, fila a fila, con su numeración --- */
[data-tipo="precio"] .pag-heroe .w-h1 { max-width: 21ch; font-size: clamp(2rem, 1.35rem + 2.1vw, 3.15rem); line-height: 1.06; }

[data-tipo="precio"] .pag-heroe .w-datos { grid-template-columns: minmax(0, 1fr); border-top-color: var(--terracota); }

/* --- Provincia y ciudad: la ficha con el primer dato en grande y la sigla como una
   matrícula italiana: el rasgo propio de cada provincia --- */
:is([data-tipo="provincia"], [data-tipo="ciudad"]) .pag-heroe .w-datos { border-top: 4px solid var(--terracota); }

/* --- Ficha de región, provincia y ciudad: el primer dato en grande y a toda la anchura --- */
:is([data-tipo="region"], [data-tipo="provincia"], [data-tipo="ciudad"]) .pag-heroe .w-datos__fila:first-child { grid-column: 1 / -1; background: var(--papel); }

:is([data-tipo="region"], [data-tipo="provincia"], [data-tipo="ciudad"]) .pag-heroe .w-datos__fila:first-child dd {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.15rem + .7vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
  hyphens: none;
}

/* Con el primero a lo ancho, la que queda sola al final es la par */
:is([data-tipo="region"], [data-tipo="provincia"], [data-tipo="ciudad"]) .pag-heroe .w-datos__fila:nth-child(odd):not(:first-child):last-child { grid-column: auto; }

:is([data-tipo="region"], [data-tipo="provincia"], [data-tipo="ciudad"]) .pag-heroe .w-datos__fila:nth-child(even):last-child { grid-column: 1 / -1; }

/* Sigla de la provincia como la de una matrícula italiana: franja con la I y letras en negrita.
   La fila conserva su número, como todas las demás */
.pag-heroe .w-datos__fila--sigla dd {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px 0 0;
  overflow: hidden;
  border: 1.5px solid var(--tinta);
  border-radius: 5px;
  background: var(--blanco);
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .14em;
}

.pag-heroe .w-datos__fila--sigla dd::before {
  content: "I";
  align-self: stretch;
  display: grid;
  place-items: center;
  margin-right: 12px;
  padding: 0 8px;
  background: var(--teal);
  color: var(--blanco);
  font-size: .8rem;
  letter-spacing: 0;
}

/* --- Ciudad: la misma composición que la provincia (ficha a la derecha), con titular
   algo más contenido y un filete que cierra la cabecera --- */
[data-tipo="ciudad"] .pag-heroe { border-bottom: 1px solid var(--filete-medio); }

[data-tipo="ciudad"] .pag-heroe .w-h1 { max-width: 20ch; font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.6rem); }

/* Banda del cotizador */
.pag-cotiza { padding-block: clamp(48px, 6vw, 88px); }

.pag-cotiza:not(:has(.w-cotizador)) { display: none; }

.pag-cotiza__guia { grid-column: 1 / span 4; padding-right: 12px; }

.pag-cotiza__widget { grid-column: 5 / -1; }

.guia__rotulo {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--terracota-osc);
}

.guia__titulo {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.018em;
  text-wrap: balance;
  hyphens: none;
}

.pasos {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.pasos li {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  column-gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--filete-medio);
  counter-increment: paso;
  font-size: .975rem;
  line-height: 1.5;
}

.pasos li::before {
  content: counter(paso, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--terracota);
}

.pasos strong { display: block; font-weight: 600; }

.pasos span { color: var(--tinta-2); }

.guia__tel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 14px 16px;
  background: var(--arena);
  border-left: 3px solid var(--terracota);
  font-size: .925rem;
  line-height: 1.4;
  color: var(--tinta);
}

.guia__tel svg { width: 22px; height: 22px; flex: none; color: var(--terracota-osc); }

.guia__tel a { font-weight: 700; color: var(--tinta); text-decoration: none; white-space: nowrap; }

.guia__tel a:hover { text-decoration: underline; text-underline-offset: 3px; }

.pag-cuerpo { padding-bottom: clamp(56px, 7vw, 104px); }

.pag-cuerpo__texto > :not(section):not(.w-tabla):not(nav) { max-width: 68ch; }

.pag-cuerpo__texto > p + p { margin-top: 1em; }

.pag-hijas,
.pag-red { padding-bottom: clamp(56px, 7vw, 104px); }

.pag-hijas:empty,
.pag-red:empty { display: none; }

.pag-cierre { padding-bottom: clamp(64px, 8vw, 120px); }

.pag-cierre:empty { display: none; }

/* ==========================================================================
   Portada (index.html)
   ========================================================================== */

.heroe { padding: clamp(40px, 6vw, 88px) 0 clamp(56px, 7vw, 104px); }

.heroe__texto {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.heroe .w-h1 {
  font-size: clamp(2.35rem, 1.1rem + 4.5vw, 5.1rem);
  max-width: 13ch;
}

.heroe__acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Columna derecha (8-12) desde la línea del antetítulo: la ruta España → Italia dibujada
   y, debajo, la ficha en dos columnas. Sin hueco entre el texto y la ficha */
.heroe__ficha { grid-column: 8 / -1; align-self: start; display: flex; flex-direction: column; }

.ruta {
  margin: 0 0 22px;
  padding: 14px 16px 8px;
  background: var(--tinta);
  border-top: 3px solid var(--terracota);
}

.ruta__svg { display: block; width: 100%; height: auto; overflow: visible; }

.ruta__nombre {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -.01em;
  fill: #FBF4EC;
  color: #FBF4EC;
}

.ruta__nombre--fin { fill: #EE9C82; color: #EE9C82; }

.ruta__rotulo {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  fill: #D9C8BB;
  color: #D9C8BB;
}

.heroe__ficha .w-datos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.heroe__ficha .w-datos__fila {
  grid-template-columns: 2rem minmax(0, 1fr);
  row-gap: 4px;
  align-items: start;
  padding: 14px 16px 16px;
  box-shadow: 1px 0 0 var(--filete), 0 1px 0 var(--filete);
}

.heroe__ficha .w-datos__fila + .w-datos__fila { border-top: 0; }

.heroe__ficha .w-datos__fila::before { grid-row: 1 / span 2; }

.heroe__ficha .w-datos dt,
.heroe__ficha .w-datos dd { grid-column: 2; }

.ficha__cab {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--tinta-2);
}

.ficha__ruta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--tinta-2);
}

.ficha__ruta svg { width: 40px; height: 10px; }

/* Bloques numerados */
.bloque { position: relative; margin-top: clamp(72px, 9vw, 128px); padding-top: 26px; border-top: 1px solid var(--tinta); }

/* Marca terracota sobre el filete, en la columna 1, justo encima del número del bloque */
.bloque::before {
  content: "";
  position: absolute;
  left: 0;
  top: -2px;
  width: 64px;
  height: 3px;
  background: var(--terracota);
}

.bloque--primero { margin-top: 0; }

.num {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 500;
  color: var(--terracota-osc);
  font-variant-numeric: tabular-nums;
}

.num span {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tinta-2);
}

.bloque h2,
.destinos h2 {
  font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3.05rem);
  line-height: 1.05;
  letter-spacing: -.024em;
}

.texto { font-size: 1.0625rem; line-height: 1.68; }

.texto > * + * { margin-top: 1em; }

.texto .entrada { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem); line-height: 1.55; }

/* Cotizador de la portada: bloque protagonista bajo el héroe, centrado y a su ancho (≤ 760 px) */
.heroe__cotiza {
  grid-column: 1 / -1;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(36px, 4vw, 52px);
  border-top: 1px solid var(--filete-medio);
}

/* Título y subtítulo centrados los dos sobre el eje del cotizador */
.heroe__cotiza-rotulo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 760px;
  margin: 0 auto 18px;
  text-align: center;
}

.heroe__cotiza-rotulo span:first-child {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.15rem + .6vw, 1.65rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.heroe__cotiza-rotulo span + span { font-size: .9rem; line-height: 1.45; color: var(--tinta-2); }

.heroe__cotiza .w-cotizador { max-width: 760px; margin-inline: auto; }

/* La marca terracota del filete, en el mismo eje que el título */
.heroe__cotiza .w-cotizador::before { left: 50%; transform: translateX(-50%); }

/* 01 · servicio: H2 a la izquierda, texto a la derecha y los tres pasos en fila */
.servicio__cab { grid-column: 1 / span 5; }

.servicio__texto { grid-column: 7 / -1; padding-top: 4px; }

.pasos--fila {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--gutter);
  margin-top: clamp(36px, 4vw, 56px);
}

.pasos--fila li { border-top: 1px solid var(--tinta); }

/* Banda de foto a todo ancho */
.banda {
  position: relative;
  margin-top: clamp(72px, 9vw, 128px);
}

.banda img {
  width: 100%;
  height: clamp(280px, 44vw, 600px);
  object-fit: cover;
  object-position: center 60%;
}

.banda__lema {
  position: absolute;
  left: max(var(--margen), calc((100% - var(--ancho)) / 2));
  bottom: 0;
  width: min(520px, calc(100% - 2 * var(--margen)));
  padding: 26px 30px 28px;
  background: var(--papel);
  border-top: 3px solid var(--terracota);
}

.banda__lema p {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.banda__lema small {
  display: block;
  margin-top: 10px;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--terracota-osc);
}

/* 02 · modalidades */
.modos__cab { grid-column: 1 / span 6; }

.modos__entrada { grid-column: 8 / -1; align-self: end; }

.modos {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}

.modo {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 26px 28px;
  background: var(--blanco);
  border-top: 2px solid var(--tinta);
  box-shadow: 0 0 0 1px var(--filete);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}

.modo:hover { border-top-color: var(--terracota); transform: translateY(-2px); }

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

.modo__letra { font-family: var(--serif); font-size: .9rem; font-weight: 500; color: var(--terracota-osc); }

.modo__icono { width: 44px; height: 44px; color: var(--tinta); }

.modo h3 { font-size: 1.45rem; line-height: 1.15; }

/* Para qué carga es cada modalidad (los límites en cifras van solo en la tabla) */
.modo__para {
  padding: 10px 0 10px 12px;
  border-block: 1px solid var(--filete);
  border-left: 2px solid var(--teal);
  background: rgba(46, 110, 106, .07);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--teal-osc);
}

.modo p { font-size: .975rem; line-height: 1.6; }

.modo__enlace {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--terracota-osc);
  text-decoration: none;
}

.modo__enlace::after {
  content: "→";
  transition: transform .3s var(--ease);
}

.modo__enlace:hover { color: var(--tinta); }

.modo__enlace:hover::after { transform: translateX(4px); }

.limites { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: clamp(48px, 6vw, 80px); }

.limites__rotulo { grid-column: 1 / span 4; }

.limites__rotulo h3 { font-size: 1.35rem; }

.limites__rotulo p { margin-top: 10px; font-size: .95rem; color: var(--tinta-2); }

.limites__plegable { grid-column: 5 / -1; min-width: 0; }

.limites .w-tabla { margin-top: 0; }

/* El botón de plegar solo aparece en móvil */
.limites__abrir { display: none; }

.nota {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 18px;
  font-size: .925rem;
  line-height: 1.5;
  color: var(--tinta-2);
}

.nota::before {
  content: "";
  width: 18px;
  height: 1px;
  flex: none;
  transform: translateY(-4px);
  background: var(--terracota);
}

/* 03 · red */
.red__texto { grid-column: 1 / span 6; }

.red__foto { grid-column: 8 / -1; margin: 0; align-self: start; }

.red__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.red__claves {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 var(--gutter);
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.red__claves li {
  padding: 16px 0;
  border-top: 1px solid var(--filete-medio);
  font-size: .95rem;
  line-height: 1.5;
}

.red__claves b { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 1.1rem; font-weight: 600; }

/* Destinos: índice geográfico */
.destinos {
  margin-top: clamp(72px, 9vw, 128px);
  padding-block: clamp(56px, 7vw, 104px);
  background: var(--blanco);
  border-block: 1px solid var(--tinta);
}

.destinos__cab { grid-column: 1 / -1; align-items: end; }

.destinos__titulo { grid-column: 1 / span 6; }

.destinos__entrada { grid-column: 8 / -1; font-size: 1.0625rem; line-height: 1.6; }

.destinos__entrada p + p { margin-top: .8em; }

/* Índice por zonas: cada zona con su rótulo y sus regiones en tarjetas de cuatro en fila.
   Cada tarjeta: número, nombre, cuántas provincias, las destacadas y el resto plegado */
.zonas { grid-column: 1 / -1; margin-top: clamp(40px, 5vw, 64px); counter-reset: region; }

.zona { min-width: 0; padding-top: 16px; border-top: 2px solid var(--tinta); }

.zona + .zona { margin-top: clamp(48px, 5.5vw, 72px); }

/* Cada zona es un <details>: abierto en escritorio (el rótulo no pliega) y acordeón en móvil */
.zona__cab { display: block; list-style: none; }

.zona__cab::-webkit-details-marker { display: none; }

.zona__titulo {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
  font-size: clamp(1.45rem, 1.2rem + .8vw, 1.9rem);
  line-height: 1.1;
}

.zona__titulo span {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tinta-2);
}

.regiones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.reg {
  counter-increment: region;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px 22px 22px;
  background: var(--papel);
  border-top: 2px solid var(--tinta-2);
  box-shadow: 0 0 0 1px var(--filete);
  overflow-wrap: break-word;
  transition: border-color .3s var(--ease);
}

.reg:hover { border-top-color: var(--terracota); }

.reg__cab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 6px 12px;
}

.reg__cab::before {
  content: counter(region, decimal-leading-zero);
  grid-column: 1 / -1;
  font-family: var(--serif);
  font-size: .85rem;
  font-weight: 500;
  color: var(--terracota-osc);
  font-variant-numeric: tabular-nums;
}

.reg__nombre {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.1rem + .35vw, 1.4rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.012em;
  color: var(--tinta);
  text-decoration: none;
  text-wrap: balance;
  hyphens: none;
}

.reg__nombre:hover { color: var(--terracota-osc); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

.reg__cuenta {
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--tinta-2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.reg__destacadas {
  display: flex;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--filete);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.65;
}

.reg__destacadas a + a::before { content: "·"; display: inline-block; margin: 0 .5em; color: var(--terracota); }

.reg__destacadas a,
.reg__todas a {
  color: var(--tinta);
  text-decoration: none;
  transition: color .2s;
}

.reg__destacadas a:hover,
.reg__todas a:hover { color: var(--terracota-osc); text-decoration: underline; text-underline-offset: 3px; }

.reg__todas { margin-top: auto; }

.reg__todas summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--terracota-osc);
  list-style: none;
  cursor: pointer;
}

.reg__todas summary::-webkit-details-marker { display: none; }

.reg__todas summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .3s var(--ease);
}

.reg__todas[open] summary::after { transform: translateY(1px) rotate(-135deg); }

.reg__todas ul {
  columns: 2;
  column-gap: 18px;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed var(--filete);
  list-style: none;
  font-size: 1rem;
  line-height: 1.75;
}

.reg__todas li { break-inside: avoid; }

/* 04 · precio y plazo (franja) */
.franja {
  margin-top: clamp(72px, 9vw, 128px);
  padding-block: clamp(56px, 7vw, 104px);
  background: var(--papel-2);
}

.franja .bloque { margin-top: 0; }

/* Franjas de la portada: crema tostada y terracota oscura, para que los bloques no se confundan */
.franja--arena { background: var(--arena); }

.franja--arena .limites .w-tabla { background: none; }

.franja--oscura { background: var(--terracota-noche); color: var(--papel); }

.franja + .franja,
.franja + .destinos { margin-top: 0; }

.franja--oscura .bloque { border-top-color: rgba(251, 244, 236, .45); }

.franja--oscura .bloque::before { background: var(--terracota-luz); }

.franja--oscura h2 { color: var(--papel); }

.franja--oscura .num { color: var(--terracota-luz); }

.franja--oscura .num span { color: var(--crema-tenue); }

.franja--oscura .texto a { color: var(--blanco); text-decoration-color: rgba(255, 255, 255, .55); }

.franja--oscura .texto a:hover { color: var(--terracota-luz); text-decoration-color: currentColor; }

.franja--oscura .red__claves li { border-top-color: rgba(251, 244, 236, .3); color: var(--crema-tenue); }

.franja--oscura .red__claves b { color: var(--blanco); }

.franja--oscura .red__foto img { box-shadow: 0 0 0 1px rgba(251, 244, 236, .2); }

.precio__texto { grid-column: 1 / span 5; }

.precio__enlaces { grid-column: 7 / -1; }

.precio__lista { margin: 0; padding: 0; list-style: none; }

.enlace-grande {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 12px;
  padding: 24px 0;
  border-bottom: 1px solid var(--filete-medio);
  color: var(--tinta);
  text-decoration: none;
}

.precio__enlaces li:first-child .enlace-grande { padding-top: 6px; }

.enlace-grande__num { font-family: var(--serif); font-size: 1rem; font-weight: 500; color: var(--terracota-osc); padding-top: 6px; }

.enlace-grande__titulo {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.15rem + .8vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.018em;
  text-wrap: balance;
}

.enlace-grande__texto { display: block; margin-top: 8px; font-size: .975rem; line-height: 1.55; color: var(--tinta-2); }

.enlace-grande__flecha {
  width: 44px;
  height: 44px;
  margin-top: 2px;
  border: 1px solid var(--tinta);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s;
}

.enlace-grande__flecha svg { width: 18px; height: 10px; transition: transform .3s var(--ease); }

.enlace-grande:hover .enlace-grande__titulo { color: var(--terracota-osc); }

.enlace-grande:hover .enlace-grande__flecha { background: var(--terracota); border-color: var(--terracota); color: var(--blanco); }

.enlace-grande:hover .enlace-grande__flecha svg { transform: translateX(2px); }

.pago {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.pago li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--papel);
  border-top: 2px solid var(--terracota);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
}

.pago svg { width: 28px; height: 28px; color: var(--terracota-osc); }

/* 05 · de Italia a España */
.vuelta__foto { grid-column: 1 / span 5; margin: 0; }

.vuelta__foto img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }

.vuelta__texto { grid-column: 7 / -1; align-self: center; }

.vuelta__texto .boton { margin-top: 28px; }

/* Cierre de portada */
.cierre-portada { margin-block: clamp(72px, 9vw, 128px); }

.cierre-portada .w-cierre {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
}

.cierre-portada .w-cierre > p { grid-column: 1 / span 7; }

.cierre__acciones {
  grid-column: 9 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cierre__acciones .boton { width: 100%; justify-content: space-between; }

.w-cierre .cierre__horario {
  max-width: none;
  font-family: var(--sans);
  font-size: .85rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--crema-tenue);
}

/* ==========================================================================
   Recorrido del cotizador (_plantilla.html)
   ========================================================================== */

.recorrido { padding: clamp(28px, 4vw, 44px) 0 clamp(72px, 9vw, 120px); }

/* Migas a todo el ancho; encabezado y formulario en las columnas 3-10 de la retícula
   (≈ 820 px en escritorio), el mismo eje que el resto de la web */
.recorrido__migas { grid-column: 1 / -1; }

.recorrido__cab,
.recorrido .w-cotizador { grid-column: 3 / span 8; min-width: 0; }

.recorrido__cab {
  position: relative;
  margin-top: clamp(28px, 4vw, 48px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--tinta);
}

/* La marca terracota remata el filete bajo el H1 */
.recorrido__cab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 64px;
  height: 3px;
  background: var(--terracota);
}

.recorrido__marca {
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--terracota-osc);
}

.recorrido__titulo {
  margin-top: 10px;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -.024em;
}

/* El filete ya lo lleva el encabezado: el contenedor del formulario no repite el suyo
   y arranca pegado a él, sin hueco vacío */
.recorrido .w-cotizador {
  width: 100%;
  margin: 16px 0 0;
  padding-top: 0;
  border-top: 0;
}

.recorrido .w-cotizador::before { display: none; }

/* Encabezado y formulario con el mismo margen izquierdo: el formulario se ancla a la izquierda
   de la columna (no se centra dentro de ella) y el encabezado no pasa de su ancho máximo */
.recorrido__cab { max-width: 760px; }

.recorrido .w-cotizador--recorrido > *,
.recorrido .w-cotizador--recorrido > [data-cotizador-one],
.recorrido .w-cotizador--recorrido > .cotizador-one { margin-left: 0; margin-right: auto; }

/* ==========================================================================
   Pie
   ========================================================================== */

.pie {
  background: var(--tinta);
  color: var(--papel);
  padding: clamp(56px, 7vw, 88px) 0 28px;
  border-top: 4px solid var(--terracota);
}

.pie__rejilla { row-gap: 40px; }

.pie__marca { grid-column: 1 / span 3; }

.pie .marca { color: var(--papel); }

.pie .marca__nombre em { color: var(--terracota-luz); }

.pie__lema { margin-top: 18px; max-width: 30ch; font-size: .95rem; line-height: 1.55; color: var(--crema-tenue); }

.pie__col { grid-column: span 3; }

.pie__titulo {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(251, 244, 236, .22);
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--crema-tenue);
}

.pie__lista { margin: 0; padding: 0; list-style: none; }

.pie__lista li + li { margin-top: 8px; }

.pie__lista a {
  font-size: .95rem;
  line-height: 1.4;
  color: var(--papel);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .3s var(--ease), color .2s;
}

.pie__lista a:hover { color: var(--blanco); background-size: 100% 1px; }

.pie__tel {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--papel);
  text-decoration: none;
  white-space: nowrap;
}

.pie__tel:hover { color: var(--terracota-luz); }

.pie__nota { margin-top: 8px; font-size: .875rem; line-height: 1.5; color: var(--crema-tenue); }

.pie__nota a { color: var(--terracota-luz); }

.pie__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 20px;
  border-top: 1px solid rgba(251, 244, 236, .22);
  font-size: .85rem;
  color: var(--crema-tenue);
}

/* ==========================================================================
   Ajustes responsive (al final, para que manden sobre la regla base)
   ========================================================================== */

@media (max-width: 1100px) {
  .pag-cotiza__guia { grid-column: 1 / -1; padding-right: 0; }

  .pag-cotiza__widget { grid-column: 1 / -1; margin-top: 40px; }

  .regiones { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .pie__marca { grid-column: 1 / -1; }

  .pie__col { grid-column: span 4; }
}

@media (max-width: 960px) {
  .heroe__texto,
  .heroe__ficha { grid-column: 1 / -1; grid-row: auto; }

  .heroe__ficha { margin-top: 40px; }

  /* En una columna la ruta dibujada sobra: el texto ya la cuenta y la página no se alarga */
  .ruta { display: none; }

  .regiones { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Portada en una columna: texto, cotizador y, después, la ficha */
  .heroe__cotiza { order: 1; margin-top: 36px; padding-top: 28px; }

  .heroe__ficha { order: 2; }

  .servicio__cab,
  .servicio__texto,
  .recorrido__cab,
  .recorrido .w-cotizador { grid-column: 1 / -1; }

  .servicio__texto { margin-top: 22px; }

  /* Cabecera interior en una columna: migas, texto, foto y ficha */
  .pag-heroe .rejilla { display: flex; flex-direction: column; gap: 28px; }

  .pag-heroe .rejilla > * { align-self: stretch; margin: 0; padding-right: 0; }

  .pag-heroe .pag-heroe__migas { order: -2; }

  .pag-heroe .pag-heroe__foto .w-foto img { aspect-ratio: 16 / 9; max-height: none; min-height: 0; }

  [data-tipo="region"] .pag-heroe { padding-bottom: 36px; }

  /* En una columna la foto vuelve a su proporción: nada de estirarla */
  :root[data-tipo] .pag-heroe__foto:has(img) { display: block; min-height: 0; contain: none; }

  :root[data-tipo] .pag-heroe__foto .w-foto { display: block; }

  :root[data-tipo] .pag-heroe__foto .w-foto img { flex: none; aspect-ratio: 16 / 9; }

  /* Destinos y precio: primero la ficha y después la foto */
  :is([data-tipo="region"], [data-tipo="precio"], [data-tipo="provincia"], [data-tipo="ciudad"]) .pag-heroe__foto { order: 2; }

  /* La ficha del precio, en dos columnas cuando va a lo ancho */
  [data-tipo="precio"] .pag-heroe .w-datos { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .modos__cab,
  .modos__entrada,
  .red__texto,
  .red__foto,
  .precio__texto,
  .precio__enlaces,
  .vuelta__foto,
  .vuelta__texto,
  .destinos__titulo,
  .destinos__entrada,
  .limites__rotulo,
  .limites__plegable { grid-column: 1 / -1; }

  .modos__entrada,
  .destinos__entrada,
  .precio__enlaces,
  .vuelta__texto { margin-top: 24px; }

  .red__foto { margin-top: 40px; }

  .red__foto img { aspect-ratio: 16 / 10; }

  .vuelta__foto { order: 2; margin-top: 36px; }

  .vuelta__foto img { aspect-ratio: 16 / 10; }

  .limites .w-tabla { margin-top: 20px; }

  .modos { grid-template-columns: minmax(0, 1fr); }

  .modo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gutter); }

  .modo__cab,
  .modo h3 { grid-column: 1 / -1; }

  .modo__enlace { grid-column: 1 / -1; }

  .w-seccion > *,
  .w-faq > * { grid-column: 2 / -1; }

  .w-seccion::before,
  .w-faq::before { grid-column: 1; }

  .w-tabla { grid-column: 2 / -1; }

  .w-hijas__titulo,
  .w-hermanas__titulo,
  .w-hijas__rejilla,
  .w-hermanas__enlaces { grid-column: 1 / -1; }

  .w-hijas__titulo,
  .w-hermanas__titulo { margin-bottom: 22px; padding-right: 0; }

  .cierre-portada .w-cierre > p,
  .cierre__acciones { grid-column: 1 / -1; }

  .cierre__acciones { margin-top: 28px; }

  .cierre__acciones .boton { width: auto; }
}

@media (max-width: 860px) {
  :root { --cab: 64px; }

  .cab__boton { display: inline-flex; }

  .cab__marco { flex-wrap: wrap; }

  .menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; padding-bottom: 16px; }

  .js .cab__marco { flex-wrap: nowrap; }

  .js .menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: auto;
    max-height: calc(100vh - var(--cab));
    max-height: calc(100dvh - var(--cab));
    overflow-y: auto;
    padding: 6px var(--margen) 24px;
    background: var(--papel);
    border-bottom: 1px solid var(--tinta);
    box-shadow: 0 24px 40px -24px rgba(42, 29, 23, .35);
  }

  .js .cab.abierto .menu { display: flex; }

  .menu__lista { flex-direction: column; align-items: stretch; gap: 0; }

  .menu__item { border-bottom: 1px solid var(--filete); }

  .menu__enlace { width: 100%; justify-content: space-between; padding: 15px 0; font-size: 1.15rem; }

  .menu__enlace::after { display: none; }

  .menu__item--sub > .menu__enlace {
    padding-bottom: 6px;
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--tinta-2);
    cursor: default;
    pointer-events: none;
  }

  .menu__flecha { display: none; }

  .submenu,
  .menu__item--sub:hover .submenu,
  .menu__item--sub:focus-within .submenu {
    position: static;
    width: auto;
    padding: 0 0 8px;
    background: transparent;
    border-top: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .submenu::before { display: none; }

  .submenu__enlace { padding: 10px 0; grid-template-columns: 30px minmax(0, 1fr); }

  .submenu li + li .submenu__enlace { border-top: 0; }

  .submenu__texto { display: none; }

  .submenu__enlace:hover { background: transparent; }

  .menu .boton { margin-top: 20px; justify-content: space-between; min-height: 50px; }

  .w-plegar { display: inline-flex; }

  .w-plegable.is-plegado > a:nth-child(n+9) { display: none; }

  .w-hermanas__enlaces { columns: 2; }

  .franja .pago { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }

  .cab__marco { gap: 12px; }

  .marca__simbolo { width: 30px; height: 30px; }

  .marca__nombre { font-size: 1.08rem; }

  .cab__boton { padding: 8px 12px; }

  .heroe .w-h1 { font-size: clamp(2.3rem, 1.6rem + 3.4vw, 3rem); }

  .w-h1,
  :root[data-tipo] .pag-heroe .w-h1 { font-size: clamp(2rem, 1.5rem + 2.6vw, 2.6rem); }

  .w-entradilla { font-size: 1.125rem; }

  .heroe__acciones .boton,
  .pag-heroe__acciones .boton { flex: 1 1 100%; justify-content: space-between; }

  /* Fichas compactas: dos columnas apretadas, rótulo sobre valor (portada e interiores) */
  .w-datos__fila {
    grid-template-columns: 1.9rem minmax(0, 1fr);
    row-gap: 2px;
    padding: 12px 14px;
  }

  .w-datos__fila dt,
  .w-datos__fila dd { grid-column: 2; }

  .w-datos__fila::before { grid-row: 1 / span 2; }

  .heroe__ficha .w-datos,
  [data-tipo] .pag-heroe .w-datos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
  }

  .heroe__ficha .w-datos__fila,
  .pag-heroe .w-datos .w-datos__fila {
    grid-template-columns: minmax(0, 1fr);
    padding: 11px 12px 13px;
    box-shadow: 1px 0 0 var(--filete), 0 1px 0 var(--filete);
  }

  .heroe__ficha .w-datos__fila + .w-datos__fila { border-top: 0; }

  /* En móvil la numeración sobra: el rótulo manda */
  .heroe__ficha .w-datos__fila::before,
  .pag-heroe .w-datos .w-datos__fila::before { display: none; }

  .heroe__ficha .w-datos dt,
  .heroe__ficha .w-datos dd,
  .pag-heroe .w-datos .w-datos__fila dt,
  .pag-heroe .w-datos .w-datos__fila dd { grid-column: 1; }

  .heroe__ficha .w-datos dt,
  .pag-heroe .w-datos dt { font-size: .72rem; }

  .heroe__ficha .w-datos dd,
  .pag-heroe .w-datos dd { font-size: .925rem; line-height: 1.4; overflow-wrap: break-word; }

  .pag-heroe .w-datos .w-datos__fila:nth-child(even):last-child { grid-column: auto; }

  .pag-heroe .w-datos .w-datos__fila:nth-child(odd):last-child { grid-column: 1 / -1; }

  /* Región, provincia y ciudad: el primero va a lo ancho, así que la que se queda sola es la par */
  :is([data-tipo="region"], [data-tipo="provincia"], [data-tipo="ciudad"]) .pag-heroe .w-datos .w-datos__fila:nth-child(odd):not(:first-child):last-child { grid-column: auto; }

  :is([data-tipo="region"], [data-tipo="provincia"], [data-tipo="ciudad"]) .pag-heroe .w-datos .w-datos__fila:nth-child(even):last-child { grid-column: 1 / -1; }

  .pag-heroe .w-datos__fila--cifra dd { font-size: 1.9rem; }

  /* Límites por envío, compactos: modalidad sobre sus cifras */
  .ficha__limites { padding: 12px 14px 4px; }

  .ficha__limites li { grid-template-columns: minmax(0, 1fr); row-gap: 2px; padding: 8px 0; font-size: .9rem; }

  .ficha__limites b { font-size: .975rem; }

  .pag-heroe .w-datos__fila--sigla dd { min-height: 32px; font-size: 1.1rem; }

  /* Precio: el titular largo, más contenido, para que el cotizador suba */
  :root[data-tipo="precio"] .pag-heroe .w-h1 { font-size: clamp(1.7rem, 1.35rem + 1.6vw, 2.05rem); line-height: 1.1; }

  /* En móvil la cabecera interior lleva un solo botón: el que baja al cotizador */
  .pag-heroe__acciones .boton--sec { display: none; }

  .w-foto img { aspect-ratio: 16 / 10; }

  .heroe__cotiza-rotulo { margin-bottom: 10px; }

  .heroe__cotiza-rotulo span + span { font-size: .85rem; }

  .pasos--fila { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }

  /* Cuadrícula de provincias: una celda por fila, número y nombre en la misma línea */
  [data-tipo="region"] .w-hijas__rejilla { grid-template-columns: minmax(0, 1fr); }

  [data-tipo="region"] .w-tarjeta {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr);
    gap: 4px 8px;
    padding: 14px 40px 16px 14px;
  }

  [data-tipo="region"] .w-tarjeta::before { grid-row: 1 / span 2; font-size: 1.25rem; padding-top: 2px; }

  [data-tipo="region"] .w-tarjeta::after { top: 20px; right: 14px; }

  .banda img { height: 220px; }

  /* Destinos: un acordeón por zona (Norte, Centro, Sur, Islas), plegado por web.js;
     dentro, tarjetas de dos en dos, compactas */
  .zonas { margin-top: 28px; border-bottom: 1px solid var(--tinta); }

  .zona { padding-top: 0; border-top: 1px solid var(--tinta); }

  .zona + .zona { margin-top: 0; }

  .zona__cab {
    position: relative;
    padding: 16px 40px 16px 0;
    cursor: pointer;
  }

  .zona__cab::after {
    content: "";
    position: absolute;
    right: 6px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 1.5px solid var(--terracota);
    border-bottom: 1.5px solid var(--terracota);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .3s var(--ease);
  }

  .zona[open] > .zona__cab::after { transform: translateY(-30%) rotate(-135deg); }

  .zona__titulo { margin-bottom: 0; font-size: 1.4rem; }

  .zona__titulo span { font-size: .8125rem; }

  .zona .regiones { padding-bottom: 20px; }

  .regiones { gap: 8px; }

  .reg { gap: 8px; padding: 12px 12px 14px; }

  .reg__cab { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }

  .reg__nombre { font-size: 1.1rem; }

  .reg__cuenta { font-size: .8125rem; }

  .reg__destacadas { padding-top: 8px; font-size: .9375rem; line-height: 1.6; }

  .reg__todas summary { font-size: .875rem; }

  .reg__todas ul { columns: 1; font-size: .9375rem; }

  /* La foto de la red se queda en escritorio: en móvil la página se acorta */
  .red__foto { display: none; }

  /* Límites de la portada: plegados tras un botón */
  .limites__abrir {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 11px 16px;
    border: 1px solid var(--tinta);
    border-radius: 2px;
    background: var(--arena);
    color: var(--tinta);
    font: 600 .925rem/1.2 var(--sans);
    list-style: none;
    cursor: pointer;
  }

  .limites__abrir::-webkit-details-marker { display: none; }

  .limites__abrir::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
  }

  .limites__plegable[open] .limites__abrir::after { transform: translateY(2px) rotate(-135deg); }

  /* Tablas con data-label: de tabla a una tarjeta por fila */
  .w-tabla.w-tabla--apilada { overflow: visible; background: none; }

  .w-tabla.w-tabla--apilada table,
  .w-tabla--apilada tbody,
  .w-tabla--apilada tr,
  .w-tabla--apilada tbody th,
  .w-tabla--apilada td { display: block; width: auto; min-width: 0; }

  .w-tabla--apilada thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .w-tabla--apilada tbody tr {
    padding: 14px 16px 6px;
    background: var(--blanco);
    border-top: 2px solid var(--tinta);
    box-shadow: 0 0 0 1px var(--filete);
  }

  .w-tabla--apilada tbody tr + tr { margin-top: 12px; }

  .w-tabla--apilada tbody tr:hover { background: var(--blanco); }

  .w-tabla.w-tabla--apilada tbody tr > * {
    display: grid;
    grid-template-columns: 6.5rem minmax(0, 1fr);
    column-gap: 12px;
    padding: 9px 0;
    font-size: .95rem;
    font-weight: 400;
  }

  .w-tabla--apilada tbody tr > *::before {
    content: attr(data-label);
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tinta-2);
  }

  .w-tabla.w-tabla--apilada tbody tr > :first-child {
    display: block;
    padding: 0 0 8px;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
  }

  .w-tabla--apilada tbody tr > :first-child::before { content: none; }

  .w-tabla.w-tabla--apilada tbody tr > :last-child { border-bottom: 0; }

  /* Límites de la portada, aún más compactos: dos datos por línea, rótulo sobre valor */
  .limites .w-tabla.w-tabla--apilada tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    padding: 12px 14px 10px;
  }

  .limites .w-tabla.w-tabla--apilada tbody tr > * {
    display: block;
    padding: 4px 0 6px;
    border-bottom: 0;
    font-size: .875rem;
    line-height: 1.4;
  }

  .limites .w-tabla.w-tabla--apilada tbody tr > *::before { display: block; line-height: 1.4; font-size: .68rem; }

  .limites .w-tabla.w-tabla--apilada tbody tr > :first-child { grid-column: 1 / -1; padding-bottom: 4px; font-size: 1.1rem; }

  .limites .w-tabla.w-tabla--apilada tbody tr > :last-child { grid-column: 1 / -1; }

  /* Pie de la banda debajo de la foto, con su filete, como el de las interiores */
  .banda__lema {
    position: static;
    width: auto;
    margin: 14px var(--margen) 0;
    padding: 12px 0 0;
    background: transparent;
    border-top: 1px solid var(--filete-medio);
  }

  .banda__lema p { font-size: 1.2rem; line-height: 1.3; }

  .banda__lema small { margin-top: 8px; font-size: .75rem; }

  .modo { display: flex; padding: 22px 20px 24px; }

  .red__claves { grid-template-columns: minmax(0, 1fr); }

  .pago,
  .franja .pago { grid-template-columns: minmax(0, 1fr); gap: 8px; }

  .pago li { flex-direction: row; align-items: center; gap: 14px; padding: 12px 14px; }

  .pago svg { width: 24px; height: 24px; }

  .enlace-grande { grid-template-columns: 2.2rem minmax(0, 1fr) auto; }

  .enlace-grande__flecha { width: 38px; height: 38px; }

  .w-seccion,
  .w-faq,
  .w-hijas,
  .w-hermanas { display: block; }

  .w-seccion::before,
  .w-faq::before { display: block; padding: 0 0 12px; }

  .w-seccion > h2,
  .w-faq > h2 { margin-bottom: 20px; }

  .w-tabla table { min-width: 480px; font-size: .9rem; }

  .w-hijas__rejilla { grid-template-columns: minmax(0, 1fr); }

  .w-tarjeta { padding: 14px 32px 16px 0; }

  /* Hermanas en móvil: rejilla de dos columnas de celdas iguales, numeradas, nunca un muro */
  .w-hermanas__enlaces {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    columns: auto;
  }

  .w-hermanas__enlaces a {
    flex-direction: column;
    gap: 2px;
    min-height: 100%;
    padding: 10px 12px 12px;
    background: var(--blanco);
    border-bottom: 0;
    border-top: 2px solid var(--tinta);
    box-shadow: 0 0 0 1px var(--filete);
    font-size: .9rem;
    overflow-wrap: break-word;
  }

  .w-hermanas__enlaces a::after { display: none; }

  .w-hermanas__enlaces a:hover { padding-left: 12px; border-top-color: var(--terracota); }

  .w-cierre { padding: 32px 22px; }

  .pie__col { grid-column: 1 / -1; }

  .pie__base { flex-direction: column; }
}

@media (max-width: 420px) {
  .marca { gap: 9px; }

  .marca__nombre { font-size: 1.02rem; }

  .cab__boton { width: 44px; justify-content: center; padding: 0; }

  .cab__boton-texto { display: none; }
}

@media (max-width: 360px) {
  .regiones { grid-template-columns: minmax(0, 1fr); }
}

/* En escritorio las zonas del índice no se pliegan: su rótulo es solo un título */
@media (min-width: 641px) {
  .zona__cab { pointer-events: none; cursor: default; }
}

@media (prefers-reduced-motion: reduce) {
  *:not(.w-cotizador *),
  *:not(.w-cotizador *)::before,
  *:not(.w-cotizador *)::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

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