/* Complementos propios de la versión estática (lo que antes aportaban los plugins
   de WordPress): cookies, WhatsApp, mensajes del formulario y pequeños ajustes. */

/* Banner de cookies: tarjeta flotante azul noche con filete dorado (main.js → mostrarBanner) */
.r40-cookies {
  position: fixed; left: 20px; bottom: 20px; z-index: 99999; box-sizing: border-box; width: min(430px, calc(100vw - 40px));
  display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; padding: 22px 22px 20px; overflow: hidden;
  border-radius: 22px; color: #e8eef7; font: 14px/1.5 'Lexend', system-ui, sans-serif;
  background: radial-gradient(120% 90% at 100% 0%, rgba(209, 162, 62, .2), transparent 55%), linear-gradient(160deg, #1d4278, #15305a 50%, #0c1f3a);
  box-shadow: 0 30px 60px -24px rgba(8, 20, 40, .7), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  animation: r40-cookies-entra .6s cubic-bezier(.2, .8, .2, 1) .6s both;
}
.r40-cookies::before {   /* filete superior cielo → dorado, como el de la cabecera */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--r40-cielo), var(--r40-oro));
}
.r40-cookies.is-saliendo { animation: r40-cookies-sale .35s ease-in both; }
.r40-cookies__icono {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px;
  background: rgba(240, 210, 140, .12); box-shadow: inset 0 0 0 1px rgba(240, 210, 140, .3);
}
.r40-cookies__icono svg { width: 26px; height: 26px; fill: #f0d28c; animation: r40-cookies-galleta 1.2s ease 1.2s both; }
.r40-cookies__icono svg circle { fill: #15305a; }
.r40-cookies__txt strong { display: block; margin: 2px 0 4px; color: #fff; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.r40-cookies__txt p { margin: 0; color: #b9c8dc; font-size: 13.5px; }
.r40-cookies__txt a { color: #f0d28c; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.r40-cookies__btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.r40-cookies__btns button {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer; font: 700 14px/1 'Lexend', system-ui, sans-serif; letter-spacing: .02em;
  transition: transform .2s, background .2s, border-color .2s, filter .2s;
}
.r40-cookies__btns button:hover { transform: translateY(-2px); }
.r40-cookies__btns button:focus-visible { outline: 2px solid #f0d28c; outline-offset: 3px; }
.r40-cookies .r40-cookies__no { border: 1.5px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); color: #fff; }
.r40-cookies .r40-cookies__no:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
.r40-cookies .r40-cookies__si { border: 0; background: linear-gradient(120deg, #e9cf8f, var(--r40-oro) 45%, var(--r40-oro-osc)); color: var(--r40-noche); }
.r40-cookies .r40-cookies__si:hover { filter: brightness(1.06); }
@keyframes r40-cookies-entra { from { opacity: 0; transform: translateY(30px) scale(.97); } }
@keyframes r40-cookies-sale { to { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes r40-cookies-galleta { 0%, 100% { transform: none; } 30% { transform: rotate(-14deg); } 60% { transform: rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .r40-cookies, .r40-cookies.is-saliendo, .r40-cookies__icono svg { animation: none; } }
@media (max-width: 480px) {
  .r40-cookies { left: 10px; bottom: 10px; width: calc(100vw - 20px); padding: 14px; gap: 10px; grid-template-columns: 1fr; border-radius: 14px; max-height: calc(100dvh - 100px); overflow-y: auto; }
  .r40-cookies__icono { display: none; }
  .r40-cookies__txt strong { font-size: 15px; margin: 0 0 4px; }
  .r40-cookies__txt p { font-size: 14px; line-height: 1.5; color: #e0e8f2; }
  .r40-cookies__btns { gap: 10px; }
  .r40-cookies__btns button { min-height: 44px; font-size: 14px; }
}

/* WhatsApp flotante, abajo a la derecha */
.r40-wa {
  position: fixed; right: 20px; bottom: 24px; z-index: 9990;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.r40-wa:hover { scale: 1.08; text-decoration: none; }
.r40-wa { transition: scale .2s; }   /* main.js le pone translate para que suba al llegar al dibujo del pie */
.r40-wa:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #128c7e; }
.r40-wa svg { width: 30px; height: 30px; fill: currentColor; }
@media (max-width: 600px) { .r40-wa { right: 14px; bottom: 14px; width: 48px; height: 48px; } }

/* Formulario: mensajes */
.r40-form-ok {
  margin: 16px 0 0; padding: 18px 20px; border-radius: 12px;
  background: #e8f5ec; color: #1b5e34; font-weight: 600; text-align: center;
}
.r40-form-ok[hidden], .r40-form-error[hidden] { display: none; }
.r40-form-error { margin: 12px 0 0; color: #b00020; font-weight: 600; }
.r40-form input[type="date"] { min-height: 40px; }

/* Menú de idioma desplegable: sin JS no se abre, con JS pasa a .open (estilos de wp.css) */
.r40-lang__dropdown img { width: 20px; height: 15px; object-fit: cover; }

/* Reseñas de Google (Trustindex): sin sus fuentes externas, con la tipografía de la web */
.trustindex-static, .trustindex-static * { font-family: 'Lexend', sans-serif; }


/* Barra fija en móvil: Llamar · WhatsApp · Reservar (en escritorio no existe) */
.r40-barra { display: none; }
@media (max-width: 768px) {
  .r40-barra {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9995;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: #fff; box-shadow: 0 -4px 16px rgba(18, 38, 63, .18);
    font-family: 'Lexend', system-ui, sans-serif;
  }
  .r40-barra__item {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    min-height: 46px; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 600;
    text-decoration: none; white-space: nowrap;
  }
  .r40-barra__item:hover, .r40-barra__item:focus { color: #fff; text-decoration: none; }
  .r40-barra__item:focus-visible { outline: 3px solid #12263f; outline-offset: 2px; }
  .r40-barra__item svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
  .r40-barra__tel { background: #12263f; }
  .r40-barra__wa { background: #128c4a; }
  .r40-barra__res { background: linear-gradient(90deg, #7b5b22, #a8854a); }
  /* hueco para que la barra no tape el final de la página, y el aviso de cookies queda encima de ella */
  body.r40-con-barra { padding-bottom: 66px; }
  body.r40-con-barra .r40-cookies { bottom: 74px; }
  /* el círculo de WhatsApp sobra: la barra ya lo incluye */
  body.r40-con-barra .r40-wa { display: none; }
}

/* Página de gracias tras enviar el formulario */
.r40-gracias { max-width: 760px; margin: 0 auto; padding: 150px 20px 70px; text-align: center; font-family: 'Lexend', system-ui, sans-serif; color: #12263f; }
.r40-gracias__ok { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 18px; background: #e8f5ec; display: flex; align-items: center; justify-content: center; }
.r40-gracias__ok svg { width: 40px; height: 40px; fill: #1b7a43; }
.r40-gracias h1 { margin: 0 0 8px; font-size: clamp(26px, 5vw, 36px); line-height: 1.2; }
.r40-gracias__intro { margin: 0 0 28px; font-size: 18px; color: #33475b; }
.r40-gracias__pasos { list-style: none; margin: 0 0 32px; padding: 0; text-align: left; display: grid; gap: 14px; }
.r40-gracias__pasos li { display: flex; gap: 16px; align-items: flex-start; background: #eff7fc; border: 1px solid #d5e3ee; border-radius: 14px; padding: 16px 18px; }
.r40-gracias__n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(90deg, #7b5b22, #a8854a); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.r40-gracias__pasos h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; color: #12263f; }
.r40-gracias__pasos p { margin: 0; font-size: 15px; line-height: 1.5; color: #33475b; }
.r40-gracias__prisa { margin: 0 0 14px; font-weight: 500; }
.r40-gracias__botones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.r40-gracias__btn { padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: 15px; color: #fff; text-decoration: none; }
.r40-gracias__btn:hover { color: #fff; filter: brightness(1.1); text-decoration: none; }
.r40-gracias__btn:focus-visible { outline: 3px solid #12263f; outline-offset: 2px; }
.r40-gracias__btn--tel { background: #12263f; }
.r40-gracias__btn--wa { background: #128c4a; }
.r40-gracias__btn--inicio { background: transparent; color: #12263f; border: 2px solid #12263f; }
.r40-gracias__btn--inicio:hover { color: #12263f; }

/* Formulario de reserva: etiquetas visibles, campos más cómodos, desplegable opcional y botón premium */
form.r40-form .elementor-form-fields-wrapper { gap: 0; }
form.r40-form .elementor-field-group { margin-bottom: 14px; }
form.r40-form label.elementor-field-label {
  display: block; margin: 0 0 6px; padding: 0; font-family: 'Lexend', system-ui, sans-serif;
  font-size: 13px; font-weight: 600; letter-spacing: .01em; color: #12263f;
}
form.r40-form .elementor-field-required > label.elementor-field-label::after { content: " *"; color: #a8854a; }
form.r40-form input.elementor-field, form.r40-form select, form.r40-form textarea.elementor-field {
  min-height: 50px; border: 1.5px solid #c3d3e1; border-radius: 12px; background-color: #fff; color: #12263f;
  font-family: 'Lexend', system-ui, sans-serif; font-size: 15px; padding: 10px 14px; box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
form.r40-form textarea.elementor-field { min-height: 110px; }
form.r40-form input.elementor-field::placeholder, form.r40-form textarea.elementor-field::placeholder { color: #8a9bab; }
form.r40-form input.elementor-field:hover, form.r40-form select:hover, form.r40-form textarea.elementor-field:hover { border-color: #8aa0b4; }
form.r40-form input.elementor-field:focus, form.r40-form select:focus, form.r40-form textarea.elementor-field:focus {
  outline: none; border-color: #c4a169; box-shadow: 0 0 0 4px rgba(196, 161, 105, .28);
}
form.r40-form input.elementor-field:user-invalid, form.r40-form select:user-invalid { border-color: #b00020; }

/* botón de envío y nota de confianza */
form.r40-form .e-form__buttons { margin-bottom: 0; }
form.r40-form .e-form__buttons .elementor-button { min-height: 54px; border-radius: 14px; letter-spacing: .06em; transition: transform .25s, box-shadow .25s, filter .25s; }
form.r40-form .e-form__buttons .elementor-button:hover { transform: translateY(-2px); filter: brightness(1.07); box-shadow: 0 14px 30px rgba(123, 91, 34, .38); }
form.r40-form .e-form__buttons .elementor-button:active { transform: translateY(0); }
form.r40-form .e-form__buttons .elementor-button:focus-visible { outline: 3px solid #12263f; outline-offset: 3px; }
form.r40-form .e-form__buttons .elementor-button[disabled] { opacity: .7; cursor: progress; }
form.r40-form .r40-form-nota { margin: 12px 0 0; text-align: center; font-family: 'Lexend', system-ui, sans-serif; font-size: 12.5px; line-height: 1.4; color: #4a6076; }
@media (prefers-reduced-motion: reduce) { form.r40-form * { transition: none !important; } }
form.r40-form .elementor-form-fields-wrapper label.elementor-field-label { color: #12263f !important; font-size: 13px !important; font-weight: 600 !important; }
form.r40-form .elementor-field-group-modelo { width: 100% !important; max-width: 100% !important; flex-basis: 100% !important; }

/* Portada: imagen nueva (la montaña, la carretera y el logo ya van dentro de la propia imagen) */
.r40-portada .elementor .elementor-element.elementor-element-70f66bf:not(.elementor-motion-effects-element-type-background),
.r40-portada .elementor .elementor-element.elementor-element-70f66bf > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: url("../img/hero-ruta40.webp"); background-position: center 60%; background-size: cover; background-repeat: no-repeat;
}
@media (max-width: 768px) {
  .r40-portada .elementor .elementor-element.elementor-element-70f66bf:not(.elementor-motion-effects-element-type-background) { background-image: url("../img/hero-ruta40-movil.webp"); background-position: center 55%; }
}
/* sin velo oscuro sobre la foto, y el logo suelto de antes se oculta (sigue ocupando su sitio) */
.r40-portada .elementor .elementor-element.elementor-element-70f66bf .elementor-element-d5a238d img { visibility: hidden; }
/* Escritorio: la portada tiene la proporción de la imagen (se ve entera, con el lema del logo) y la tarjeta del formulario
   siempre empieza sobre la carretera, nunca encima del logo. En pantallas muy anchas no pasa de la altura de la ventana. */
@media (min-width: 769px) {
  .r40-portada .elementor .elementor-element.elementor-element-70f66bf.e-con {
    padding: 0 !important; min-height: 0 !important; height: clamp(440px, 64.2vw, 90vh) !important;
    background-position: center 55%;
  }
  .r40-portada .elementor .elementor-element.elementor-element-70f66bf .elementor-element-d5a238d { display: none; }
  /* WordPress montaba la tarjeta 350 px por encima del final de la portada; ahora solo se solapa con la carretera */
  .r40-portada .elementor .elementor-element.elementor-element-70f66bf.e-con { margin-bottom: 0 !important; }
  .r40-portada .elementor .elementor-element.elementor-element-2d89d17.e-con { margin-top: -90px !important; }
}
/* velo muy suave sobre la foto (unifica el tono y baja un poco el contraste) */
.r40-portada .elementor .elementor-element.elementor-element-70f66bf::before {
  opacity: 1 !important; mix-blend-mode: normal !important;
  background: linear-gradient(to bottom, rgba(24, 44, 74, .12), rgba(24, 44, 74, .06) 55%, rgba(24, 44, 74, .12)) !important;
}

/* Aspecto más natural: la foto se funde con el fondo de la página y la tarjeta del formulario es más suave */
.r40-portada .elementor .elementor-element.elementor-element-70f66bf::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none; z-index: 0;
  background: linear-gradient(to bottom, rgba(239, 247, 252, 0), #eff7fc);
}
.r40-portada .elementor .elementor-element.elementor-element-2d89d17:not(.elementor-motion-effects-element-type-background) {
  background-color: rgba(255, 255, 255, .93) !important;
  -webkit-backdrop-filter: blur(12px) saturate(120%); backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 0 24px 60px rgba(18, 38, 63, .16), 0 2px 8px rgba(18, 38, 63, .06) !important;
  border: 1px solid rgba(255, 255, 255, .7);
}

/* ---- Formulario v2: más compacto y cuidado ---- */
/* tarjeta */
.r40-portada .elementor .elementor-element.elementor-element-2d89d17.e-con { border-radius: 22px; padding: 30px 34px 26px; border-top: 3px solid #c4a169; }
.r40-portada .elementor .elementor-element.elementor-element-2d89d17 .elementor-heading-title {
  text-shadow: none !important; letter-spacing: -.005em; margin-bottom: 4px;
}
.r40-ticks { margin: 8px 0 22px; }
/* campos con icono a la izquierda */
form.r40-form #form-field-name, form.r40-form #form-field-field_529be45, form.r40-form #form-field-email {
  padding-left: 46px; background-repeat: no-repeat; background-position: 15px center; background-size: 20px;
}
form.r40-form #form-field-name { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a8854a'%3E%3Cpath d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5zm0 2c-3.33 0-10 1.67-10 5v3h20v-3c0-3.33-6.67-5-10-5z'/%3E%3C/svg%3E"); }
form.r40-form #form-field-field_529be45 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a8854a'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.6 21 3 13.4 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
form.r40-form #form-field-email { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a8854a'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }
form.r40-form input.elementor-field::placeholder, form.r40-form textarea.elementor-field::placeholder { color: #6b7f92; }
form.r40-form input.elementor-field, form.r40-form select, form.r40-form textarea.elementor-field { background-color: #fbfdff; }
form.r40-form input.elementor-field:focus, form.r40-form select:focus, form.r40-form textarea.elementor-field:focus { background-color: #fff; }
/* separación entre filas y columnas */
form.r40-form .elementor-form-fields-wrapper { column-gap: 14px; row-gap: 0; }
form.r40-form .elementor-field-group.elementor-col-50 { width: calc(50% - 7px); flex: 0 0 calc(50% - 7px); }
form.r40-form .elementor-field-group { margin-bottom: 16px; }
/* casilla de privacidad */
form.r40-form input[type="checkbox"] { accent-color: #a8854a; width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; cursor: pointer; }
form.r40-form .elementor-field-option label { font-family: 'Lexend', system-ui, sans-serif; font-size: 13.5px; color: #33475b; cursor: pointer; }
/* botón con flecha y destello */
form.r40-form .e-form__buttons .elementor-button { position: relative; overflow: hidden; }
form.r40-form .e-form__buttons .elementor-button-text::after { content: "→"; display: inline-block; margin-left: 10px; transition: transform .25s; }
form.r40-form .e-form__buttons .elementor-button:hover .elementor-button-text::after { transform: translateX(5px); }
form.r40-form .e-form__buttons .elementor-button::before {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transition: left .6s;
}
form.r40-form .e-form__buttons .elementor-button:hover::before { left: 130%; }
@media (max-width: 768px) { .r40-portada .elementor .elementor-element.elementor-element-2d89d17.e-con { padding: 22px 16px 20px; } }
@media (max-width: 520px) {
  form.r40-form .elementor-field-group.elementor-col-50 { width: 100%; flex: 0 0 100%; }
  form.r40-form .elementor-field-group.elementor-col-50.elementor-field-group-fecha_recogida,
  form.r40-form .elementor-field-group.elementor-col-50.elementor-field-group-fecha_devolucion { width: calc(50% - 7px); flex: 0 0 calc(50% - 7px); }
}
@media (prefers-reduced-motion: reduce) { form.r40-form .e-form__buttons .elementor-button::before { display: none; } }
form.r40-form .elementor-select-wrapper select { border: 1.5px solid #c3d3e1 !important; border-radius: 12px !important; }
form.r40-form .elementor-select-wrapper select:hover { border-color: #8aa0b4 !important; }
form.r40-form .elementor-select-wrapper select:focus { border-color: #c4a169 !important; }

/* Garantías de la portada: una barra única con borde dorado, separadores finos, icono azul marino y destello */
.r40-ticks {
  --oro: #b08d52;
  position: relative; list-style: none; margin: 10px 0 24px; padding: 14px 6px; width: 100%; box-sizing: border-box;
  display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; isolation: isolate;
  border-radius: 18px; font-family: 'Lexend', system-ui, sans-serif;
  background: radial-gradient(120% 140% at 50% 0%, #fffdf8 0%, #f8f1e4 100%);
  box-shadow: 0 14px 34px -14px rgba(123, 91, 34, .35), 0 2px 6px rgba(18, 38, 63, .05), inset 0 1px 0 #fff;
  animation: r40-barra-in .8s cubic-bezier(.2, .8, .2, 1) .2s both;
}
.r40-ticks::before {   /* borde degradado dorado */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(120deg, #f1deb6, #b08d52 30%, #f6e7c8 50%, #a07c43 75%, #e6cb97);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.r40-ticks::after {   /* destello que recorre la barra una vez */
  content: ""; position: absolute; top: 0; left: -40%; width: 30%; height: 100%; transform: skewX(-20deg); pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent);
  animation: r40-barra-brillo 1.4s ease 1.2s 1 both;
}
.r40-ticks li {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 2px 10px;
  color: #12263f; text-align: left;
  animation: r40-tick-in .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 110ms + 450ms);
}
.r40-ticks li + li::before {   /* separador vertical fino */
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(176, 141, 82, .45), transparent);
}
.r40-ticks i {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 25%, #2a5283, #0d1f36 70%);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(176, 141, 82, .55), 0 6px 12px rgba(13, 31, 54, .3);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.r40-ticks li:hover i { transform: translateY(-2px) rotate(-6deg); }
.r40-ticks svg { width: 17px; height: 17px; fill: #ecd3a0; }
.r40-ticks span { font-size: 13px; font-weight: 600; line-height: 1.25; letter-spacing: .01em; }
@keyframes r40-barra-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes r40-tick-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes r40-barra-brillo { from { left: -40%; } to { left: 140%; } }
@media (max-width: 900px) {
  .r40-ticks { grid-template-columns: 1fr 1fr; padding: 4px 4px; }
  .r40-ticks li { justify-content: flex-start; padding: 12px 12px; }
  .r40-ticks li + li::before { display: none; }
  .r40-ticks li:nth-child(even) { border-left: 1px solid rgba(176, 141, 82, .3); }
  .r40-ticks li:nth-child(n+3) { border-top: 1px solid rgba(176, 141, 82, .3); }
}
@media (max-width: 400px) {
  .r40-ticks li { gap: 8px; padding: 10px 8px; }
  .r40-ticks i { width: 28px; height: 28px; } .r40-ticks svg { width: 14px; height: 14px; }
  .r40-ticks span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .r40-ticks, .r40-ticks li { animation: none; } .r40-ticks::after { display: none; } }
/* escritorio: icono arriba y texto debajo, centrado; cabe en cualquier idioma (el texto puede ir en dos líneas) */
@media (min-width: 901px) {
  .r40-ticks { padding: 16px 8px 14px !important; }
  .r40-ticks li { flex-direction: column; gap: 9px; padding: 0 10px; text-align: center; }
  .r40-ticks span { font-size: 13px; max-width: 150px; }
}

/* garantías: iconos alineados arriba aunque un texto ocupe dos líneas */
@media (min-width: 901px) { .r40-ticks li { justify-content: flex-start; } }


/* ===== Formulario con los colores de la imagen de la portada =====
   cielo #2b6cb8 · montaña/noche #15305a · hierba dorada #d1a23e / #a97b22 · nieve #f5f8fc */
:root { --r40-cielo: #2b6cb8; --r40-noche: #15305a; --r40-oro: #d1a23e; --r40-oro-osc: #a97b22; --r40-nieve: #f5f8fc; }

/* tarjeta: línea superior cielo → hierba */
.r40-portada .elementor .elementor-element.elementor-element-2d89d17.e-con { border-top: 0; overflow: hidden; }
.r40-portada .elementor .elementor-element.elementor-element-2d89d17.e-con::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; pointer-events: none;
  background: linear-gradient(90deg, var(--r40-noche), var(--r40-cielo) 45%, var(--r40-oro) 100%);
}
/* título en azul de montaña con un brillo de cielo, y la línea de debajo en dorado de hierba */
.r40-portada .elementor-element.elementor-element-0fa36a4 .elementor-heading-title {
  background: linear-gradient(135deg, #15305a 0%, #2b6cb8 35%, #4f8fd6 50%, #2b6cb8 65%, #15305a 100%) 0% 0% / 200% auto text !important;
  filter: drop-shadow(0 1px 6px rgba(21, 48, 90, .18)) !important;
}
.r40-portada .elementor-element.elementor-element-0fa36a4::before { background: radial-gradient(rgba(43, 108, 184, .08) 0%, transparent 70%) !important; }
.r40-portada .elementor-element.elementor-element-0fa36a4::after { background: linear-gradient(90deg, transparent, var(--r40-oro-osc), var(--r40-oro), var(--r40-oro-osc), transparent) !important; height: 2px !important; }

/* barra de garantías: nieve y cielo, borde dorado de hierba */
.r40-ticks { background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%); box-shadow: 0 14px 30px -14px rgba(21, 48, 90, .35), inset 0 1px 0 #fff; }
.r40-ticks::before { background: linear-gradient(120deg, #e9cf8f, var(--r40-oro) 30%, #f3e2b4 50%, var(--r40-oro-osc) 75%, #e9cf8f); }
.r40-ticks li + li::before { background: linear-gradient(to bottom, transparent, rgba(43, 108, 184, .35), transparent); }
.r40-ticks i { background: radial-gradient(circle at 30% 25%, #3b7cc6, #15305a 72%); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(209, 162, 62, .7), 0 6px 12px rgba(21, 48, 90, .3); }
.r40-ticks svg { fill: #f0d28c; }
.r40-ticks span { color: var(--r40-noche); }
@media (max-width: 900px) {
  .r40-ticks li:nth-child(even) { border-left-color: rgba(43, 108, 184, .22); }
  .r40-ticks li:nth-child(n+3) { border-top-color: rgba(43, 108, 184, .22); }
}

/* campos */
form.r40-form label.elementor-field-label, form.r40-form .elementor-form-fields-wrapper label.elementor-field-label { color: var(--r40-noche) !important; }
form.r40-form .elementor-field-required > label.elementor-field-label::after { color: var(--r40-oro-osc); }
form.r40-form input.elementor-field, form.r40-form select, form.r40-form textarea.elementor-field,
form.r40-form .elementor-select-wrapper select { border-color: #c9d8ea !important; background-color: var(--r40-nieve); color: var(--r40-noche); }
form.r40-form input.elementor-field:hover, form.r40-form .elementor-select-wrapper select:hover { border-color: #8fb0d6 !important; }
form.r40-form input.elementor-field:focus, form.r40-form select:focus, form.r40-form .elementor-select-wrapper select:focus {
  border-color: var(--r40-cielo) !important; box-shadow: 0 0 0 4px rgba(43, 108, 184, .18); background-color: #fff;
}
form.r40-form #form-field-name { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232b6cb8'%3E%3Cpath d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5zm0 2c-3.33 0-10 1.67-10 5v3h20v-3c0-3.33-6.67-5-10-5z'/%3E%3C/svg%3E"); }
form.r40-form #form-field-field_529be45 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232b6cb8'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.6 21 3 13.4 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.6a1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
form.r40-form .select-caret-down-wrapper svg { fill: var(--r40-cielo); }
form.r40-form input[type="checkbox"] { accent-color: var(--r40-cielo); }
form.r40-form .elementor-field-option label a { color: var(--r40-cielo); font-weight: 600; }

/* botón: azul de montaña a cielo, con el destello y la flecha en dorado */
form.r40-form .e-form__buttons .elementor-button {
  background: linear-gradient(135deg, #15305a 0%, #1f4f8f 45%, #2b6cb8 100%) !important; color: #fff !important;
  box-shadow: 0 12px 26px -10px rgba(21, 48, 90, .6), inset 0 1px 0 rgba(255, 255, 255, .18) !important;
}
form.r40-form .e-form__buttons .elementor-button:hover { filter: brightness(1.1); box-shadow: 0 16px 32px -10px rgba(21, 48, 90, .7), inset 0 1px 0 rgba(255, 255, 255, .22) !important; }
form.r40-form .e-form__buttons .elementor-button-text::after { color: #f0d28c; }
form.r40-form .r40-form-nota { color: #4b6584; }

/* ===== Un solo color de fondo en toda la web (el azul nieve de la portada) =====
   Las secciones de WordPress alternaban blanco y azul muy claro y dejaban cortes visibles entre ellas. */
:root { --r40-fondo: #eff7fc; }
body, #page, .site-content, .ast-container, .site-main, .entry-content { background-color: var(--r40-fondo) !important; }
.elementor .e-con.e-parent:not(.elementor-motion-effects-element-type-background) { background-color: transparent !important; }
.r40-why, .r40-routes { background: transparent !important; }
/* la tarjeta del formulario por encima de la sección siguiente, para que su sombra se difumine sobre ella */
.r40-portada .elementor .elementor-element.elementor-element-bad64c9 { position: relative; z-index: 2; }
.r40-portada .elementor .elementor-element.elementor-element-2d89d17.e-con {
  box-shadow: 0 30px 70px -20px rgba(21, 48, 90, .22), 0 8px 24px -12px rgba(21, 48, 90, .12) !important;
}
/* las manchas y la rejilla decorativas quedaban recortadas en un recuadro: fuera, el fondo es continuo */
.r40-why__bg, .r40-routes__bg { display: none !important; }

/* ===== «Por qué elegir»: rediseño premium con los colores de la portada (montaña, cielo y hierba dorada) ===== */
.r40-why .r40-why__badge {
  position: relative; background: linear-gradient(180deg, #fff, #f3f7fc); border: 0; color: var(--r40-noche);
  letter-spacing: .14em; box-shadow: 0 8px 20px -10px rgba(21, 48, 90, .35);
}
.r40-why .r40-why__badge::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, #e9cf8f, var(--r40-oro), #f3e2b4, var(--r40-oro-osc));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.r40-why .r40-why__badge-dot { background: var(--r40-oro); }
.r40-why .r40-why__title { color: var(--r40-noche); }
.r40-why .r40-why__title-hl {
  background: linear-gradient(135deg, #15305a 0%, #2b6cb8 40%, #4f8fd6 55%, #2b6cb8 70%, #15305a 100%) 0% 0% / 200% auto text;
}
.r40-why .r40-why__subtitle { color: #4b6584; }
.r40-why .r40-why__subtitle strong { color: var(--r40-noche); }
/* separador dorado bajo la cabecera */
.r40-why .r40-why__header::after {
  content: ""; display: block; width: 72px; height: 2px; margin: 26px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--r40-oro-osc), var(--r40-oro), var(--r40-oro-osc), transparent);
}

/* tarjetas: blanco nieve, borde fino que se vuelve dorado, icono azul montaña con trazo dorado */
.r40-why .r40-why__card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%); border: 1px solid #dbe6f2;
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -24px rgba(21, 48, 90, .35);
}
.r40-why .r40-why__card:hover { border-color: rgba(209, 162, 62, .55); box-shadow: 0 1px 0 #fff inset, 0 28px 56px -24px rgba(21, 48, 90, .45); }
.r40-why .r40-why__card-glow { display: none; }
.r40-why .r40-why__card-icon {
  width: 54px; height: 54px; border-radius: 16px; border: 0; color: #f0d28c;
  background: radial-gradient(circle at 30% 25%, #3b7cc6, #15305a 72%);
  box-shadow: 0 10px 22px -8px rgba(21, 48, 90, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.r40-why .r40-why__card:hover .r40-why__card-icon { background: radial-gradient(circle at 30% 25%, #4a8ad4, #15305a 72%); }
.r40-why .r40-why__card-title { color: var(--r40-noche); }
.r40-why .r40-why__card-text { color: #4b6584; }
.r40-why .r40-why__card-text strong { color: var(--r40-noche); }
.r40-why .r40-why__card-tag { background: #eef4fb; border: 1px solid #d3e1f0; color: #1f4f8f; letter-spacing: .03em; }

/* tarjeta destacada (parking): azul montaña con texto claro y detalles dorados */
.r40-why .r40-why__card--featured {
  background: linear-gradient(160deg, #1d4278 0%, #15305a 60%, #102748 100%); border-color: rgba(209, 162, 62, .45);
  box-shadow: 0 24px 50px -22px rgba(21, 48, 90, .7);
}
.r40-why .r40-why__card--featured::before { background: radial-gradient(120% 80% at 100% 0%, rgba(79, 143, 214, .35), transparent 60%) !important; }
.r40-why .r40-why__card--featured::after { background: linear-gradient(90deg, transparent, var(--r40-oro), transparent) !important; }
.r40-why .r40-why__card--featured .r40-why__card-title { color: #fff; }
.r40-why .r40-why__card--featured .r40-why__card-text { color: #c9d8ea; }
.r40-why .r40-why__card--featured .r40-why__card-icon { background: linear-gradient(145deg, #f0d28c, var(--r40-oro-osc)); color: var(--r40-noche); }
.r40-why .r40-why__card--featured .r40-why__card-tag { background: rgba(240, 210, 140, .14); border-color: rgba(240, 210, 140, .45); color: #f0d28c; }

/* cifras: banda azul montaña con números blancos y detalles dorados */
.r40-why .r40-why__stats {
  position: relative; overflow: hidden; border: 0;
  background: linear-gradient(135deg, #15305a 0%, #1f4f8f 55%, #2b6cb8 100%);
  box-shadow: 0 26px 50px -24px rgba(21, 48, 90, .65), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.r40-why .r40-why__stats::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(240, 210, 140, .8), rgba(255, 255, 255, .08) 40%, rgba(209, 162, 62, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.r40-why .r40-why__stat-num { color: #fff; }
.r40-why .r40-why__stat-star, .r40-why .r40-why__stat-plus { color: #f0d28c; opacity: 1; }
.r40-why .r40-why__stat-label, .r40-why .r40-why__stat-label[style] { color: #c9d8ea !important; }
.r40-why .r40-why__stat a .r40-why__stat-label { color: #f0d28c !important; }
.r40-why .r40-why__stat-div { background: linear-gradient(to bottom, transparent, rgba(240, 210, 140, .5), transparent); }
.r40-why .r40-why__card--featured .r40-why__card-tag--featured::after { opacity: .35; }
.r40-why .r40-why__card--featured .r40-why__card-tag { background: rgba(240, 210, 140, .16); font-weight: 700; }
.r40-why .r40-why__stats { margin-top: 30px; }

/* ===== «Elige tu autocaravana»: misma línea premium (azul montaña, cielo y dorado de hierba) ===== */
.ruta40-modelos-wrap .ruta40-modelos-badge {
  position: relative; background: linear-gradient(180deg, #fff, #f3f7fc); border: 0; color: var(--r40-noche);
  box-shadow: 0 8px 20px -10px rgba(21, 48, 90, .35);
}
.ruta40-modelos-wrap .ruta40-modelos-badge::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, #e9cf8f, var(--r40-oro), #f3e2b4, var(--r40-oro-osc));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.ruta40-modelos-wrap .ruta40-modelos-badge__dot { background: var(--r40-oro); }
.ruta40-modelos-wrap .ruta40-modelos-main-title { color: var(--r40-noche); }
.ruta40-modelos-wrap .ruta40-modelos-main-title em {
  background: linear-gradient(135deg, #1f4f8f 0%, #2b6cb8 50%, #4f8fd6 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; color: transparent !important;
  padding-right: .08em;
}
.ruta40-modelos-wrap .ruta40-modelos-intro { color: #4b6584; }
.ruta40-modelos-wrap .ruta40-modelos-head::after {
  content: ""; display: block; width: 72px; height: 2px; margin: 24px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--r40-oro-osc), var(--r40-oro), var(--r40-oro-osc), transparent);
}

/* tarjeta de modelo */
.ruta40-modelos-wrap .ruta40-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%); border: 1px solid #dbe6f2; border-radius: 26px;
  box-shadow: 0 1px 0 #fff inset, 0 24px 50px -30px rgba(21, 48, 90, .45);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
}
.ruta40-modelos-wrap .ruta40-card:hover { transform: translateY(-4px); border-color: rgba(209, 162, 62, .55); box-shadow: 0 1px 0 #fff inset, 0 34px 64px -30px rgba(21, 48, 90, .55); }
.ruta40-modelos-wrap .ruta40-card::before { background: linear-gradient(transparent, var(--r40-oro), var(--r40-cielo), transparent); }
/* foto sobre un fondo de cielo muy suave, con zoom lento al pasar */
.ruta40-modelos-wrap .ruta40-card__media-inner {
  border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, #dfeaf6 0%, #f3f7fc 55%, #ffffff 100%);
}
.ruta40-modelos-wrap .ruta40-card__media img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.ruta40-modelos-wrap .ruta40-card:hover .ruta40-card__media img { transform: scale(1.04); }
.ruta40-modelos-wrap .ruta40-card__type { color: var(--r40-oro-osc); letter-spacing: .16em; }
.ruta40-modelos-wrap .ruta40-card__title, .ruta40-modelos-wrap .ruta40-card__title a { color: var(--r40-noche); text-decoration: none; }
.ruta40-modelos-wrap .ruta40-card__title span { color: var(--r40-cielo); }
.ruta40-modelos-wrap .ruta40-card__text { color: #4b6584; }
.ruta40-modelos-wrap .ruta40-spec-pill { background: var(--r40-nieve); border-color: #d3e1f0; color: var(--r40-noche); }
.ruta40-modelos-wrap .ruta40-spec-pill svg { color: var(--r40-cielo); stroke: currentColor; opacity: 1; }
.ruta40-modelos-wrap .ruta40-spec-pill--brand { background: linear-gradient(145deg, #1f4f8f, #15305a) !important; color: #f0d28c !important; border-color: transparent; letter-spacing: .04em; }
/* precio */
.ruta40-modelos-wrap .ruta40-card__price { color: var(--r40-noche); }
.ruta40-modelos-wrap .ruta40-card__price strong {
  background: linear-gradient(135deg, #15305a, #2b6cb8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ruta40-modelos-wrap .ruta40-card__price-note {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  background: rgba(209, 162, 62, .12); color: var(--r40-oro-osc); font-weight: 700;
}
.ruta40-modelos-wrap .ruta40-card__price-note::before { content: "✓"; font-weight: 800; }
/* botones */
.ruta40-modelos-wrap .ruta40-btn { border-radius: 14px; font-weight: 700; transition: transform .25s, box-shadow .25s, filter .25s, background-color .25s; }
.ruta40-modelos-wrap .ruta40-btn--info, .ruta40-modelos-wrap .ruta40-btn--info:visited {
  background: #fff !important; border: 1.5px solid #c9d8ea !important; color: var(--r40-noche) !important;
}
.ruta40-modelos-wrap .ruta40-btn--info:hover { border-color: var(--r40-cielo) !important; color: var(--r40-cielo) !important; transform: translateY(-2px); }
.ruta40-modelos-wrap .ruta40-btn--reserve, .ruta40-modelos-wrap .ruta40-btn--reserve:visited {
  background: linear-gradient(135deg, #15305a 0%, #1f4f8f 45%, #2b6cb8 100%) !important; border: 0 !important; color: #fff !important;
  box-shadow: 0 12px 26px -10px rgba(21, 48, 90, .6), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.ruta40-modelos-wrap .ruta40-btn--reserve::after { content: "→"; margin-left: 8px; color: #f0d28c; }
.ruta40-modelos-wrap .ruta40-btn--reserve:hover { transform: translateY(-2px); filter: brightness(1.1); }
.ruta40-modelos-wrap .ruta40-btn:focus-visible { outline: 3px solid var(--r40-oro); outline-offset: 3px; }

/* accesos a Galería y Tarifas */
.ruta40-galeria-card { background: linear-gradient(180deg, #ffffff, #f6f9fd) !important; border: 1px solid #dbe6f2; box-shadow: 0 18px 40px -26px rgba(21, 48, 90, .45); }
.ruta40-galeria-card::after { background: linear-gradient(90deg, transparent, var(--r40-cielo), var(--r40-oro), transparent) !important; }
.ruta40-galeria-card__icon { background: radial-gradient(circle at 30% 25%, #3b7cc6, #15305a 72%) !important; color: #f0d28c !important; box-shadow: 0 10px 22px -8px rgba(21, 48, 90, .55); }
.ruta40-galeria-card__icon svg { color: #f0d28c; stroke: currentColor; }
.ruta40-galeria-card__body strong { color: var(--r40-noche); }
.ruta40-galeria-card__body span { color: #4b6584; }
.ruta40-galeria-card__arrow { color: var(--r40-oro-osc); }
@media (prefers-reduced-motion: reduce) {
  .ruta40-modelos-wrap .ruta40-card, .ruta40-modelos-wrap .ruta40-card__media img, .ruta40-modelos-wrap .ruta40-btn { transition: none; }
  .ruta40-modelos-wrap .ruta40-card:hover, .ruta40-modelos-wrap .ruta40-card:hover .ruta40-card__media img { transform: none; }
}

/* ===== Titular «Alquila tu autocaravana en Málaga…» ===== */
.ruta40-section-heading .ruta40-section-heading__eyebrow {
  position: relative; background: linear-gradient(180deg, #fff, #f3f7fc) !important; border: 0 !important; color: var(--r40-noche) !important;
  box-shadow: 0 8px 20px -10px rgba(21, 48, 90, .35);
}
.ruta40-section-heading .ruta40-section-heading__eyebrow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, #e9cf8f, var(--r40-oro), #f3e2b4, var(--r40-oro-osc));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.ruta40-section-heading .ruta40-section-heading__dot { background: var(--r40-oro) !important; }
.ruta40-section-heading h2 { color: var(--r40-noche) !important; }
.ruta40-section-heading .ruta40-heading-highlight {
  background: linear-gradient(135deg, #1f4f8f, #2b6cb8 55%, #4f8fd6) !important; -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
}
.ruta40-section-heading .ruta40-heading-highlight::after, .ruta40-section-heading .ruta40-heading-highlight::before { background: linear-gradient(90deg, var(--r40-oro-osc), var(--r40-oro)) !important; }
.ruta40-section-heading .ruta40-section-heading__line::before { background: linear-gradient(90deg, transparent, var(--r40-oro)) !important; }
.ruta40-section-heading .ruta40-section-heading__line::after { background: linear-gradient(90deg, var(--r40-oro), transparent) !important; }
.ruta40-section-heading .ruta40-section-heading__line span { background: linear-gradient(135deg, #f0d28c, var(--r40-oro-osc)) !important; box-shadow: 0 0 0 3px rgba(209, 162, 62, .2), 0 0 14px rgba(209, 162, 62, .4) !important; }
.elementor-widget-heading h5.elementor-heading-title { color: var(--r40-noche); }

/* ===== Reseñas de Google: carrusel propio ===== */
.r40-resenas { font-family: 'Lexend', system-ui, sans-serif; color: var(--r40-noche); width: 100%; }
.r40-resenas__resumen {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 22px; margin: 0 auto 26px; padding: 16px 26px;
  max-width: 720px; border-radius: 20px; position: relative;
  background: linear-gradient(180deg, #fff, #f3f7fc); box-shadow: 0 18px 40px -26px rgba(21, 48, 90, .5);
}
.r40-resenas__resumen::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, #e9cf8f, var(--r40-oro), #f3e2b4, var(--r40-oro-osc));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.r40-resenas__resumen > .r40-resenas__g { width: 38px; height: 38px; }
.r40-resenas__resumen > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.r40-resenas__val { font-size: 20px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--r40-noche); }
.r40-resenas__resumen p { margin: 0; font-size: 13.5px; color: #4b6584; }
.r40-resenas__estrellas, .r40-resena__estrellas { display: flex; gap: 2px; }
.r40-resenas__estrellas svg { width: 20px; height: 20px; fill: #e8b33a; filter: drop-shadow(0 1px 1px rgba(169, 123, 34, .35)); }
.r40-resenas__todas {
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
  color: #fff !important; background: linear-gradient(135deg, #15305a, #2b6cb8); box-shadow: 0 10px 22px -10px rgba(21, 48, 90, .6);
  transition: transform .25s, filter .25s;
}
.r40-resenas__todas:hover { transform: translateY(-2px); filter: brightness(1.1); text-decoration: none; }
.r40-resenas__carrusel { position: relative; }
.r40-resenas__pista {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 10px 4px 26px;
  scrollbar-width: none;
}
.r40-resenas__pista::-webkit-scrollbar { display: none; }
.r40-resenas__pista:focus-visible { outline: 3px solid var(--r40-oro); outline-offset: 4px; border-radius: 12px; }
.r40-resena {
  flex: 0 0 calc((100% - 36px) / 3); scroll-snap-align: start; margin: 0; padding: 24px 24px 20px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 14px; position: relative; border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%); border: 1px solid #dbe6f2;
  box-shadow: 0 1px 0 #fff inset, 0 20px 44px -28px rgba(21, 48, 90, .45);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
}
.r40-resena::before {
  content: "\201C"; position: absolute; top: 6px; right: 18px; font: 700 72px/1 Georgia, serif; color: rgba(43, 108, 184, .10); pointer-events: none;
}
.r40-resena:hover { transform: translateY(-5px); border-color: rgba(209, 162, 62, .55); box-shadow: 0 1px 0 #fff inset, 0 30px 56px -28px rgba(21, 48, 90, .55); }
.r40-resena__estrellas svg { width: 17px; height: 17px; fill: #e8b33a; }
.r40-resena__texto { margin: 0; padding: 0; border: 0; font-style: normal; }
.r40-resena__texto p {
  margin: 0; font-size: 14.5px; line-height: 1.65; color: #34506f;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.r40-resena.is-abierta .r40-resena__texto p { -webkit-line-clamp: unset; display: block; }
.r40-resena__mas { align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer; font: 700 13px 'Lexend', sans-serif; color: var(--r40-cielo); }
.r40-resena__mas:hover { text-decoration: underline; }
.r40-resena__autor { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid #e3ecf6; }
.r40-resena__avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #f0d28c; background: radial-gradient(circle at 30% 25%, #3b7cc6, #15305a 72%);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(209, 162, 62, .6);
}
.r40-resena__autor strong { display: block; font-size: 14.5px; color: var(--r40-noche); }
.r40-resena__autor small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #6b819b; }
.r40-resena__autor small .r40-resenas__g { width: 13px; height: 13px; }
.r40-resenas__flecha {
  position: absolute; top: calc(50% - 22px); z-index: 2; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0 0 3px; font: 400 28px/1 'Lexend', sans-serif;
  color: var(--r40-noche); background: #fff; border: 1px solid #dbe6f2; box-shadow: 0 10px 24px -10px rgba(21, 48, 90, .5);
  transition: transform .25s, background .25s, color .25s, opacity .25s;
}
.r40-resenas__flecha:hover { background: var(--r40-noche); color: #f0d28c; transform: scale(1.06); }
.r40-resenas__flecha:focus-visible { outline: 3px solid var(--r40-oro); outline-offset: 3px; }
.r40-resenas__flecha[disabled] { opacity: .35; cursor: default; transform: none; background: #fff; color: var(--r40-noche); }
.r40-resenas__flecha--ant { left: -22px; }
.r40-resenas__flecha--sig { right: -22px; }
@media (max-width: 1024px) { .r40-resena { flex-basis: calc((100% - 18px) / 2); } .r40-resenas__flecha--ant { left: -6px; } .r40-resenas__flecha--sig { right: -6px; } }
@media (max-width: 640px) {
  .r40-resena { flex-basis: 86%; }
  .r40-resenas__flecha { display: none; }
  .r40-resenas__resumen { padding: 16px; text-align: center; }
  .r40-resenas__resumen > div { align-items: center; }
}

/* ===== «Cómo alquilar una autocaravana»: línea de tiempo clara + tarjeta final con la foto de la portada ===== */
.ruta40-proceso {
  background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important;
  padding: clamp(24px, 4vw, 48px) 0 !important; overflow: visible !important;
}
.ruta40-proceso::before, .ruta40-proceso::after, .ruta40-proceso__bg-shape { display: none !important; }
.ruta40-proceso__header h2 { color: var(--r40-noche) !important; }
.ruta40-proceso__header p { color: #4b6584 !important; }
.ruta40-proceso__eyebrow {
  position: relative; background: linear-gradient(180deg, #fff, #f3f7fc) !important; border: 0 !important; color: var(--r40-noche) !important;
  box-shadow: 0 8px 20px -10px rgba(21, 48, 90, .35);
}
.ruta40-proceso__eyebrow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, #e9cf8f, var(--r40-oro), #f3e2b4, var(--r40-oro-osc));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.ruta40-proceso__eyebrow-dot { background: var(--r40-oro) !important; }
.ruta40-proceso__highlight {
  background: linear-gradient(135deg, #1f4f8f, #2b6cb8 55%, #4f8fd6) !important; -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
}
/* pasos: columnas tipográficas, sin iconos ni círculos; número grande dorado y una línea que se llena al pasar */
.ruta40-proceso__grid { position: relative; margin-top: clamp(30px, 4vw, 48px) !important; gap: 0 !important; }
.ruta40-proceso__grid::before { display: none !important; }
.ruta40-step {
  position: relative; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
  -webkit-backdrop-filter: none; backdrop-filter: none; text-align: left; padding: 26px 26px 6px !important;
  border-top: 1px solid #cfdcea !important;
}
.ruta40-step + .ruta40-step { border-left: 1px solid #dde7f2 !important; }
.ruta40-step::before {   /* línea dorada que se llena */
  content: ""; position: absolute; top: -1px; left: 0; width: 34px; height: 2px; background: var(--r40-oro);
  transition: width .6s cubic-bezier(.2, .8, .2, 1);
}
.ruta40-step:hover::before { width: 100%; }
.ruta40-step:hover { transform: none; background: none !important; }
.ruta40-step__number {
  width: auto !important; height: auto !important; margin: 0 0 14px !important; padding: 0 !important; display: block !important;
  border: 0 !important; outline: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background: none !important; box-shadow: none !important; border-radius: 0 !important;
  font: 800 clamp(34px, 3.6vw, 46px)/1 'Lexend', sans-serif !important; letter-spacing: -.04em; color: var(--r40-oro-osc) !important;
}
.ruta40-step__number::before { content: "0"; }
.ruta40-step h3 { color: var(--r40-noche) !important; margin-bottom: 8px !important; }
.ruta40-step p { color: #4b6584 !important; }
@media (max-width: 900px) {
  .ruta40-proceso__grid { grid-template-columns: 1fr 1fr !important; }
  .ruta40-step:nth-child(3) { border-left: 0 !important; }
}
@media (max-width: 560px) {
  .ruta40-proceso__grid { grid-template-columns: 1fr !important; }
  .ruta40-step { display: grid !important; grid-template-columns: 58px 1fr; column-gap: 14px; padding: 20px 4px 4px !important; border-left: 0 !important; }
  .ruta40-step__number { grid-row: 1 / span 2; font-size: 34px !important; margin: 0 !important; }
  .ruta40-step h3 { margin-top: 2px !important; }
}

/* tarjeta final con la foto de la portada */
.ruta40-proceso__footer {
  position: relative; overflow: hidden; isolation: isolate; margin-top: clamp(30px, 5vw, 52px) !important;
  padding: clamp(26px, 4vw, 40px) clamp(22px, 4vw, 44px) !important; border-radius: 26px !important; border: 0 !important;
  background: linear-gradient(100deg, rgba(13, 31, 58, .94) 0%, rgba(21, 48, 90, .82) 45%, rgba(21, 48, 90, .35) 100%), url("../img/hero-ruta40-movil.webp") center bottom / cover no-repeat !important;
  box-shadow: 0 30px 60px -30px rgba(21, 48, 90, .7) !important;
}
.ruta40-proceso__footer::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(240, 210, 140, .9), rgba(255, 255, 255, .1) 40%, rgba(209, 162, 62, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.ruta40-proceso__footer-text strong { color: #fff !important; font-size: clamp(20px, 2.4vw, 26px) !important; }
.ruta40-proceso__footer-text span { color: #d6e2f0 !important; }
.ruta40-proceso-btn--primary, .ruta40-proceso-btn--primary:visited {
  background: linear-gradient(135deg, #f6e2b0, #d1a23e 60%, #b9892c) !important; color: var(--r40-noche) !important; border: 0 !important;
  box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .5) !important; font-weight: 800 !important;
}
.ruta40-proceso-btn--primary::after { content: "→"; margin-left: 8px; }
.ruta40-proceso-btn--secondary, .ruta40-proceso-btn--secondary:visited {
  background: rgba(255, 255, 255, .12) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .45) !important;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ruta40-proceso-btn { transition: transform .25s, filter .25s !important; }
.ruta40-proceso-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
/* sello «2 unidades» en la tarjeta de la MC4 379 */
.ruta40-card__media-inner { position: relative; }
.ruta40-card__unidades {
  position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px; font: 700 12.5px/1 'Lexend', sans-serif; border-left: 3px solid var(--r40-oro); color: var(--r40-noche);
  background: rgba(255, 255, 255, .92); box-shadow: 0 10px 22px -10px rgba(21, 48, 90, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ruta40-card__unidades span {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(145deg, #f0d28c, var(--r40-oro-osc)); color: var(--r40-noche); font-size: 12px; font-weight: 800;
}

/* ===== Pie de página: azul montaña, titulares dorados ===== */
.ruta40-footer {
  background: linear-gradient(100deg, #0c1f3a 0%, #15305a 50%, #1d4278 100%) !important; color: #e8eef7;
  border-radius: 0; border-top: 0 !important; box-shadow: 0 -14px 34px -18px rgba(12, 31, 58, .7) !important;
}
.ruta40-footer__topline { height: 3px !important; background: linear-gradient(90deg, transparent, var(--r40-cielo) 30%, var(--r40-oro) 70%, transparent) !important; }
.ruta40-footer h4 { color: #f0d28c !important; }
.ruta40-footer a, .ruta40-footer__desc, .ruta40-footer__contact-item { color: #e8eef7 !important; }
.ruta40-footer a:hover { color: #f0d28c !important; }
.ruta40-footer__cities-col a::before { color: var(--r40-oro) !important; }
.ruta40-footer__contact-item svg { color: #f0d28c !important; stroke: currentColor; }
.ruta40-footer__logo { display: inline-block; padding: 0; border-radius: 0; background: transparent !important; box-shadow: none; }
.ruta40-footer__logo img { height: 38px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
.ruta40-footer__social a { background: rgba(255, 255, 255, .08) !important; color: #f0d28c !important; border: 1px solid rgba(240, 210, 140, .3); }
.ruta40-footer__social a:hover { background: var(--r40-oro) !important; color: var(--r40-noche) !important; }
.ruta40-footer__bottom, .ruta40-footer__legal, .ruta40-footer__legal a { color: #8fa6c2 !important; border-color: rgba(255, 255, 255, .1) !important; }

/* ===== Aparición al hacer scroll ===== */
.r40-anim { opacity: 0; transform: translateY(26px); }
.r40-anim.is-in { opacity: 1; transform: none; transition: opacity .7s ease var(--d, 0s), transform .8s cubic-bezier(.2, .8, .2, 1) var(--d, 0s); }
@media (prefers-reduced-motion: reduce) { .r40-anim { opacity: 1; transform: none; } }

/* ===== Página «Zonas»: puntos de recogida, mapa y localidades ===== */
.r40-zonas { max-width: 1160px; margin: 0 auto; padding: 150px 20px 70px; font-family: 'Lexend', system-ui, sans-serif; color: var(--r40-noche); }
.r40-zonas__cab { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.r40-zonas__eyebrow {
  position: relative; display: inline-block; padding: 8px 18px; border-radius: 999px; margin-bottom: 18px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--r40-noche);
  background: linear-gradient(180deg, #fff, #f3f7fc); box-shadow: 0 8px 20px -10px rgba(21, 48, 90, .35);
}
.r40-zonas__eyebrow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, #e9cf8f, var(--r40-oro), #f3e2b4, var(--r40-oro-osc));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.r40-zonas h1 { margin: 0 0 14px; font-size: clamp(32px, 5vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; color: var(--r40-noche); }
.r40-zonas__cab p { margin: 0; font-size: 17px; line-height: 1.7; color: #4b6584; }
.r40-zonas__bloque { margin-bottom: 64px; }
.r40-zonas h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; color: var(--r40-noche); }
.r40-zonas h2::after { content: ""; display: block; width: 48px; height: 2px; margin-top: 12px; background: var(--r40-oro); }
.r40-zonas__sub { margin: 14px 0 26px; color: #4b6584; }

/* tarjetas de puntos de recogida */
.r40-zonas__puntos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.r40-punto {
  position: relative; display: flex; flex-direction: column; padding: 22px 20px 20px; border-radius: 18px;
  background: #fff; border: 1px solid #dbe6f2; box-shadow: 0 18px 40px -28px rgba(21, 48, 90, .45);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s, box-shadow .35s;
}
.r40-punto::before { content: ""; position: absolute; top: -1px; left: 20px; width: 34px; height: 2px; background: var(--r40-oro); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.r40-punto:hover { transform: translateY(-4px); border-color: rgba(209, 162, 62, .55); box-shadow: 0 26px 50px -28px rgba(21, 48, 90, .55); }
.r40-punto:hover::before { width: calc(100% - 40px); }
.r40-punto__cab { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.r40-punto__ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #1f4f8f, #15305a); }
.r40-punto__ico svg { width: 18px; height: 18px; fill: #f0d28c; }
.r40-punto__tipo { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--r40-oro-osc); }
.r40-punto h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--r40-noche); }
.r40-punto p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; color: #4b6584; }
.r40-punto__ver { margin-top: auto; font-size: 13.5px; font-weight: 700; color: var(--r40-cielo); text-decoration: none; }
.r40-punto__ver:hover { text-decoration: underline; color: var(--r40-noche); }
/* «Antes de recoger» como un llavero de cuero (parche_llavero_zonas.py): etiqueta dorada con costura, ojal y anilla
   metálica; fijo, sin movimiento */
.r40-llavero { position: relative; display: flex; align-items: center; margin: 34px 0 0; }
.r40-llavero__anilla {   /* la anilla: va por detrás del cuero y asoma por el ojal */
  position: relative; z-index: 0; flex: none; width: 64px; height: 64px; margin-right: -31px; border-radius: 50%;
  border: 6px solid #8d97a5; border-top-color: #c9d0d9; border-left-color: #aab3bf; border-bottom-color: #5f6a79;   /* acero */
  box-shadow: 0 6px 12px -6px rgba(21, 48, 90, .6), inset 0 0 0 1px rgba(255, 255, 255, .35), 0 0 0 1px rgba(21, 48, 90, .12);
}
.r40-llavero__cuero {
  position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 34px;
  padding: 24px 32px 24px 64px; border-radius: 16px 26px 26px 16px; color: #fff8e8;
  background:
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px) 0 0 / 5px 5px,
    linear-gradient(140deg, #ad7a43 0%, #94622f 50%, #7a4e24 100%);   /* cuero tostado */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 22px 40px -24px rgba(90, 55, 20, .75);
  -webkit-mask: radial-gradient(circle 10px at 29px 50%, transparent 9.5px, #000 10px);   /* el ojal, agujereado de verdad */
          mask: radial-gradient(circle 10px at 29px 50%, transparent 9.5px, #000 10px);
}
.r40-llavero__cuero::before {   /* remache metálico alrededor del ojal */
  content: ""; position: absolute; left: 16px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  box-shadow: inset 0 0 0 3px #d4b27a, inset 0 0 0 4px rgba(60, 35, 10, .4);
}
.r40-llavero__cuero::after {   /* la costura */
  content: ""; position: absolute; inset: 7px 9px; border: 1.5px dashed rgba(255, 238, 200, .6); border-radius: 11px 20px 20px 11px; pointer-events: none;
}
.r40-llavero__cuero strong {
  font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #fff3d2;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25), 0 -1px 0 rgba(255, 255, 255, .15);   /* grabado en el cuero */
}
.r40-llavero__cuero ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 30px; }
.r40-llavero__cuero li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.4; text-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.r40-llavero__cuero li svg { flex: none; width: 20px; height: 20px; fill: none; stroke: #fff3d2; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .r40-llavero__cuero { grid-template-columns: 1fr; padding: 22px 24px 22px 60px; }
  .r40-llavero__cuero ul { flex-direction: column; }
}

/* mapa (parche_mapa_zonas.py): mar azul noche, tierra marfil, costa dorada y chinchetas doradas en los puntos de recogida */
.r40-zonas__mapa {
  position: relative; margin: 22px 0 0; padding: 0; border-radius: 24px; overflow: hidden; background: #9fcbee;
  border: 1px solid rgba(209, 162, 62, .45); box-shadow: 0 30px 60px -32px rgba(21, 48, 90, .55);
}
.r40-zonas__mapa::before {   /* filo dorado superior, como los paneles de las fichas */
  content: ""; position: absolute; inset: 0 0 auto; height: 2px; z-index: 1;
  background: linear-gradient(90deg, transparent, var(--r40-oro-osc), #f0d28c, var(--r40-oro-osc), transparent);
}
.r40-mapa { display: block; width: 100%; height: auto; }
.r40-mapa .m-tierra { fill: #f7f3e8; }
.r40-mapa .m-ola { fill: none; stroke: #fff; stroke-opacity: .75; stroke-width: 1.6; stroke-linecap: round; }
.r40-mapa .m-espuma { fill: none; stroke: #fff; stroke-opacity: .6; stroke-width: 10; stroke-linejoin: round; stroke-linecap: round; }
.r40-mapa .m-costa { fill: none; stroke: #d1a23e; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.r40-mapa .m-mar { font: italic 500 15px 'Lexend', sans-serif; fill: #1f4f8f; fill-opacity: .6; letter-spacing: .32em; text-transform: uppercase; paint-order: stroke; stroke: #b9dbf4; stroke-width: 7px; stroke-linejoin: round; }
.r40-mapa .m-loc { fill: #15305a; }
.r40-mapa .m-ruta { fill: #fff; stroke: #1f4f8f; stroke-width: 2.2; }
.r40-mapa .m-txt { font: 600 13px 'Lexend', sans-serif; paint-order: stroke; stroke-width: 4px; stroke-linejoin: round; }
.r40-mapa .m-txt--tierra { fill: #4b6584; stroke: #f7f3e8; }
.r40-mapa .m-txt--mar { fill: #1f4f8f; stroke: #c4e1f7; }
.r40-mapa .m-txt--rec { font-size: 15.5px; font-weight: 800; letter-spacing: .01em; }
.r40-mapa .m-txt--rec.m-txt--tierra { fill: var(--r40-noche); }
.r40-mapa .m-txt--rec.m-txt--mar { fill: var(--r40-noche); stroke: #c4e1f7; stroke-width: 5px; }
.r40-mapa .m-rec__halo { fill: none; stroke: #f0d28c; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: m-latido 2.8s ease-out infinite; }
.r40-mapa .m-rec__pin { fill: var(--r40-oro); stroke: #fff; stroke-width: 2.5; }
.r40-mapa .m-rec__dot { fill: var(--r40-noche); }
.r40-mapa .m-rec:nth-of-type(2n) .m-rec__halo { animation-delay: 1.4s; }
@keyframes m-latido { 0% { transform: scale(.5); stroke-opacity: .9; } 80%, 100% { transform: scale(1.3); stroke-opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .r40-mapa .m-rec__halo { animation: none; stroke-opacity: .5; } }
.r40-zonas__mapa figcaption {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 14px 22px;
  background: #fff; border-top: 1px solid #e3ecf6; font-size: 13px; color: #4b6584;
}
.ley { display: inline-flex; align-items: center; gap: 10px; }
.ley::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.ley--rec::before { width: 12px; height: 12px; background: radial-gradient(circle, #15305a 0 2.5px, var(--r40-oro) 3px); box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(209, 162, 62, .45); }
.ley--loc::before { background: #15305a; }
.ley--ruta::before { width: 9px; height: 9px; background: #fff; box-shadow: 0 0 0 2px #2b6cb8; }

/* localidades */
/* localidades como líneas de ruta, al estilo de un plano de metro (parche_localidades_zonas.py): cada provincia es una
   línea con sus paradas; los puntos de recogida, paradas doradas; los destinos de ruta, una línea discontinua */
.r40-lineas__provincias { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px 64px; margin-top: 30px; }
.r40-linea { --linea: #2b6cb8; --linea-txt: #2b6cb8; }
.r40-linea--cad { --linea: #d1a23e; --linea-txt: var(--r40-oro-osc); }
.r40-linea--ruta { --linea: #8aa0bb; --linea-txt: var(--r40-noche); margin-top: 52px; }
.r40-linea h3 {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--r40-noche);
}
.r40-linea__marca { flex: none; width: 34px; height: 8px; border-radius: 99px; background: var(--linea); }
.r40-linea--ruta .r40-linea__marca { background: repeating-linear-gradient(90deg, var(--linea) 0 7px, transparent 7px 12px); }
.r40-linea__nota { margin: -4px 0 22px; max-width: 72ch; font-size: 13.5px; line-height: 1.55; color: #6b819b; }
.r40-linea__paradas { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; }

.r40-parada { position: relative; break-inside: avoid; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 7px 0 7px 32px; }
.r40-parada::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 4px; background: var(--linea); }   /* la vía */
.r40-parada:first-child::before { top: 18px; }
.r40-parada:last-child::before { bottom: auto; height: 18px; }
.r40-parada::after {   /* la parada */
  content: ""; position: absolute; left: 3px; top: 18px; width: 14px; height: 14px; margin-top: -7px; box-sizing: border-box;
  border-radius: 50%; background: #fff; border: 3px solid var(--linea); transition: transform .2s;
}
.r40-parada:hover::after { transform: scale(1.3); }
.r40-parada a {
  color: var(--r40-noche); font-size: 15.5px; font-weight: 500;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .2s, text-decoration-color .2s;
}
.r40-parada__fin { white-space: nowrap; }
.r40-parada__fin::after {   /* flechita: indica que el nombre se puede pulsar (también en móvil, sin ratón) */
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 2px 2px 8px; vertical-align: middle;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .35; transition: opacity .2s, transform .2s;
}
.r40-parada a:hover, .r40-parada a:focus-visible { color: var(--linea-txt); text-decoration-color: currentColor; }
.r40-parada a:hover .r40-parada__fin::after, .r40-parada a:focus-visible .r40-parada__fin::after { opacity: 1; transform: translateX(3px) rotate(45deg); }
.r40-parada--rec { padding-top: 9px; padding-bottom: 9px; }
.r40-parada--rec::after {   /* parada de recogida: chincheta dorada, como en el mapa */
  left: 0; top: 20px; width: 20px; height: 20px; margin-top: -10px; border: 3px solid #fff;
  background: radial-gradient(circle, var(--r40-noche) 0 2.5px, var(--r40-oro) 3px);
  box-shadow: 0 0 0 2px var(--r40-oro), 0 6px 14px -4px rgba(169, 123, 34, .6);
}
.r40-parada--rec:first-child::before { top: 20px; }
.r40-parada--rec a { font-weight: 700; }
.r40-parada__tag { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--r40-oro-osc); }

/* destinos de ruta: mosaico de fotos con lo más bonito de cada uno (Sevilla, la grande) */
.r40-destinos__mosaico { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 14px; }
.r40-destino { grid-column: span 2; }
.r40-destino--sevilla { grid-row: span 2; }
.r40-destino--andalucia { grid-column: 1 / -1; }   /* el final: panorámica del Cabo de Gata */
.r40-destino {
  position: relative; display: flex; align-items: flex-end; overflow: hidden; border-radius: 22px; isolation: isolate;
  color: #fff !important; text-decoration: none !important; background: #15305a;
  box-shadow: 0 22px 44px -28px rgba(21, 48, 90, .65);
}
.r40-destino img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.r40-destino::before {   /* degradado para leer el texto */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 32, 61, 0) 30%, rgba(13, 32, 61, .55) 62%, rgba(13, 32, 61, .92) 100%);
  transition: opacity .4s;
}
.r40-destino::after {   /* filo dorado que aparece al pasar el ratón */
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(240, 210, 140, 0); transition: box-shadow .4s;
}
.r40-destino:hover img, .r40-destino:focus-visible img { transform: scale(1.06); }
.r40-destino:hover::after, .r40-destino:focus-visible::after { box-shadow: inset 0 0 0 2px rgba(240, 210, 140, .85); }
.r40-destino:focus-visible { outline: 3px solid var(--r40-oro); outline-offset: 3px; }
.r40-destino__txt { display: flex; flex-direction: column; gap: 6px; padding: 20px 64px 20px 22px; }
.r40-destino__txt strong { font-size: 22px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.r40-destino--sevilla .r40-destino__txt { padding: 28px 80px 28px 30px; gap: 8px; }
.r40-destino--sevilla .r40-destino__txt strong { font-size: clamp(28px, 3vw, 38px); }
.r40-destino__desc { max-width: 52ch; color: #e4ecf6; font-size: 14px; line-height: 1.5; }
.r40-destino--sevilla .r40-destino__desc { font-size: 15.5px; }
.r40-destino__ir {
  position: absolute; right: 18px; bottom: 20px; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px);
  transition: background .3s, transform .3s, border-color .3s;
}
.r40-destino__ir svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.r40-destino:hover .r40-destino__ir { background: var(--r40-oro); border-color: var(--r40-oro); transform: translateX(3px); }
.r40-destino:hover .r40-destino__ir svg { stroke: var(--r40-noche); }
@media (prefers-reduced-motion: reduce) { .r40-destino img, .r40-destino__ir { transition: none; } }

@media (max-width: 900px) { .r40-lineas__provincias { grid-template-columns: 1fr; } }
@media (max-width: 1024px) {
  .r40-destinos__mosaico { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .r40-destino { grid-column: span 1; }
  .r40-destino--sevilla, .r40-destino--andalucia { grid-column: 1 / -1; grid-row: span 1; }
}
@media (max-width: 700px) {
  .r40-linea__paradas { column-gap: 18px; }
  /* en móvil, los destinos se deslizan en horizontal como postales */
  .r40-destinos__mosaico { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 14px; scrollbar-width: none; }
  .r40-destinos__mosaico::-webkit-scrollbar { display: none; }
  .r40-destino, .r40-destino--sevilla { flex: 0 0 82%; height: 380px; scroll-snap-align: center; }
  .r40-destino--sevilla .r40-destino__txt { padding: 20px 64px 20px 22px; }
  .r40-destino--sevilla .r40-destino__txt strong { font-size: 26px; }
}

@media (max-width: 1100px) { .r40-zonas__puntos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) {
  .r40-zonas { padding-top: 110px; }
  .r40-zonas__puntos { grid-template-columns: 1fr 1fr; }
  .r40-mapa .m-txt { font-size: 18px; } .r40-mapa .m-txt--rec { font-size: 20px; }
}
@media (max-width: 440px) { .r40-zonas__puntos { grid-template-columns: 1fr; } }

/* ===== Header premium (mismos azul montaña y dorado que el resto de la web) ===== */
.ruta40-header { border-bottom: 0 !important; box-shadow: 0 10px 30px -18px rgba(21, 48, 90, .45) !important; }
.ruta40-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--r40-cielo) 25%, var(--r40-oro) 75%, transparent); opacity: .85;
}
.ruta40-header__nav a, .ruta40-header__dropdown-toggle { color: var(--r40-noche) !important; letter-spacing: .01em; }
.ruta40-header__nav a:hover, .ruta40-header__nav a:focus-visible, .ruta40-header__dropdown:hover .ruta40-header__dropdown-toggle { color: var(--r40-cielo) !important; }
.ruta40-header__nav a::after { background: linear-gradient(90deg, var(--r40-oro-osc), var(--r40-oro)) !important; }
.ruta40-header__nav a[aria-current="page"], .ruta40-header__dropdown-toggle[aria-current="page"] { color: var(--r40-oro-osc) !important; }
.ruta40-header__nav a[aria-current="page"]::after { transform: scaleX(1); }
.ruta40-header__nav a:focus-visible { outline: 3px solid var(--r40-oro); outline-offset: 4px; border-radius: 4px; }
/* submenú de modelos */
.ruta40-header__submenu { border-top: 2px solid var(--r40-oro) !important; border-radius: 0 0 14px 14px !important; box-shadow: 0 24px 40px -20px rgba(21, 48, 90, .45) !important; }
.ruta40-header__submenu a { color: var(--r40-noche) !important; font-weight: 600 !important; }
.ruta40-header__submenu a::before { color: var(--r40-oro) !important; }
.ruta40-header__submenu a:hover { background: var(--r40-nieve) !important; color: var(--r40-cielo) !important; }
/* botón Reservar */
.ruta40-header__btn, .ruta40-header__btn:visited {
  background: linear-gradient(135deg, #15305a 0%, #1f4f8f 50%, #2b6cb8 100%) !important; color: #fff !important; border-radius: 999px !important;
  box-shadow: 0 10px 22px -10px rgba(21, 48, 90, .65), inset 0 1px 0 rgba(255, 255, 255, .18) !important; font-weight: 700 !important; letter-spacing: .02em;
  transition: transform .25s, filter .25s, box-shadow .25s !important;
}
.ruta40-header__btn::after { content: none; }   /* sin flecha en «Reservar» */
.ruta40-header__btn:hover, .ruta40-header__btn:focus-visible {
  background: linear-gradient(135deg, #15305a 0%, #1f4f8f 50%, #2b6cb8 100%) !important; filter: brightness(1.1); transform: translateY(-1px);
  box-shadow: 0 14px 26px -10px rgba(21, 48, 90, .75), inset 0 1px 0 rgba(255, 255, 255, .22) !important;
}
.ruta40-header__btn:focus-visible { outline: 3px solid var(--r40-oro); outline-offset: 3px; }
/* menú móvil */
.ruta40-mobile-btn {
  background: linear-gradient(135deg, #15305a 0%, #1f4f8f 50%, #2b6cb8 100%) !important;
  box-shadow: 0 12px 24px -10px rgba(21, 48, 90, .65) !important;
}
.ruta40-mobile-btn:hover { background: linear-gradient(135deg, #15305a 0%, #1f4f8f 50%, #2b6cb8 100%) !important; filter: brightness(1.1); }
.ruta40-mobile-menu a { color: var(--r40-noche) !important; font-weight: 600 !important; }
.ruta40-mobile-menu a::before { color: var(--r40-oro) !important; }
.ruta40-mobile-menu a:hover { background: var(--r40-nieve) !important; color: var(--r40-cielo) !important; }
.ruta40-mobile-menu a[aria-current="page"] { color: var(--r40-oro-osc) !important; }
.ruta40-header__toggle span { background: var(--r40-noche) !important; }

/* ===== Selector de idioma discreto: solo bandera y código ===== */
.r40-lang__btn {
  gap: 7px; padding: 5px 8px !important; border: 0 !important; border-radius: 8px !important; background: transparent !important;
  color: var(--r40-noche) !important; font-size: 12.5px !important; font-weight: 700; letter-spacing: .06em; transition: background .2s;
}
.r40-lang__btn:hover { background: var(--r40-nieve) !important; }
.r40-lang__btn:focus-visible { outline: 3px solid var(--r40-oro); outline-offset: 2px; }
.r40-lang__btn::before { content: ""; width: 18px; height: 13px; border-radius: 2px; background: center / cover no-repeat; box-shadow: 0 0 0 1px rgba(21, 48, 90, .15); }
html[lang="es"] .r40-lang__btn::before { background-image: url("../img/banderas/es.svg"); }
html[lang="en"] .r40-lang__btn::before { background-image: url("../img/banderas/en.svg"); }
html[lang="de"] .r40-lang__btn::before { background-image: url("../img/banderas/de.svg"); }
html[lang="fr"] .r40-lang__btn::before { background-image: url("../img/banderas/fr.svg"); }
html[lang="nl"] .r40-lang__btn::before { background-image: url("../img/banderas/nl.svg"); }
html[lang="sv"] .r40-lang__btn::before { background-image: url("../img/banderas/sv.svg"); }
html[lang="ru"] .r40-lang__btn::before { background-image: url("../img/banderas/ru.svg"); }
.r40-lang__dropdown { min-width: 0 !important; width: 96px; padding: 6px; border-radius: 12px !important; border-top: 2px solid var(--r40-oro); box-shadow: 0 20px 36px -16px rgba(21, 48, 90, .5) !important; }
.r40-lang__dropdown a { gap: 9px !important; padding: 8px 10px !important; border-radius: 8px; font-size: 12.5px !important; font-weight: 600; letter-spacing: .06em; color: var(--r40-noche) !important; }
.r40-lang__dropdown a span { display: none; }
.r40-lang__dropdown a::after { content: attr(lang); text-transform: uppercase; }
.r40-lang__dropdown a:hover { background: var(--r40-nieve) !important; }
.r40-lang__dropdown a.active { background: rgba(209, 162, 62, .16) !important; color: var(--r40-oro-osc) !important; }
.r40-lang__dropdown a:focus-visible { outline: 3px solid var(--r40-oro); outline-offset: -3px; }
.ruta40-mobile-lang a { font-weight: 700; letter-spacing: .05em; }
/* el desplegable de idioma se abre con el clic (clase .open), al pasar el ratón y con el teclado */
.r40-lang.open .r40-lang__dropdown, .r40-lang:hover .r40-lang__dropdown, .r40-lang:focus-within .r40-lang__dropdown { display: block; }
.r40-lang__arrow { color: var(--r40-oro-osc); }

/* ===== Header oscuro, a juego con la portada y el pie: azul montaña, azul cielo y dorado de la hierba ===== */
html body header.elementor.elementor-location-header > .e-con.e-parent:not(.elementor-motion-effects-element-type-background) {
  position: relative; z-index: 9999; padding: 0 !important;
  background: linear-gradient(100deg, #0c1f3a 0%, #15305a 50%, #1d4278 100%) !important;
  box-shadow: 0 14px 34px -18px rgba(12, 31, 58, .7);
}
header.elementor.elementor-location-header > .e-con.e-parent::after {   /* filete inferior cielo → dorado, a todo el ancho */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--r40-cielo) 28%, var(--r40-oro) 72%, transparent);
}
.ruta40-header { background: transparent !important; box-shadow: none !important; border: 0 !important; }
.ruta40-header::after { display: none !important; }
.ruta40-header__inner { height: 58px !important; }
.ruta40-header__logo img { height: 38px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .25)); }
/* enlaces */
.ruta40-header__nav a, .ruta40-header__dropdown-toggle { color: #e8eef7 !important; }
.ruta40-header__nav a:hover, .ruta40-header__nav a:focus-visible, .ruta40-header__dropdown:hover .ruta40-header__dropdown-toggle { color: #f0d28c !important; }
.ruta40-header__nav a[aria-current="page"], .ruta40-header__dropdown-toggle[aria-current="page"] { color: #f0d28c !important; }
.ruta40-header__nav a::after { background: linear-gradient(90deg, #f0d28c, var(--r40-oro)) !important; bottom: -4px !important; }
.ruta40-header__dropdown-toggle span { color: var(--r40-oro); }
/* submenú de modelos */
.ruta40-header__submenu {
  background: linear-gradient(160deg, #1d4278, #15305a) !important; border: 1px solid rgba(240, 210, 140, .25) !important;
  border-top: 2px solid var(--r40-oro) !important; box-shadow: 0 26px 44px -18px rgba(0, 0, 0, .6) !important;
}
.ruta40-header__submenu a { color: #e8eef7 !important; }
.ruta40-header__submenu a:hover { background: rgba(255, 255, 255, .08) !important; color: #f0d28c !important; }
/* botón Reservar, dorado como «Reservar Autocaravana» de la portada */
.ruta40-header__btn, .ruta40-header__btn:visited {
  background: linear-gradient(135deg, #f6e2b0 0%, #d1a23e 60%, #b9892c 100%) !important; color: var(--r40-noche) !important;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
}
.ruta40-header__btn::after { color: var(--r40-noche); }
.ruta40-header__btn:hover, .ruta40-header__btn:focus-visible {
  background: linear-gradient(135deg, #f6e2b0 0%, #d1a23e 60%, #b9892c 100%) !important; color: var(--r40-noche) !important; filter: brightness(1.07);
}
/* idiomas a la derecha, entre el menú y «Reservar» */
.r40-lang { order: 3 !important; }
.ruta40-header__btn { order: 4 !important; }
.ruta40-header__toggle { order: 5 !important; }
.r40-lang__btn { color: #fff !important; }
.r40-lang__btn:hover { background: rgba(255, 255, 255, .12) !important; }
.r40-lang__arrow { color: #f0d28c !important; }
.r40-lang__btn::before { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
.r40-lang__dropdown {
  background: linear-gradient(160deg, #1d4278, #15305a) !important; border: 1px solid rgba(240, 210, 140, .25) !important; border-top: 2px solid var(--r40-oro) !important;
  right: 0; left: auto; box-shadow: 0 26px 44px -18px rgba(0, 0, 0, .6) !important;
}
.r40-lang__dropdown a { color: #e8eef7 !important; }
.r40-lang__dropdown a:hover { background: rgba(255, 255, 255, .1) !important; color: #fff !important; }
.r40-lang__dropdown a.active { background: rgba(240, 210, 140, .16) !important; color: #f0d28c !important; }
/* móvil: las rayitas del menú en blanco */
.ruta40-header__toggle span { background: #fff !important; }
@media (max-width: 900px) { .ruta40-header__inner { height: 58px !important; } .ruta40-header__logo img { height: 32px; } }
/* el resto de capas del header (de Elementor) en transparente: se ve el fondo azul oscuro a todo el ancho */
html body header[data-elementor-id].elementor-location-header, html body header[data-elementor-id].elementor-location-header .e-con-inner,
html body header[data-elementor-id].elementor-location-header .elementor-widget, html body header[data-elementor-id].elementor-location-header .elementor-widget-container,
html body header[data-elementor-id].elementor-location-header .elementor-element:not(.e-parent) { background: transparent !important; }

/* ===== Menú móvil: se abre con el botón (clase .open), a juego con el header ===== */
.ruta40-mobile-overlay.open { display: block !important; }
.ruta40-mobile-menu.open { display: flex !important; }
.ruta40-mobile-menu {
  top: 58px !important; max-height: calc(100vh - 58px); overflow-y: auto; border-top: 0 !important;
  background: linear-gradient(170deg, #1d4278 0%, #15305a 55%, #0c1f3a 100%) !important;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .6) !important; border-bottom: 2px solid var(--r40-oro);
}
.ruta40-mobile-menu a { color: #e8eef7 !important; border-bottom-color: rgba(255, 255, 255, .08) !important; }
.ruta40-mobile-menu a:hover, .ruta40-mobile-menu a[aria-current="page"] { background: rgba(255, 255, 255, .07) !important; color: #f0d28c !important; }
.ruta40-mobile-menu .ruta40-mobile-sublink { color: #b9cbe0 !important; }
.ruta40-mobile-menu .ruta40-mobile-btn, .ruta40-mobile-btn {
  background: linear-gradient(135deg, #f6e2b0 0%, #d1a23e 60%, #b9892c 100%) !important; color: var(--r40-noche) !important;
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .55) !important; font-weight: 800 !important;
}
.ruta40-mobile-menu .ruta40-mobile-btn::after { content: "→"; margin-left: 8px; }
.ruta40-mobile-lang { display: flex; flex-wrap: wrap; gap: 6px 4px; padding: 12px 20px 4px; }
.ruta40-mobile-lang a { display: inline-flex !important; width: auto !important; padding: 8px 12px !important; border: 1px solid rgba(255, 255, 255, .18) !important; border-radius: 8px; font-size: 12.5px !important; }
.ruta40-mobile-lang a::before { display: none !important; }
.ruta40-mobile-lang a.active { border-color: var(--r40-oro) !important; color: #f0d28c !important; }
.ruta40-header__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ruta40-header__toggle.open span:nth-child(2) { opacity: 0; }
.ruta40-header__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ruta40-mobile-menu .ruta40-mobile-lang a { background: rgba(255, 255, 255, .06) !important; color: #e8eef7 !important; }
.ruta40-mobile-menu .ruta40-mobile-lang a.active { background: rgba(240, 210, 140, .14) !important; color: #f0d28c !important; }

/* ===== Pie de página, segunda vuelta: llamada a reservar, horario, redes con nombre, localidades agrupadas, idiomas, «subir» ===== */
.ruta40-footer { position: relative; overflow: hidden; isolation: isolate; }
.ruta40-footer > * { position: relative; z-index: 1; }
/* escena al pie: costa con sol, mar, palmeras y la autocaravana recorriendo la carretera (la inserta main.js) */
/* la escena va de borde a borde del pie (main.js le quita el relleno lateral) y el aviso legal queda debajo */
.ruta40-footer > .ruta40-footer__ruta { position: relative; z-index: 0; height: 112px; margin: 18px 0 0; overflow: hidden; pointer-events: none; }
.ruta40-footer .ruta40-footer__ruta + .ruta40-footer__bottom { border-top: 0 !important; padding-top: 16px !important; }
.ruta40-footer__ruta .r40-sol {   /* medio sol asomando sobre el horizonte */
  position: absolute; right: 14%; bottom: 54px; width: 96px; height: 48px; border-radius: 96px 96px 0 0;
  background: radial-gradient(circle at 50% 100%, rgba(246, 226, 176, .6) 0 30%, rgba(209, 162, 62, .25) 32%, rgba(209, 162, 62, 0) 70%);
}
.ruta40-footer__ruta .r40-mar {
  position: absolute; left: 0; right: 0; bottom: 38px; height: 16px; background-color: rgba(43, 108, 184, .16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M0 4q5-4 10 0t10 0 10 0 10 0' fill='none' stroke='%23fff' stroke-opacity='.18' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 40px 8px; background-repeat: repeat-x; background-position: 0 2px;
  animation: r40-olas 14s linear infinite;
}
.ruta40-footer__ruta .r40-carretera {
  position: absolute; left: 0; right: 0; bottom: 0; height: 38px;
  background:
    repeating-linear-gradient(90deg, rgba(240, 210, 140, .45) 0 34px, transparent 34px 72px) 0 50% / 100% 2px no-repeat,
    linear-gradient(180deg, rgba(240, 210, 140, .35) 0 1px, rgba(255, 255, 255, .045) 1px);
}
.ruta40-footer__ruta .r40-palmera { position: absolute; bottom: 36px; width: 46px; height: 76px; color: rgba(255, 255, 255, .13); }
.ruta40-footer__ruta .r40-palmera--1 { left: 30%; }
.ruta40-footer__ruta .r40-palmera--2 { left: 33.5%; width: 34px; height: 58px; }
.ruta40-footer__ruta .r40-palmera--3 { right: calc(14% + 118px); transform: scaleX(-1); }   /* junto al sol, sin taparlo */
.ruta40-footer__ruta .r40-van { position: absolute; bottom: 6px; left: -170px; width: 150px; height: 66px; animation: r40-ruta 42s linear infinite; }
.ruta40-footer__ruta .r40-van__cuerpo { animation: r40-bache .45s ease-in-out infinite alternate; }
.ruta40-footer__ruta .r40-van__rueda { transform-box: fill-box; transform-origin: center; animation: r40-rueda .7s linear infinite; }
.ruta40-footer__ruta .r40-van svg { transform: scaleX(-1); }   /* la silueta mira a la izquierda: se voltea para ir hacia la derecha */
@keyframes r40-ruta { from { left: -170px; } to { left: 100%; } }
@keyframes r40-rueda { to { transform: rotate(-360deg); } }
@keyframes r40-bache { to { transform: translateY(-1px); } }
@keyframes r40-olas { to { background-position: -40px 2px; } }
@media (max-width: 700px) {
  .ruta40-footer > .ruta40-footer__ruta { height: 96px; }
  .ruta40-footer__ruta .r40-palmera--2 { display: none; }
  .ruta40-footer__ruta .r40-palmera--1 { left: 58%; }
  .ruta40-footer__ruta .r40-van { width: 120px; height: 53px; animation-duration: 26s; }
}
@media (prefers-reduced-motion: reduce) {
  .ruta40-footer__ruta *, .ruta40-footer__ruta .r40-van { animation: none !important; }
  .ruta40-footer__ruta .r40-van { left: 8%; }
}
/* Navegación y Modelos lado a lado, sin hueco a la derecha */
@media (min-width: 701px) {
  .ruta40-footer .ruta40-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); grid-template-rows: auto 1fr; grid-auto-flow: column; column-gap: clamp(40px, 6vw, 96px); justify-content: start; }
  .ruta40-footer .ruta40-footer__nav h4 { margin-top: 0 !important; }
}
/* franja de llamada a reservar */
.ruta40-footer__cta { padding: 26px 0 8px; }
.ruta40-footer__cta-in {
  max-width: 1280px; margin: 0 auto; padding: 22px 28px; border-radius: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); border: 1px solid rgba(240, 210, 140, .28);
  box-shadow: 0 20px 40px -26px rgba(0, 0, 0, .6);
}
.ruta40-footer__cta-txt { display: flex; flex-direction: column; gap: 4px; min-width: 240px; flex: 1 1 320px; }
.ruta40-footer__cta-txt strong { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.2; color: #fff; }
.ruta40-footer__cta-txt span { font-size: 15px; line-height: 1.5; color: #c9d8ea; }
.ruta40-footer__cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.ruta40-footer a.ruta40-footer__cta-main, .ruta40-footer a.ruta40-footer__cta-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; transition: transform .2s, filter .2s;
}
.ruta40-footer a.ruta40-footer__cta-main { background: linear-gradient(135deg, #f6e2b0 0%, #d1a23e 60%, #b9892c 100%); color: #0c1f3a !important; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }
.ruta40-footer a.ruta40-footer__cta-wa { background: #25d366; color: #073b1c !important; }
.ruta40-footer a.ruta40-footer__cta-main:hover, .ruta40-footer a.ruta40-footer__cta-wa:hover { transform: translateY(-2px); filter: brightness(1.07); color: #0c1f3a !important; }
.ruta40-footer__cta-wa svg { width: 20px; height: 20px; }
/* columna de la marca más compacta: nada de huecos */
.ruta40-footer__brand { display: flex; flex-direction: column; gap: 0; }
.ruta40-footer__hours { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.ruta40-footer__hours h5 { margin: 0 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #f0d28c; }
.ruta40-footer__hours dl { margin: 0; display: grid; gap: 4px; }
.ruta40-footer__hours dl > div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.ruta40-footer__hours dt { color: #c9d8ea; }
.ruta40-footer__hours dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
.ruta40-footer__chips { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.ruta40-footer__chips li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #e8eef7; }
.ruta40-footer__chips svg { width: 16px; height: 16px; flex: none; color: #f0d28c; }
.ruta40-footer .ruta40-footer__social { margin: 18px 0 0 !important; display: flex; flex-wrap: wrap; gap: 10px !important; }
.ruta40-footer .ruta40-footer__social a {
  width: auto !important; height: 40px !important; min-width: 0 !important; padding: 0 14px; border-radius: 999px !important; gap: 8px; font-size: 13.5px !important; font-weight: 600; display: inline-flex !important; align-items: center;
}
.ruta40-footer__social svg { width: 18px; height: 18px; flex: none; }
/* localidades agrupadas */
.ruta40-footer__cities-grid { display: grid !important; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.ruta40-footer__group > summary {
  list-style: none; cursor: default; margin: 0 0 10px; padding-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #f0d28c; border-bottom: 1px solid rgba(240, 210, 140, .22);
}
.ruta40-footer__group > summary::-webkit-details-marker { display: none; }
.ruta40-footer__group .ruta40-footer__cities-col { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; }
.ruta40-footer__group .ruta40-footer__cities-col a { font-size: 14px !important; line-height: 1.3; }
/* idiomas */
.ruta40-footer__langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; padding: 18px 0 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.ruta40-footer__langs a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 13px; text-decoration: none; border: 1px solid transparent; }
.ruta40-footer__langs a img { width: 20px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.ruta40-footer__langs a:hover { background: rgba(255, 255, 255, .08); }
.ruta40-footer__langs a.active { background: rgba(240, 210, 140, .16); border-color: rgba(240, 210, 140, .4); color: #f0d28c !important; }
/* fila legal: centrada y con más contraste */
.ruta40-footer .ruta40-footer__bottom { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .1); }
.ruta40-footer .ruta40-footer__bottom, .ruta40-footer .ruta40-footer__legal a { color: #b4c4da !important; }
.ruta40-footer .ruta40-footer__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.ruta40-footer .ruta40-footer__legal a:hover { color: #f0d28c !important; }
/* volver arriba */
.ruta40-footer__up {
  position: fixed; right: 20px; bottom: 24px; z-index: 9989; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(12, 31, 58, .25); cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #0c1f3a; background: linear-gradient(135deg, #f6e2b0, #d1a23e); box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.ruta40-footer__up.visible { opacity: 1; visibility: visible; transform: none; }
.ruta40-footer__up:hover { filter: brightness(1.08); }
.ruta40-footer__up:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.ruta40-footer__up svg { width: 22px; height: 22px; }
/* móvil: enlaces cómodos de tocar */
@media (max-width: 700px) {
  .ruta40-footer__cta-in { padding: 20px 18px; }
  .ruta40-footer__cta-btns, .ruta40-footer a.ruta40-footer__cta-main, .ruta40-footer a.ruta40-footer__cta-wa { width: 100%; }
  .ruta40-footer__cities-grid { grid-template-columns: 1fr; gap: 4px; }
  .ruta40-footer__group { border-bottom: 1px solid rgba(255, 255, 255, .1); padding-bottom: 6px; }
  .ruta40-footer__group > summary { cursor: pointer; margin: 0; padding: 12px 0; border: 0; display: flex; justify-content: space-between; align-items: center; }
  .ruta40-footer__group > summary::after { content: "+"; font-size: 20px; line-height: 1; color: #f0d28c; }
  .ruta40-footer__group[open] > summary::after { content: "–"; }
  .ruta40-footer__group .ruta40-footer__cities-col { padding-bottom: 8px; }
  .ruta40-footer__group .ruta40-footer__cities-col a, .ruta40-footer__inner ul a { display: inline-block; min-height: 32px; line-height: 32px; padding-block: 0; }
  .ruta40-footer__nav ul { display: grid !important; grid-template-columns: 1fr 1fr; gap: 2px 14px !important; }
  .ruta40-footer__up { right: 14px; bottom: 84px; width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .ruta40-footer__up, .ruta40-footer a { transition: none !important; } }

/* ===== Pie más compacto ===== */
.ruta40-footer__cta { padding: 20px 0 0; }
.ruta40-footer__cta-in { padding: 16px 24px; }
.ruta40-footer .ruta40-footer__inner { padding-top: 28px !important; padding-bottom: 20px !important; gap: 28px 40px !important; }
@media (min-width: 1100px) {
  .ruta40-footer .ruta40-footer__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important; }
  .ruta40-footer .ruta40-footer__cities { grid-column: auto !important; }
}
@media (min-width: 701px) {
  .ruta40-footer .ruta40-footer__cities { grid-column: 1 / -1; }
  .ruta40-footer__group .ruta40-footer__cities-col { grid-template-columns: repeat(3, 1fr); gap: 6px 14px; }
}
@media (min-width: 701px) and (max-width: 1099px) { .ruta40-footer .ruta40-footer__inner { grid-template-columns: 1fr 1fr !important; } }
.ruta40-footer__cities-grid { gap: 14px !important; }
.ruta40-footer__hours { margin-top: 14px; padding: 12px 14px; }
.ruta40-footer .ruta40-footer__social { margin-top: 12px !important; gap: 8px !important; }
.ruta40-footer .ruta40-footer__social a { height: 36px !important; padding: 0 11px; font-size: 13px !important; }
.ruta40-footer__nav ul { gap: 8px !important; }
.ruta40-footer__langs { padding: 12px 0 8px; }
.ruta40-footer .ruta40-footer__bottom { padding: 10px 0 14px; gap: 6px; flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
@media (max-width: 700px) { .ruta40-footer .ruta40-footer__bottom { flex-direction: column; justify-content: center; } }

/* tarjeta final «Tu aventura sobre ruedas» (páginas sin la del proceso) */
.r40-aventura { padding: clamp(28px, 5vw, 56px) clamp(16px, 3vw, 32px); background: #fff; }
.r40-aventura__in {
  position: relative; overflow: hidden; isolation: isolate; max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 32px;
  padding: clamp(26px, 4vw, 40px) clamp(22px, 4vw, 44px); border-radius: 26px;
  background: linear-gradient(100deg, rgba(13, 31, 58, .94) 0%, rgba(21, 48, 90, .82) 45%, rgba(21, 48, 90, .35) 100%), url("../img/hero-ruta40-movil.webp") center bottom / cover no-repeat;
  box-shadow: 0 30px 60px -30px rgba(21, 48, 90, .7);
}
.r40-aventura__txt { display: flex; flex-direction: column; gap: 6px; }
.r40-aventura__txt strong { color: #fff; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; }
.r40-aventura__txt span { color: #d6e2f0; }
.r40-aventura__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.r40-aventura__btns a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 800; text-decoration: none; transition: transform .25s, filter .25s; }
.r40-aventura__btns a:hover { transform: translateY(-2px); filter: brightness(1.08); }
.r40-aventura__main { background: linear-gradient(135deg, #f6e2b0, #d1a23e 60%, #b9892c); color: #0c1f3a; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .5); }
.r40-aventura__main::after { content: "→"; margin-left: 8px; }
.r40-aventura__sec { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 700px) { .r40-aventura__btns, .r40-aventura__btns a { width: 100%; } }

/* ===== Fichas de modelo (Yearling 89, Glamys 320, MC4 379): línea premium azul noche, cielo y dorado ===== */
/* título: tipo de vehículo como antetítulo dorado y el modelo grande con degradado */
h1.r40-h1 {
  text-align: center; margin: 0 !important; color: var(--r40-oro-osc) !important; font-size: 13px !important; line-height: 1.4 !important;
  font-weight: 700 !important; letter-spacing: .22em; text-transform: uppercase;
}
h1.r40-h1 span {
  display: block; margin-top: 10px; font-family: 'Lexend', system-ui, sans-serif; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; text-transform: none;
  background: linear-gradient(135deg, #15305a 0%, #1f4f8f 45%, #2b6cb8 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent !important; padding-bottom: .06em;
}
h1.r40-h1::after {
  content: ""; display: block; width: 72px; height: 2px; margin: 20px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--r40-oro-osc), var(--r40-oro), var(--r40-oro-osc), transparent);
}

/* foto y plano en dos tarjetas: la foto sobre cielo suave, el plano sobre cuadrícula de plano técnico */
.e-con-inner:has(> .e-con-full > .plano-camper) { gap: clamp(16px, 2.4vw, 28px) !important; align-items: stretch !important; }
.e-con-full:has(> .plano-camper) {
  position: relative; overflow: hidden; display: flex !important; align-items: center; justify-content: center;
  padding: clamp(18px, 2.6vw, 32px) !important; border-radius: 26px; border: 1px solid #dbe6f2;
  background: radial-gradient(120% 90% at 50% 100%, #dfeaf6 0%, #f3f7fc 55%, #ffffff 100%) !important;
  box-shadow: 0 1px 0 #fff inset, 0 24px 50px -30px rgba(21, 48, 90, .45);
}
.e-con-full:has(> .plano-camper) + .e-con-full:has(> .plano-camper) {
  background:
    linear-gradient(rgba(43, 108, 184, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(43, 108, 184, .07) 1px, transparent 1px) 0 0 / 22px 22px,
    #fbfdff !important;
}
.e-con-full:has(> .plano-camper)::before {   /* filo de color arriba */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--r40-noche), var(--r40-cielo) 45%, var(--r40-oro));
}
.plano-camper img { mix-blend-mode: multiply; }   /* el fondo blanco de las imágenes se funde con la tarjeta */
.plano-camper .swiper, .plano-camper .swiper-wrapper, .plano-camper .swiper-slide { transform: none !important; background: transparent !important; isolation: auto !important; z-index: auto !important; }   /* una sola diapositiva: sin capa propia, para que la fusión llegue al fondo */
@media (min-width: 1024px) { .plano-camper img { min-height: 0 !important; max-height: 340px; } }

/* cifras rápidas */
.features-camper { gap: 16px !important; margin: 30px 0 60px !important; }
.features-camper .feature-box {
  position: relative; overflow: hidden; border-radius: 20px !important; border: 1px solid #dbe6f2 !important; padding: 20px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%) !important;
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -24px rgba(21, 48, 90, .35) !important;
}
.features-camper .feature-box:hover { border-color: rgba(209, 162, 62, .55) !important; box-shadow: 0 1px 0 #fff inset, 0 28px 56px -24px rgba(21, 48, 90, .45) !important; }
.features-camper .feature-icon {
  width: 52px !important; height: 52px !important; min-width: 52px !important; border-radius: 16px !important;
  background: radial-gradient(circle at 30% 25%, #3b7cc6, #15305a 72%) !important;
  box-shadow: 0 10px 22px -8px rgba(21, 48, 90, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.features-camper .feature-icon svg { stroke: #f0d28c !important; }
.features-camper .feature-text strong { color: var(--r40-noche) !important; font-weight: 700 !important; }
.features-camper .feature-text span { color: #6b7f99 !important; font-size: 11.5px !important; font-weight: 600 !important; letter-spacing: .1em; text-transform: uppercase; }
/* la de medidas, destacada en azul noche */
.features-camper .feature-box:last-child {
  border-color: rgba(209, 162, 62, .45) !important;
  background: linear-gradient(160deg, #1d4278 0%, #15305a 60%, #102748 100%) !important; box-shadow: 0 24px 50px -22px rgba(21, 48, 90, .7) !important;
}
.features-camper .feature-box:last-child .feature-icon { background: linear-gradient(145deg, #f0d28c, var(--r40-oro-osc)) !important; }
.features-camper .feature-box:last-child .feature-icon svg { stroke: var(--r40-noche) !important; }
.features-camper .feature-box:last-child .feature-text strong { color: #fff !important; }
.features-camper .feature-box:last-child .feature-text span { color: #f0d28c !important; }

/* cabeceras de sección de la ficha: raya dorada y título azul noche */
.info-tecnica-moderna .info-header, .equipamiento-moderno .equipamiento-header, .tabla-tarifas-camper .tarifas-header { margin-bottom: 24px !important; }
.info-tecnica-moderna .info-header::before, .equipamiento-moderno .equipamiento-header::before, .tabla-tarifas-camper .tarifas-header::before {
  content: ""; display: block; width: 44px; height: 3px; margin-bottom: 14px; border-radius: 3px;
  background: linear-gradient(90deg, var(--r40-oro-osc), var(--r40-oro), #f0d28c);
}
.info-tecnica-moderna .info-header h2, .equipamiento-moderno .equipamiento-header h2, .tabla-tarifas-camper .tarifas-header h2 {
  color: var(--r40-noche) !important; font-size: clamp(24px, 2.6vw, 30px) !important; font-weight: 700 !important; letter-spacing: -.01em; margin-bottom: 8px !important;
}
.tabla-tarifas-camper .tarifas-header h2 span { color: var(--r40-cielo) !important; }
.info-tecnica-moderna .info-header p, .equipamiento-moderno .equipamiento-header p, .tabla-tarifas-camper .tarifas-header p { color: #4b6584 !important; font-size: 15px !important; }

/* ficha técnica: tarjetas con cabecera azul noche y filas etiqueta / valor */
.info-tecnica-moderna .info-grid { gap: 20px !important; }
.info-tecnica-moderna .info-card {
  padding: 0 !important; overflow: hidden; border-radius: 22px !important; border: 1px solid #dbe6f2 !important; background: #fff !important;
  box-shadow: 0 1px 0 #fff inset, 0 24px 50px -30px rgba(21, 48, 90, .45) !important;
}
.info-tecnica-moderna .info-card:hover { border-color: rgba(209, 162, 62, .55) !important; }
.info-tecnica-moderna .info-card h3 {
  display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 18px 22px !important;
  background: linear-gradient(135deg, #15305a 0%, #1f4f8f 100%); color: #fff !important; font-size: 16px !important; font-weight: 700 !important; letter-spacing: .02em;
  border-bottom: 2px solid var(--r40-oro);
}
.info-tecnica-moderna .info-card h3::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #f0d28c; box-shadow: 0 0 0 4px rgba(240, 210, 140, .2); }
.info-tecnica-moderna .info-card ul { padding: 6px 22px 12px !important; }
.info-tecnica-moderna .info-card li {
  flex-direction: row !important; align-items: baseline; justify-content: space-between; gap: 16px !important;
  padding: 13px 0 !important; border-bottom: 1px dashed #dbe6f2 !important;
}
.info-tecnica-moderna .info-card li:last-child { border-bottom: 0 !important; }
.info-tecnica-moderna .info-card li::before { display: none !important; }
.info-tecnica-moderna .info-card strong { color: #5b6f8a !important; font-size: 14px !important; font-weight: 500 !important; }
.info-tecnica-moderna .info-card span { color: var(--r40-noche) !important; font-size: 15px !important; font-weight: 700 !important; text-align: right; }

/* equipamiento incluido */
.equipamiento-moderno .equipamiento-card, .equipamiento-moderno .equipamiento-mini {
  border: 1px solid #dbe6f2 !important; background: linear-gradient(180deg, #ffffff 0%, #f8fbfe 100%) !important;
  box-shadow: 0 1px 0 #fff inset, 0 18px 40px -26px rgba(21, 48, 90, .35) !important;
}
.equipamiento-moderno .equipamiento-card:hover, .equipamiento-moderno .equipamiento-mini:hover { border-color: rgba(209, 162, 62, .55) !important; }
.equipamiento-moderno .equipamiento-icon, .equipamiento-moderno .equipamiento-mini-icon {
  background: radial-gradient(circle at 30% 25%, #3b7cc6, #15305a 72%) !important; box-shadow: 0 10px 22px -10px rgba(21, 48, 90, .55);
}
.equipamiento-moderno .equipamiento-icon svg, .equipamiento-moderno .equipamiento-mini-icon svg { stroke: #f0d28c !important; }
.equipamiento-moderno .equipamiento-texto h3 { color: var(--r40-noche) !important; font-weight: 700 !important; }
.equipamiento-moderno .equipamiento-texto p { color: #4b6584 !important; }
.equipamiento-moderno .equipamiento-mini-texto strong { color: var(--r40-noche) !important; font-weight: 700 !important; }
.equipamiento-moderno .equipamiento-mini-texto span { color: var(--r40-oro-osc) !important; font-weight: 600; }
.equipamiento-moderno .equipamiento-aviso span {
  background: linear-gradient(135deg, #15305a, #1f4f8f) !important; color: #fff !important; border: 1px solid rgba(209, 162, 62, .5) !important;
  padding: 12px 20px !important; border-radius: 999px !important; box-shadow: 0 14px 30px -16px rgba(21, 48, 90, .6);
}
.equipamiento-moderno .equipamiento-aviso span::before {
  content: "P"; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 7px;
  background: var(--r40-oro); color: var(--r40-noche); font-weight: 800; font-size: 13px;
}

/* tarifas: cabecera azul noche, temporadas en tonos de la marca y precio destacado */
.tabla-tarifas-camper .tabla-card { padding: 0 !important; overflow: hidden !important; border-radius: 22px !important; background: #fff !important; border: 1px solid #dbe6f2 !important; box-shadow: 0 24px 50px -30px rgba(21, 48, 90, .45) !important; }
.tabla-tarifas-camper .tabla-precios { margin: 0 !important; border-radius: 0 !important; }
.tabla-tarifas-camper .tabla-precios thead th { background: linear-gradient(135deg, #15305a, #1f4f8f) !important; color: #f0d28c !important; letter-spacing: .06em; text-transform: uppercase; font-size: 13px !important; }
.tabla-tarifas-camper .tabla-precios tbody td { background: #fff !important; color: #33465f; border-top: 1px solid #e6eef7; }
.e-con .elementor-element .tabla-tarifas-camper .tabla-precios tbody td.temp-baja.temp-baja { background: #eef4fb !important; color: var(--r40-cielo) !important; }
.e-con .elementor-element .tabla-tarifas-camper .tabla-precios tbody td.temp-media.temp-media { background: #fbf3df !important; color: var(--r40-oro-osc) !important; }
.e-con .elementor-element .tabla-tarifas-camper .tabla-precios tbody td.temp-alta.temp-alta { background: #15305a !important; color: #f0d28c !important; }
.tabla-tarifas-camper .tabla-precios tbody td.precio { color: var(--r40-noche) !important; font-size: 20px !important; font-weight: 800 !important; }
.tabla-tarifas-camper .nota-tarifas { color: #4b6584 !important; }
.tabla-tarifas-camper .nota-tarifas strong { color: var(--r40-noche); }
.tabla-tarifas-camper .bloques-temporadas .bloque { border: 1px solid #dbe6f2; box-shadow: 0 18px 40px -26px rgba(21, 48, 90, .4) !important; font-size: 14px; }
.tabla-tarifas-camper .bloques-temporadas .bloque span { letter-spacing: .04em; }
.tabla-tarifas-camper .bloques-temporadas .bloque p { margin: 0 0 8px; }
.tabla-tarifas-camper .bloques-temporadas .baja { background: linear-gradient(180deg, #ffffff, #eef4fb) !important; color: #1f4f8f !important; }
.tabla-tarifas-camper .bloques-temporadas .media { background: linear-gradient(180deg, #fffaf0, #fbf0d6) !important; color: #7a5a1a !important; border-color: rgba(209, 162, 62, .4); }
.tabla-tarifas-camper .bloques-temporadas .alta { background: linear-gradient(160deg, #1d4278, #15305a) !important; color: #e8eef7 !important; border-color: rgba(209, 162, 62, .45); }
.tabla-tarifas-camper .bloques-temporadas .alta span { color: #f0d28c; }

/* requisitos (parche_requisitos.py): panel azul noche con filo dorado, preguntas separadas por líneas finas
   (una abierta a la vez) y enlace a las preguntas frecuentes */
.condiciones-camper {
  position: relative; overflow: hidden; isolation: isolate; interpolate-size: allow-keywords;
  padding: 44px 44px 34px !important; border-radius: 26px !important;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(209, 162, 62, .18) 0%, transparent 55%),
    linear-gradient(160deg, #1d4278 0%, #15305a 55%, #0d203d 100%) !important;
  border: 1px solid rgba(209, 162, 62, .4); box-shadow: 0 40px 80px -40px rgba(13, 32, 61, .85);
}
.condiciones-camper::before {   /* filo dorado superior */
  content: ""; position: absolute; inset: 0 0 auto; height: 2px; z-index: -1;
  background: linear-gradient(90deg, transparent, var(--r40-oro-osc), #f0d28c, var(--r40-oro-osc), transparent);
}
.condiciones-camper .cond-cabecera { text-align: center; margin-bottom: 18px; }
.condiciones-camper .cond-eyebrow { display: block; margin-bottom: 10px; color: #f0d28c; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.condiciones-camper .cond-cabecera h2, .condiciones-camper .cond-cabecera h1 {
  margin: 0 !important; color: #fff !important; font-size: clamp(24px, 2.6vw, 30px) !important; letter-spacing: -.01em; text-wrap: balance;
}

/* preguntas: sin tarjetas, solo líneas */
.condiciones-camper .condiciones-grid { display: block !important; }
.condiciones-camper .condicion-card {
  transform: none !important; box-shadow: none !important; backdrop-filter: none !important;
  background: transparent !important; border: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .14) !important; border-radius: 0 !important;
}
.condiciones-camper .condicion-card summary {
  padding: 20px 40px 20px 0 !important; border-radius: 0 !important; background: transparent !important; backdrop-filter: none !important;
  color: #fff !important; font-size: 18px !important; font-weight: 600 !important; transition: color .2s;
}
.condiciones-camper .condicion-card summary:hover, .condiciones-camper .condicion-card[open] summary { color: #f0d28c !important; }
.condiciones-camper .condicion-card summary:focus-visible { outline: 2px solid #f0d28c; outline-offset: 2px; }
.condiciones-camper .condicion-card summary::after {   /* flecha dorada */
  content: "" !important; width: 16px; height: 16px; right: 4px !important; transform: translateY(-50%) !important; transition: transform .3s ease !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f0d28c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.condiciones-camper .condicion-card[open] summary::after { transform: translateY(-50%) rotate(180deg) !important; }

/* apertura suave donde el navegador lo permite (en el resto, el fundido de siempre) */
.condiciones-camper .condicion-card::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.condiciones-camper .condicion-card[open]::details-content { block-size: auto; }

.condiciones-camper .condicion-card .contenido { padding: 0 0 22px !important; background: transparent !important; backdrop-filter: none !important; }
.condiciones-camper .cond-lista { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.condiciones-camper .cond-lista li { position: relative; margin: 0; padding-left: 18px; color: #c9d6e8; font-size: 16px; line-height: 1.6; }
.condiciones-camper .cond-lista li + li { margin-top: 8px; }
.condiciones-camper .cond-lista li::before { content: ""; position: absolute; left: 0; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--r40-oro); }
.condiciones-camper .cond-lista strong { color: #fff; font-weight: 600; }

/* enlace a las preguntas frecuentes */
.condiciones-camper a.cond-mas {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  color: #f0d28c !important; font-size: 15px; font-weight: 600; text-decoration: none !important;
}
.condiciones-camper a.cond-mas svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.condiciones-camper a.cond-mas:hover { color: #fff !important; }
.condiciones-camper a.cond-mas:hover svg { transform: translateX(3px); }
.condiciones-camper a.cond-mas:focus-visible { outline: 2px solid #f0d28c; outline-offset: 3px; }

@media (max-width: 767px) {
  .condiciones-camper { padding: 32px 20px 26px !important; border-radius: 20px !important; }
  .condiciones-camper .condicion-card summary { padding: 17px 32px 17px 0 !important; font-size: 16.5px !important; }
  .condiciones-camper .cond-lista li { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .condiciones-camper .condicion-card::details-content { transition: none; }
  .condiciones-camper .condicion-card summary::after { transition: none !important; }
}

/* sin el recuadro lateral «Reserva tu autocaravana» (parche_quitar_recuadro_reserva.py), precios y requisitos a ancho completo */
.elementor-element-d4af471 > .e-con-inner > .elementor-element-0239801 { --width: 100% !important; }
@media (min-width: 1025px) { .tabla-tarifas-camper .bloques-temporadas { grid-template-columns: repeat(4, 1fr) !important; } }
@media (min-width: 600px) and (max-width: 1024px) { .tabla-tarifas-camper .bloques-temporadas { grid-template-columns: 1fr 1fr !important; } }

/* tarjeta lateral «Reserva tu autocaravana» */
.e-con-full:has(.form-contacto-extra) {
  background: linear-gradient(160deg, #1d4278 0%, #15305a 60%, #102748 100%) !important; border: 1px solid rgba(209, 162, 62, .45) !important;
  border-radius: 24px !important; box-shadow: 0 30px 60px -30px rgba(21, 48, 90, .75) !important;
}
.e-con-full:has(.form-contacto-extra) .e-con { background: transparent !important; box-shadow: none !important; border: 0 !important; }
.e-con-full:has(.form-contacto-extra) h3 { color: #fff !important; }
.e-con-full:has(.form-contacto-extra) h3 span { color: #f0d28c !important; }
.e-con-full:has(.form-contacto-extra) p { color: #b4c4da !important; }
.form-contacto-extra .telefono-formulario a, .form-contacto-extra .telefono-formulario a span { color: #fff !important; }
.form-contacto-extra .telefono-formulario svg { stroke: #f0d28c !important; color: #f0d28c; }
.form-contacto-extra .redes-formulario a { background: rgba(255, 255, 255, .08) !important; color: #f0d28c !important; border: 1px solid rgba(240, 210, 140, .35) !important; border-radius: 999px !important; }
.form-contacto-extra .redes-formulario a:hover { background: var(--r40-oro) !important; color: var(--r40-noche) !important; }

/* ===== Página de tarifas: mismos colores de temporada que las fichas (baja cielo · media dorado · alta azul noche) ===== */
.e-con .elementor-element .tabla-precios td.temp-baja.temp-baja { background: #eef4fb !important; color: #2b6cb8 !important; }
.e-con .elementor-element .tabla-precios td.temp-media.temp-media { background: #fbf3df !important; color: #a97b22 !important; }
.e-con .elementor-element .tabla-precios td.temp-alta.temp-alta { background: #15305a !important; color: #f0d28c !important; }
.e-con .elementor-element .tabla-precios thead th { background: linear-gradient(135deg, #15305a, #1f4f8f) !important; color: #f0d28c !important; }
.modelo-tabla td.temp-baja.temp-baja { background: #eef4fb !important; color: #2b6cb8 !important; }
.modelo-tabla td.temp-media.temp-media { background: #fbf3df !important; color: #a97b22 !important; }
.modelo-tabla td.temp-alta.temp-alta { background: #15305a !important; color: #f0d28c !important; }
.modelo-tabla thead th { background: linear-gradient(135deg, #15305a, #1f4f8f) !important; color: #f0d28c !important; }
.tarifas-col-derecha .temporada-box { border-radius: 16px !important; border: 1px solid #dbe6f2; }
.tarifas-col-derecha .temporada-box.temporada-baja { background: linear-gradient(180deg, #ffffff, #eef4fb) !important; color: #1f4f8f !important; }
.tarifas-col-derecha .temporada-box.temporada-media { background: linear-gradient(180deg, #fffaf0, #fbf0d6) !important; color: #7a5a1a !important; border-color: rgba(209, 162, 62, .45); }
.tarifas-col-derecha .temporada-box.temporada-alta { background: linear-gradient(160deg, #1d4278, #15305a) !important; color: #e8eef7 !important; border-color: rgba(209, 162, 62, .45); }
.tarifas-col-derecha .temporada-box strong, .tarifas-col-derecha .temporada-box p { color: inherit !important; }
.tarifas-col-derecha .temporada-box.temporada-alta strong { color: #f0d28c !important; }
.tarifas-col-derecha .temporada-box p { font-weight: 500 !important; }
/* temporada reducida (ene–feb): tabla de las fichas y página de tarifas */
.e-con .elementor-element .tabla-tarifas-camper .tabla-precios tbody td.temp-reducida.temp-reducida, .modelo-tabla td.temp-reducida.temp-reducida { background: #eef1f6 !important; color: #5b6f8a !important; font-weight: 700; }
.tarifas-col-derecha .temporada-box.temporada-reducida { background: linear-gradient(180deg, #ffffff, #eef1f6) !important; color: #4b5d75 !important; border-radius: 16px !important; border: 1px solid #dbe2ec; padding: 14px 16px; margin-bottom: 10px; }
.bloques-temporadas .bloque.reducida { background: linear-gradient(180deg, #ffffff, #eef1f6) !important; color: #4b5d75 !important; }

/* ===== Cursor de autocaravana (solo con ratón): azul noche normal, dorada sobre lo que se puede pulsar.
   Mira hacia la derecha; la punta es la esquina delantera de la capuchina (29, 6). En campos de texto se mantiene el cursor de escribir. ===== */
@media (hover: hover) and (pointer: fine) {
  html, body { cursor: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2232%22 height=%2232%22 viewBox=%220 0 32 32%22%3E%3Cg transform=%22translate%2832 0%29 scale%28-1 1%29%22%3E%3Cpath d=%22M2 22.8V17.8L4.8 14.2H7.6V12.4H4.4C3.6 12.4 3 11.8 3 11V8.2C3 7 4 6 5.2 6H28C29.1 6 30 6.9 30 8V22.6C30 23.7 29.1 24.6 28 24.6H3.8C2.8 24.6 2 23.8 2 22.8Z%22 fill=%22%2315305a%22 stroke=%22%23fff%22 stroke-width=%221%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M3.5 17.6L5.4 15.3H7.6V17.6Z%22 fill=%22%23bfe0f7%22/%3E%3Crect x=%224.6%22 y=%227.8%22 width=%223.4%22 height=%222.6%22 rx=%22.8%22 fill=%22%23bfe0f7%22/%3E%3Crect x=%2211.6%22 y=%229%22 width=%225.6%22 height=%224%22 rx=%221%22 fill=%22%23bfe0f7%22/%3E%3Crect x=%2222.4%22 y=%229%22 width=%225.6%22 height=%224%22 rx=%221%22 fill=%22%23bfe0f7%22/%3E%3Crect x=%2218.6%22 y=%229%22 width=%222.6%22 height=%228%22 rx=%22.6%22 fill=%22none%22 stroke=%22%23bfe0f7%22 stroke-width=%22.6%22 opacity=%22.8%22/%3E%3Crect x=%227.6%22 y=%2218.3%22 width=%2222.4%22 height=%221.7%22 fill=%22%23d1a23e%22/%3E%3Ccircle cx=%228.6%22 cy=%2224.6%22 r=%223.1%22 fill=%22%230d203d%22 stroke=%22%23fff%22 stroke-width=%221%22/%3E%3Ccircle cx=%228.6%22 cy=%2224.6%22 r=%221%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2224.6%22 cy=%2224.6%22 r=%223.1%22 fill=%22%230d203d%22 stroke=%22%23fff%22 stroke-width=%221%22/%3E%3Ccircle cx=%2224.6%22 cy=%2224.6%22 r=%221%22 fill=%22%23fff%22/%3E%3C/g%3E%3C/svg%3E") 29 6, auto; }
  a, a *, button, button *, [role="button"], summary, label, select, .r40-destino, .r40-destino *,
  input[type="submit"], input[type="button"], input[type="checkbox"], input[type="radio"], .elementor-button {
    cursor: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2232%22 height=%2232%22 viewBox=%220 0 32 32%22%3E%3Cg transform=%22translate%2832 0%29 scale%28-1 1%29%22%3E%3Cpath d=%22M2 22.8V17.8L4.8 14.2H7.6V12.4H4.4C3.6 12.4 3 11.8 3 11V8.2C3 7 4 6 5.2 6H28C29.1 6 30 6.9 30 8V22.6C30 23.7 29.1 24.6 28 24.6H3.8C2.8 24.6 2 23.8 2 22.8Z%22 fill=%22%23d1a23e%22 stroke=%22%23fff%22 stroke-width=%221%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M3.5 17.6L5.4 15.3H7.6V17.6Z%22 fill=%22%23fff7e0%22/%3E%3Crect x=%224.6%22 y=%227.8%22 width=%223.4%22 height=%222.6%22 rx=%22.8%22 fill=%22%23fff7e0%22/%3E%3Crect x=%2211.6%22 y=%229%22 width=%225.6%22 height=%224%22 rx=%221%22 fill=%22%23fff7e0%22/%3E%3Crect x=%2222.4%22 y=%229%22 width=%225.6%22 height=%224%22 rx=%221%22 fill=%22%23fff7e0%22/%3E%3Crect x=%2218.6%22 y=%229%22 width=%222.6%22 height=%228%22 rx=%22.6%22 fill=%22none%22 stroke=%22%23fff7e0%22 stroke-width=%22.6%22 opacity=%22.8%22/%3E%3Crect x=%227.6%22 y=%2218.3%22 width=%2222.4%22 height=%221.7%22 fill=%22%2315305a%22/%3E%3Ccircle cx=%228.6%22 cy=%2224.6%22 r=%223.1%22 fill=%22%230d203d%22 stroke=%22%23fff%22 stroke-width=%221%22/%3E%3Ccircle cx=%228.6%22 cy=%2224.6%22 r=%221%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2224.6%22 cy=%2224.6%22 r=%223.1%22 fill=%22%230d203d%22 stroke=%22%23fff%22 stroke-width=%221%22/%3E%3Ccircle cx=%2224.6%22 cy=%2224.6%22 r=%221%22 fill=%22%23fff%22/%3E%3C/g%3E%3C/svg%3E") 29 6, pointer !important;
  }
  input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]), textarea { cursor: text !important; }
}

/* ===== Portadas de Tarifas (7 idiomas) y Blog: foto de la MC4 retocada (assets/img/hero-pagina-mc4*.webp), texto a la derecha
   sobre los árboles con un velo azul noche, filete dorado y fundido con el fondo de la página ===== */
html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-28b4673.e-con {
  --min-height: 0px; position: relative; overflow: hidden; min-height: clamp(380px, 33vw, 480px) !important; padding: 0 !important;
  background: #0c1f3a !important;
}
html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-28b4673::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 1 !important; mix-blend-mode: normal !important;
  background: linear-gradient(90deg, rgba(12, 31, 58, .05) 0%, rgba(12, 31, 58, .12) 34%, rgba(12, 31, 58, .78) 58%, rgba(12, 31, 58, .9) 100%),
              url("../img/hero-pagina-mc4.webp") 18% 62% / cover no-repeat !important;
  animation: r40-hero-zoom 14s ease-out both;
}
html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-28b4673::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(239, 247, 252, 0), #eff7fc);
}
html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-28b4673 > .e-con-inner {
  position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 40px 28px 70px;
  display: flex; flex-direction: row; justify-content: flex-end; align-items: center;
}
html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-314aae0 { width: min(540px, 100%); max-width: 540px; margin: 0; }
html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-314aae0 > .elementor-widget-container { margin: 0 !important; padding: 0 !important; }   /* WordPress dejaba 100 px de margen */
html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-28b4673.e-con { --width: 100%; width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
/* tarifas traducidas: su plantilla encajona el contenido; la portada sale de la caja y ocupa todo el ancho */
html body.ast-plain-container :is(.elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645) .elementor-element.elementor-element-28b4673.e-con {
  width: 100vw !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important;
}
html body.ast-plain-container #page:has(:is(.elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645)) { overflow-x: clip; }
html body.ast-plain-container .ast-container:has(:is(.elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645)) #primary { margin-top: 0; padding-top: 0; }
html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-314aae0 .ruta40-titulo-banner {
  min-height: 0; display: block; text-align: left; border-radius: 0; overflow: visible; background: none !important; box-shadow: none;
}
html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-314aae0 .ruta40-titulo-overlay { padding: 0; background: none; animation: r40-hero-texto .8s .1s cubic-bezier(.2, .7, .2, 1) both; }
html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-314aae0 .ruta40-titulo-banner h1 {
  margin: 0 0 16px; color: #fff; font-size: clamp(40px, 5vw, 66px); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; text-transform: none;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}
html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-314aae0 .ruta40-titulo-banner h1::before {
  content: ""; display: block; width: 58px; height: 4px; margin-bottom: 20px; border-radius: 4px;
  background: linear-gradient(90deg, #e9cf8f, var(--r40-oro), var(--r40-oro-osc));
}
html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-314aae0 .ruta40-titulo-banner p {
  margin: 0; max-width: 46ch; color: #d6e2f0; font-size: 17px; font-weight: 500; line-height: 1.6; text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}
@keyframes r40-hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes r40-hero-texto { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) {
  html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-28b4673::before,
  html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-314aae0 .ruta40-titulo-overlay { animation: none; }
}
/* móvil: la autocaravana arriba y el texto abajo, sobre un velo que sube desde el pie */
@media (max-width: 767px) {
  html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-28b4673.e-con { min-height: 400px !important; }
  html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-28b4673::before {
    background: linear-gradient(180deg, rgba(12, 31, 58, .1) 0%, rgba(12, 31, 58, .25) 35%, rgba(12, 31, 58, .88) 72%, rgba(12, 31, 58, .95) 100%),
                url("../img/hero-pagina-mc4-movil.webp") center 30% / cover no-repeat !important;
  }
  html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-28b4673::after { height: 40px; }
  html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-28b4673 > .e-con-inner { flex-direction: column; align-items: stretch; justify-content: flex-end; padding: 0 20px 52px; min-height: 400px; max-width: none; }
  html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-314aae0 { width: 100% !important; max-width: none; flex: none; }
  html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-314aae0 .ruta40-titulo-banner h1 { font-size: 40px; margin-bottom: 10px; }
  html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-314aae0 .ruta40-titulo-banner h1::before { margin-bottom: 14px; width: 44px; }
  html body :is(.elementor-465, .elementor-5635, .elementor-5637, .elementor-5638, .elementor-5640, .elementor-5643, .elementor-5645, .elementor-5560) .elementor-element.elementor-element-314aae0 .ruta40-titulo-banner p { font-size: 14.5px; }
}

/* ===== Galería (parche_galeria.py + assets/js/galeria.js): cabecera compacta, filtros fijos, mosaico, cierre con reserva y visor ===== */
/* cabecera: la misma imagen que la portada de inicio (montaña, carretera y logo dentro de la imagen), algo más baja */
html body .elementor-5276 .elementor-element.elementor-element-70f66bf:not(.elementor-motion-effects-element-type-background) {
  background-image: url("../img/hero-ruta40.webp"); background-position: center 42%; background-size: cover; background-repeat: no-repeat;
}
html body .elementor-5276 .elementor-element.elementor-element-70f66bf.e-con { padding: 0 !important; min-height: 0 !important; height: clamp(420px, 50vw, 76vh) !important; margin-bottom: 0 !important; }
html body .elementor-5276 .elementor-element.elementor-element-70f66bf .elementor-element-d5a238d { display: none; }   /* el logo suelto sobra: ya va en la imagen */
html body .elementor-5276 .elementor-element.elementor-element-70f66bf::before {
  opacity: 1 !important; mix-blend-mode: normal !important;
  background: linear-gradient(to bottom, rgba(24, 44, 74, .12), rgba(24, 44, 74, .06) 55%, rgba(24, 44, 74, .12)) !important;
}
html body .elementor-5276 .elementor-element.elementor-element-70f66bf::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; pointer-events: none; z-index: 0;
  background: linear-gradient(to bottom, rgba(239, 247, 252, 0), #eff7fc);
}
@media (max-width: 768px) {
  html body .elementor-5276 .elementor-element.elementor-element-70f66bf:not(.elementor-motion-effects-element-type-background) { background-image: url("../img/hero-ruta40-movil.webp"); background-position: center 55%; }
  html body .elementor-5276 .elementor-element.elementor-element-70f66bf.e-con { height: 64.2vw !important; min-height: 240px !important; }
  html body .elementor-5276 .elementor-element.elementor-element-70f66bf::after { height: 60px; }
}

.r40-gal { padding: 48px 20px 90px; }
.r40-gal .r40-gal__inner { max-width: 1280px; }
.r40-gal .r40-gal__badge { background: transparent; color: var(--r40-oro-osc); padding: 0; letter-spacing: .18em; font-weight: 700; }
.r40-gal .r40-gal__title { color: var(--r40-noche); font-size: clamp(30px, 4vw, 46px); letter-spacing: -.02em; }
.r40-gal .r40-gal__title-hl { color: var(--r40-cielo); }
.r40-gal .r40-gal__subtitle { color: #4b6584; font-size: 17px; }
.r40-gal .r40-gal__header { margin-bottom: 22px; }

/* filtros: se quedan pegados arriba al bajar por el mosaico */
.r40-gal__barra { position: sticky; top: 0; z-index: 50; margin: 0 -20px 22px; padding: 12px 20px; }
.r40-gal__barra::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .25s;
  background: rgba(239, 247, 252, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px -20px rgba(21, 48, 90, .6);
}
.r40-gal__barra.is-fija::before { opacity: 1; }
.r40-gal__filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }
.r40-gal__filtros button {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 10px 9px 18px; border-radius: 999px; border: 1px solid #c9d8ea;
  background: #fff; color: var(--r40-noche); font: 600 14px/1 inherit; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.r40-gal__filtros button:hover { border-color: var(--r40-oro); box-shadow: 0 6px 16px -10px rgba(21, 48, 90, .5); }
.r40-gal__filtros button[aria-pressed="true"] { background: var(--r40-noche); border-color: var(--r40-noche); color: #fff; }
.r40-gal__filtros button:focus-visible { outline: 2px solid var(--r40-oro); outline-offset: 2px; }
.r40-gal__n { min-width: 24px; padding: 4px 7px; border-radius: 999px; background: #eaf1f9; color: #4b6584; font-size: 12px; font-weight: 700; text-align: center; }
.r40-gal__filtros button[aria-pressed="true"] .r40-gal__n { background: var(--r40-oro); color: var(--r40-noche); }

/* mosaico: cuadrícula con piezas grandes (2×2) y anchas (2×1); respeta el orden de las fotos */
.r40-gal .r40-gal__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 14px; }
.r40-gal .r40-gal__item {
  position: relative; display: block; margin: 0; aspect-ratio: auto; border-radius: 18px; overflow: hidden;
  background: #dfe8f2; box-shadow: 0 16px 34px -24px rgba(21, 48, 90, .6); transform: none;
  animation: r40-gal-entra .5s cubic-bezier(.2, .7, .2, 1) both;
}
.r40-gal .r40-gal__item--xl { grid-column: span 2; grid-row: span 2; }
.r40-gal .r40-gal__item--ancha { grid-column: span 2; }
.r40-gal .r40-gal__item--recorte { background: linear-gradient(180deg, #fff, #eef3f9); }
.r40-gal .r40-gal__item[hidden] { display: none; }
.r40-gal .r40-gal__item a { display: block; width: 100%; height: 100%; }
.r40-gal .r40-gal__item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.r40-gal .r40-gal__item--recorte img { object-fit: contain; padding: 14px; }
.r40-gal .r40-gal__item img[src$="yearling-01.webp"] { object-position: center 85%; }   /* la del faro: que no corte la autocaravana */
.r40-gal .r40-gal__item:hover { transform: none; box-shadow: 0 26px 44px -24px rgba(21, 48, 90, .75); }
.r40-gal .r40-gal__item:hover img { transform: scale(1.05); }
.r40-gal .r40-gal__item a::after {   /* icono de ampliar al pasar el ratón */
  content: ""; position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; opacity: 0; transform: scale(.8);
  background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315305a' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: opacity .25s, transform .25s;
}
.r40-gal .r40-gal__item:hover a::after { opacity: 1; transform: none; }
.r40-gal__item figcaption {
  position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 3px; padding: 46px 18px 15px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(13, 32, 61, .88)); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3;
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s;
}
.r40-gal__item--xl figcaption { font-size: 17px; padding: 70px 22px 20px; }
.r40-gal__item figcaption span { color: #f0d28c; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.r40-gal__item:hover figcaption, .r40-gal__item a:focus-visible + figcaption { opacity: 1; transform: none; }
.r40-gal__item--xl figcaption { opacity: 1; transform: none; }   /* las grandes llevan siempre su pie */
.r40-gal__item a:focus-visible { outline: 3px solid var(--r40-oro); outline-offset: -3px; }
@keyframes r40-gal-entra { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .r40-gal .r40-gal__item { animation: none; } .r40-gal .r40-gal__item img { transition: none; } }
@media (hover: none) { .r40-gal__item figcaption { opacity: 1; transform: none; } .r40-gal .r40-gal__item a::after { display: none; } }   /* en móvil, el pie siempre visible */
@media (max-width: 1024px) { .r40-gal .r40-gal__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; } }
@media (max-width: 680px) {
  .r40-gal { padding: 32px 14px 70px; }
  .r40-gal__barra { margin: 0 -14px 16px; padding: 10px 14px; }
  .r40-gal__filtros { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 2px 14px; }
  .r40-gal__filtros::-webkit-scrollbar { display: none; }
  .r40-gal__filtros button { flex: none; }
  .r40-gal .r40-gal__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 8px; }
  .r40-gal .r40-gal__item { border-radius: 12px; }
  .r40-gal__item figcaption { padding: 26px 10px 9px; font-size: 12px; }
  .r40-gal__item figcaption span { font-size: 9.5px; }
  .r40-gal__item--xl figcaption { padding: 40px 14px 12px; font-size: 14px; }
}

/* cierre: llamada a reservar + las tres autocaravanas */
.r40-gal__cta {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; margin-top: 64px; padding: 44px 48px;
  border-radius: 26px; overflow: hidden; color: #e8eef7;
  background: radial-gradient(120% 140% at 100% 0%, rgba(209, 162, 62, .22), transparent 55%), linear-gradient(120deg, #0c1f3a, #15305a 55%, #1d4278);
  box-shadow: 0 30px 60px -34px rgba(12, 31, 58, .8);
}
.r40-gal__cta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--r40-cielo) 25%, var(--r40-oro) 75%, transparent); }
.r40-gal__cta-eyebrow { display: block; margin-bottom: 10px; color: #f0d28c; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.r40-gal__cta h2 { margin: 0 0 12px; color: #fff; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.15; letter-spacing: -.015em; }
.r40-gal__cta p { margin: 0 0 24px; color: #b9c8dc; font-size: 16px; line-height: 1.6; }
.r40-gal__cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.r40-gal__btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none !important; transition: transform .2s, box-shadow .2s, background .2s; }
.r40-gal__btn:hover { transform: translateY(-2px); }
.r40-gal__btn--oro { background: linear-gradient(120deg, #e9cf8f, var(--r40-oro) 45%, var(--r40-oro-osc)); color: var(--r40-noche) !important; box-shadow: 0 12px 26px -14px rgba(209, 162, 62, .9); }
.r40-gal__btn--wa { border: 1px solid rgba(255, 255, 255, .3); color: #fff !important; }
.r40-gal__btn--wa:hover { background: #25d366; border-color: #25d366; }
.r40-gal__btn:focus-visible { outline: 2px solid #f0d28c; outline-offset: 3px; }
.r40-gal__modelos { display: grid; gap: 10px; }
.r40-gal__modelo {
  display: flex; align-items: center; gap: 16px; padding: 10px; border-radius: 16px; text-decoration: none !important;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); transition: background .2s, border-color .2s, transform .2s;
}
.r40-gal__modelo:hover, .r40-gal__modelo:focus-visible { background: rgba(255, 255, 255, .12); border-color: rgba(240, 210, 140, .5); transform: translateX(4px); outline: none; }
.r40-gal__modelo img { flex: none; width: 112px; height: 74px; object-fit: cover; border-radius: 10px; }
.r40-gal__modelo span { display: flex; flex-direction: column; gap: 4px; color: #f0d28c; font-size: 13px; font-weight: 600; }
.r40-gal__modelo strong { color: #fff; font-size: 16px; }
@media (max-width: 900px) { .r40-gal__cta { grid-template-columns: 1fr; padding: 34px 22px; gap: 26px; margin-top: 44px; } }
@media (max-width: 480px) { .r40-gal__btn { flex: 1 1 100%; justify-content: center; } .r40-gal__modelo img { width: 88px; height: 60px; } }

/* visor */
.r40-visor {
  position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 56px 84px;
  background: rgba(8, 20, 40, .95); backdrop-filter: blur(8px);
}
.r40-visor[hidden] { display: none; }
.r40-visor__foto { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.r40-visor__foto img { max-width: 100%; max-height: calc(100vh - 160px); border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); transition: opacity .25s; }
.r40-visor__foto img.is-cargando { opacity: .25; }
.r40-visor__foto figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 12px; color: #e4ecf6; font-size: 15px; text-align: center; }
.r40-visor__foto figcaption span { color: #f0d28c; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.r40-visor__foto figcaption em { color: #8a9bb1; font-style: normal; font-size: 13px; }
.r40-visor__foto figcaption a { color: #f0d28c; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.r40-visor button {
  position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font-size: 30px; line-height: 1; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.r40-visor button:hover, .r40-visor button:focus-visible { background: var(--r40-oro); border-color: var(--r40-oro); color: var(--r40-noche); outline: none; }
.r40-visor__cerrar { top: 16px; right: 16px; }
.r40-visor__flecha--ant { left: 18px; top: 50%; margin-top: -25px; }
.r40-visor__flecha--sig { right: 18px; top: 50%; margin-top: -25px; }
html.r40-visor-abierto { overflow: hidden; }
@media (max-width: 700px) { .r40-visor { padding: 64px 10px 84px; } .r40-visor__flecha--ant, .r40-visor__flecha--sig { top: auto; bottom: 18px; margin-top: 0; } .r40-visor__flecha--ant { left: calc(50% - 62px); } .r40-visor__flecha--sig { right: calc(50% - 62px); } }

/* ===== Tarifas (parche_tarifas.py): cinta del año por temporadas, leyenda, fechas especiales y la flota ===== */
.r40-tarifas { --t-reducida: #c3cfdd; --t-baja: #8db7e4; --t-media: #e2bb6c; --t-alta: #15305a; width: 100%; max-width: 1180px; margin: 0 auto; padding: 56px 20px 10px; }
.r40-t--reducida { --t: var(--t-reducida); } .r40-t--baja { --t: var(--t-baja); } .r40-t--media { --t: var(--t-media); } .r40-t--alta { --t: var(--t-alta); }
.r40-tarifas__eyebrow { display: block; margin-bottom: 10px; color: var(--r40-oro-osc); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.r40-tarifas h2 { margin: 0 0 10px; color: var(--r40-noche); font-size: clamp(26px, 3vw, 36px); line-height: 1.15; letter-spacing: -.015em; }
.r40-tarifas__sub { margin: 0; max-width: 60ch; color: #4b6584; font-size: 16px; }

.r40-precios { width: 100%; margin: 30px 0 0; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 44px -30px rgba(21, 48, 90, .5); }
.r40-precios th, .r40-precios td { padding: 20px 24px; text-align: left; vertical-align: middle; border: 0; background: transparent; }
.r40-precios thead th { padding: 14px 24px; background: var(--r40-noche); color: #f0d28c; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.r40-precios thead th:last-child, .r40-precios td:last-child { text-align: right; }
.r40-precios tbody tr + tr > * { border-top: 1px solid #e6eef7; }
.r40-precios tbody th { color: var(--r40-noche); font-size: 17px; font-weight: 800; white-space: nowrap; }
.r40-precios__punto { display: inline-block; width: 12px; height: 12px; margin-right: 12px; border-radius: 50%; background: var(--t); vertical-align: 1px; }
.r40-precios td { color: #33465f; font-size: 15px; line-height: 1.55; }
.r40-precios td small { display: block; margin-top: 2px; color: var(--r40-oro-osc); font-size: 13px; font-weight: 600; }
.r40-precios__precio { color: var(--r40-noche) !important; font-size: 30px !important; font-weight: 800; white-space: nowrap; letter-spacing: -.02em; }
.r40-precios__precio small { display: inline !important; margin-left: 3px; color: #6b819b !important; font-size: 14px !important; letter-spacing: 0; }
.r40-precios tr.r40-t--alta { background: linear-gradient(90deg, rgba(21, 48, 90, .05), transparent); }

.r40-notas { margin-top: 26px; }
.r40-notas strong { display: block; margin-bottom: 8px; color: var(--r40-noche); font-size: 15px; }
.r40-notas ul { margin: 0; padding: 0; list-style: none; }
.r40-notas li { position: relative; padding-left: 20px; max-width: 95ch; color: #4b6584; font-size: 14.5px; line-height: 1.6; }
.r40-notas li + li { margin-top: 6px; }
.r40-notas li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--r40-oro); }
.r40-notas b { color: var(--r40-noche); }

.r40-flota { margin-top: 72px; }
.r40-flota__modelos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 26px; }
.r40-flota__modelo h3 { margin: 18px 0 4px; color: var(--r40-noche); font-size: 21px; }
.r40-flota__modelo p { margin: 0; color: #4b6584; font-size: 15px; }
.r40-flota__foto { display: block; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; box-shadow: 0 22px 44px -28px rgba(21, 48, 90, .65); }
.r40-flota__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.r40-flota__foto:hover img { transform: scale(1.05); }
.r40-flota__acciones { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.r40-flota__ver, .r40-tarifas-cond a { display: inline-flex; align-items: center; gap: 7px; color: var(--r40-cielo) !important; font-weight: 700; font-size: 15px; text-decoration: none !important; }
.r40-flota__ver svg, .r40-tarifas-cond a svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.r40-flota__ver:hover svg, .r40-tarifas-cond a:hover svg { transform: translateX(3px); }
.r40-flota__reservar { padding: 11px 22px; border-radius: 999px; background: var(--r40-noche); color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none !important; transition: background .2s; }
.r40-flota__reservar:hover { background: var(--r40-cielo); }

.r40-tarifas-cond { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; width: 100%; max-width: 1180px; margin: 30px auto 70px; padding: 22px 20px; border-top: 1px solid #dbe6f2; border-bottom: 1px solid #dbe6f2; color: var(--r40-noche); font-weight: 600; text-align: center; }

@media (max-width: 900px) { .r40-flota__modelos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .r40-tarifas { padding-top: 40px; }
  /* en móvil, cada temporada como una fila apilada: nombre y precio arriba, fechas y mínimo debajo */
  .r40-precios thead { display: none; }
  .r40-precios, .r40-precios tbody { display: block; }
  .r40-precios tr { display: grid; grid-template-columns: 1fr auto; padding: 16px 18px; gap: 2px 12px; }
  .r40-precios tbody tr + tr { border-top: 1px solid #e6eef7; }
  .r40-precios tbody tr + tr > * { border-top: 0; }
  .r40-precios th, .r40-precios td { padding: 0; }
  .r40-precios tbody th { grid-column: 1; grid-row: 1; align-self: center; }
  .r40-precios__precio { grid-column: 2; grid-row: 1; font-size: 26px !important; }
  .r40-precios td:nth-of-type(1) { grid-column: 1 / -1; font-size: 14px; }
  .r40-precios td:nth-of-type(2) { grid-column: 1 / -1; color: var(--r40-oro-osc); font-size: 13px; font-weight: 700; text-align: left; }
  .r40-flota__modelos { grid-template-columns: 1fr; }
}

/* ===== FAQs como guía por temas (parche_faqs.py): índice fijo y texto de documento, sin tarjetas ===== */
.r40-guia { max-width: 1180px; margin: 0 auto; padding: 72px 20px 70px; color: #33465f; }
.r40-guia__cab { max-width: 780px; }
.r40-guia__eyebrow { display: block; margin-bottom: 12px; color: var(--r40-oro-osc); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.r40-guia__cab h1 { margin: 0 0 14px; color: var(--r40-noche); font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: -.02em; }
.r40-guia__cab p { margin: 0; color: #4b6584; font-size: 17px; line-height: 1.65; }
.r40-guia__cuerpo { display: grid; grid-template-columns: 250px 1fr; gap: 64px; margin-top: 52px; }

.r40-guia__indice { position: sticky; top: 110px; align-self: start; }
.r40-guia__indice strong { display: block; margin-bottom: 12px; color: var(--r40-noche); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.r40-guia__indice ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid #dbe6f2; }
.r40-guia__indice a {
  display: block; margin-left: -2px; padding: 7px 0 7px 16px; border-left: 2px solid transparent;
  color: #4b6584 !important; font-size: 14.5px; line-height: 1.35; text-decoration: none !important; transition: color .2s, border-color .2s;
}
.r40-guia__indice a:hover, .r40-guia__indice a.is-activo { color: var(--r40-noche) !important; border-left-color: var(--r40-oro); }
.r40-guia__indice a.is-activo { font-weight: 700; }

.r40-tema { padding: 0 0 38px; margin-bottom: 38px; border-bottom: 1px solid #dbe6f2; scroll-margin-top: 120px; }
.r40-tema h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; color: var(--r40-noche); font-size: clamp(22px, 2.4vw, 27px); letter-spacing: -.01em; }
.r40-tema__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--r40-oro); color: var(--r40-oro-osc); }
.r40-tema__ico svg { width: 21px; height: 21px; }
.r40-tema ul { margin: 0; padding: 0; list-style: none; }
.r40-tema li { position: relative; padding-left: 22px; font-size: 16.5px; line-height: 1.7; }
.r40-tema li + li { margin-top: 6px; }
.r40-tema li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--r40-oro); }

.r40-tema__preguntas { margin-top: 22px; border-top: 1px dashed #c9d8ea; }
.r40-pregunta { border-bottom: 1px dashed #c9d8ea; }
.r40-pregunta summary {
  position: relative; padding: 15px 40px 15px 0; list-style: none; cursor: pointer;
  color: var(--r40-noche); font-size: 16px; font-weight: 700; transition: color .2s;
}
.r40-pregunta summary::-webkit-details-marker { display: none; }
.r40-pregunta summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--r40-oro-osc); border-bottom: 2px solid var(--r40-oro-osc); transform: rotate(45deg); transition: transform .25s;
}
.r40-pregunta[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.r40-pregunta summary:hover { color: var(--r40-cielo); }
.r40-pregunta p { margin: 0 0 16px; color: #4b6584; font-size: 15.5px; line-height: 1.7; }

.r40-tema--pen > p { margin: 0 0 22px; color: #4b6584; font-size: 16px; line-height: 1.6; }
.r40-tema--pen dl { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; margin: 0; }
.r40-tema--pen dl div { padding-left: 16px; border-left: 3px solid var(--r40-oro); }
.r40-tema--pen dt { color: var(--r40-noche); font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.r40-tema--pen dd { margin: 2px 0 0; color: #4b6584; font-size: 14.5px; line-height: 1.5; }

.r40-guia__cierre { display: flex; align-items: center; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; padding-top: 6px; }
.r40-guia__cierre strong { display: block; color: var(--r40-noche); font-size: 21px; }
.r40-guia__cierre p { margin: 4px 0 0; max-width: 60ch; color: #4b6584; font-size: 15px; }
.r40-guia__cierre a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; background: var(--r40-noche); color: #fff !important; font-weight: 700; text-decoration: none !important; transition: background .2s; }
.r40-guia__cierre a:hover { background: var(--r40-cielo); }
.r40-guia__cierre a svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 900px) {
  .r40-guia { padding-top: 110px; }
  .r40-guia__cuerpo { grid-template-columns: 1fr; gap: 30px; margin-top: 34px; }
  .r40-guia__indice { position: static; }
  .r40-guia__indice ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .r40-guia__indice a { margin: 0; padding: 7px 14px; border: 1px solid #c9d8ea; border-radius: 999px; background: #fff; font-size: 13.5px; }
}
@media (max-width: 600px) { .r40-tema--pen dl { grid-template-columns: 1fr; } }

/* ===== Blog estilo revista (sin tocar el HTML: crear_articulo_*.py sigue insertando tarjetas r40b-card al principio).
   La primera visible va destacada en grande; main.js reparte el resto en 2 y 3 columnas y añade los filtros ===== */
#r40-blog { padding: 56px 20px 80px; }
#r40-blog .r40b-filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1200px; margin: 0 auto 34px; }
#r40-blog .r40b-filtros button {
  padding: 9px 18px; border-radius: 999px; border: 1px solid #c9d8ea; background: #fff; color: var(--r40-noche);
  font: 600 14px/1 inherit; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
#r40-blog .r40b-filtros button:hover { border-color: var(--r40-oro); }
#r40-blog .r40b-filtros button[aria-pressed="true"] { background: var(--r40-noche); border-color: var(--r40-noche); color: #fff; }
#r40-blog .r40b-grid { grid-template-columns: repeat(6, 1fr); gap: 44px 30px; }
#r40-blog .r40b-card {
  position: relative; grid-column: span 3; background: transparent; border-radius: 0; box-shadow: none; overflow: visible; transform: none !important;
}
#r40-blog .r40b-card[hidden] { display: none; }
#r40-blog .r40b-card[data-tam="2"] { grid-column: span 2; }
#r40-blog .r40b-card[data-tam="6"] { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 34px; }   /* una sola en su fila: en horizontal */
@media (max-width: 900px) { #r40-blog .r40b-card[data-tam="6"] { display: flex; grid-column: span 1; } }
#r40-blog .r40b-grid:not(.is-maquetado) .r40b-card:nth-child(n+4):nth-child(-n+6) { grid-column: span 2; }   /* sin JavaScript */
#r40-blog .r40b-card:hover { box-shadow: none; }
#r40-blog .r40b-img { aspect-ratio: 16 / 10; border-radius: 18px; box-shadow: 0 20px 40px -28px rgba(21, 48, 90, .6); transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .4s; }
#r40-blog .r40b-card:hover .r40b-img { transform: scale(1.02); box-shadow: 0 26px 48px -28px rgba(21, 48, 90, .7); }
#r40-blog .r40b-body { padding: 18px 2px 0; }
#r40-blog .r40b-cat { align-self: flex-start; margin: 0 0 8px; padding: 0; background: none; border-radius: 0; color: var(--r40-oro-osc); font-size: 11.5px; letter-spacing: .14em; }
#r40-blog .r40b-title { margin: 0 0 8px; color: var(--r40-noche); font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
#r40-blog .r40b-title::after { content: ""; position: absolute; inset: 0; }   /* toda la tarjeta es el enlace */
#r40-blog .r40b-card:hover .r40b-title { color: var(--r40-cielo); }
#r40-blog .r40b-card[data-tam="2"] .r40b-title { font-size: 18px; }
#r40-blog .r40b-excerpt { margin: 0 0 12px; color: #4b6584; font-size: 15px; }
#r40-blog .r40b-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; }
#r40-blog .r40b-date { color: #8a9bb1; font-size: 13px; }
#r40-blog .r40b-btn { position: static; padding: 0; background: none !important; box-shadow: none; color: var(--r40-cielo) !important; font-size: 13.5px; font-weight: 700; }
#r40-blog .r40b-btn::after { content: " →"; }

/* el destacado: foto grande a la izquierda y el titular a la derecha */
#r40-blog .r40b-card.is-destacado, #r40-blog .r40b-grid:not(.is-maquetado) .r40b-card:first-child {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.45fr 1fr; align-items: center; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid #dbe6f2;
}
#r40-blog .r40b-card.is-destacado .r40b-img, #r40-blog .r40b-grid:not(.is-maquetado) .r40b-card:first-child .r40b-img { aspect-ratio: 3 / 2; border-radius: 24px; }
#r40-blog .r40b-card.is-destacado .r40b-title, #r40-blog .r40b-grid:not(.is-maquetado) .r40b-card:first-child .r40b-title { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -.02em; }
#r40-blog .r40b-card.is-destacado .r40b-excerpt { font-size: 17px; line-height: 1.65; }
#r40-blog .r40b-card.is-destacado .r40b-body::before {
  content: "Último artículo"; display: block; margin-bottom: 14px; color: var(--r40-noche); font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
}

@media (max-width: 900px) {
  #r40-blog .r40b-grid { grid-template-columns: 1fr 1fr; gap: 36px 22px; }
  #r40-blog .r40b-card, #r40-blog .r40b-card[data-tam="2"] { grid-column: span 1; }
  #r40-blog .r40b-card.is-destacado { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 600px) {
  #r40-blog .r40b-grid { grid-template-columns: 1fr; }
  #r40-blog .r40b-filtros { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 26px; padding: 0 20px 4px; scrollbar-width: none; }
  #r40-blog .r40b-filtros button { flex: none; }
}

/* ===== Contacto (parche_contacto.py + assets/js/contacto.js): la reserva como tarjeta de embarque de Ruta 40 ===== */
.r40-res { max-width: 1200px; margin: 0 auto; padding: 56px 20px 80px; font-family: 'Lexend', system-ui, sans-serif; color: var(--r40-noche); }
.r40-res__oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; opacity: 0; pointer-events: none; }
.r40-res__cabecera { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.r40-res__eyebrow { display: inline-block; margin-bottom: 12px; color: var(--r40-oro-osc); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.r40-res__cabecera h1 { margin: 0 0 14px; color: var(--r40-noche); font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
.r40-res__cabecera h1 span { color: var(--r40-cielo); }
.r40-res__cabecera p { margin: 0 auto; max-width: 56ch; color: #4b6584; font-size: 17px; line-height: 1.6; }

/* el billete: formulario (blanco) + talón (azul noche) separados por un perforado con muescas */
.r40-res__billete {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; border-radius: 28px; background: #fff;
  box-shadow: 0 40px 80px -48px rgba(12, 31, 58, .55), 0 2px 6px rgba(12, 31, 58, .05);
}
.r40-res__form-wrap { padding: 34px 38px 30px; }
.r40-res__form fieldset { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.r40-res__form legend { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 0; color: var(--r40-noche); font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.r40-res__form legend span {
  display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #e9cf8f, var(--r40-oro) 55%, var(--r40-oro-osc)); color: var(--r40-noche); font-size: 13px; font-weight: 800;
}

/* paso 1: modelos con foto */
.r40-res__modelos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.r40-res__modelo {
  position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; border: 2px solid #dbe6f2; border-radius: 16px;
  background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.r40-res__modelo img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
/* El tema (Astra) pinta de verde cualquier <button> con foco: tras elegir un modelo la tarjeta se quedaba en verde */
.r40-res__modelo:focus, .r40-res__modelo:active { background: #fff; color: inherit; border-color: #dbe6f2; box-shadow: none; }
.r40-res__modelo--duda:focus, .r40-res__modelo--duda:active { background: linear-gradient(180deg, #f5f8fc, #fff); }
.r40-res__modelo:hover { transform: translateY(-3px); border-color: #b9d4f0; background: #f2f8fe; box-shadow: 0 0 0 4px rgba(43, 108, 184, .1), 0 16px 28px -20px rgba(21, 48, 90, .45); }   /* sombreado azul muy claro */
.r40-res__modelo:hover img { transform: scale(1.05); }
.r40-res__modelo:focus-visible { outline: 3px solid var(--r40-cielo); outline-offset: 2px; }
.r40-res__modelo[aria-pressed="true"] { border-color: var(--r40-oro); box-shadow: none; }
.r40-res__modelo::after {   /* sello de «elegida» */
  content: "✓"; position: absolute; top: 8px; right: 8px; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--r40-oro); color: var(--r40-noche); font-size: 15px; font-weight: 800;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .5); opacity: 0; transform: scale(.4) rotate(-30deg); transition: opacity .2s, transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.r40-res__modelo[aria-pressed="true"]::after { opacity: 1; transform: none; }
.r40-res__modelo-txt { display: flex; flex-direction: column; gap: 1px; padding: 8px 11px 10px; }
.r40-res__modelo-txt strong { font-size: 13.5px; line-height: 1.25; color: var(--r40-noche); }
.r40-res__modelo-txt small { color: #5b6f8a; font-size: 12px; }
.r40-res__modelo--duda { background: linear-gradient(180deg, #f5f8fc, #fff); }
.r40-res__duda-icono {
  display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10;
  background: radial-gradient(80% 90% at 70% 15%, rgba(209, 162, 62, .28), transparent 60%), linear-gradient(150deg, #1d4278, #15305a 55%, #0c1f3a);
  color: #f0d28c; font-size: 34px; font-weight: 800; text-shadow: 0 4px 14px rgba(209, 162, 62, .45);
}

/* paso 2: fechas, con los días entre medias como una carretera */
.r40-res__fechas { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 14px; }
.r40-res__ruta { display: flex; align-items: center; gap: 8px; height: 48px; color: var(--r40-noche); }
.r40-res__ruta i { width: 26px; border-top: 2px dashed #c9d8ea; }
.r40-res__ruta b { min-width: 28px; font-size: 23px; font-weight: 800; line-height: 1; text-align: center; color: var(--r40-cielo); }
.r40-res__ruta small { margin-left: -4px; color: #5b6f8a; font-size: 12px; font-weight: 600; }
.r40-res__aviso { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #fbf3df; color: #7a5a1a; font-size: 13.5px; font-weight: 500; }

/* campos */
.r40-res__campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.r40-res__campo > span { color: #5b6f8a; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.r40-res__campo > span em { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; }
.r40-res__form .r40-res__campo input, .r40-res__form textarea {
  box-sizing: border-box; width: 100%; height: 48px; padding: 0 15px; border: 1.5px solid #d3e0ee; border-radius: 13px; background-color: #f7fafd;
  color: var(--r40-noche); font: 500 15px/1.3 'Lexend', system-ui, sans-serif; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.r40-res__form textarea { height: auto; min-height: 80px; padding: 14px 16px; resize: vertical; }
.r40-res__form .r40-res__campo input::placeholder, .r40-res__form textarea::placeholder { color: #95a7bd; }
.r40-res__form .r40-res__campo input:hover, .r40-res__form textarea:hover { border-color: #a9bfd6; }
.r40-res__form .r40-res__campo input:focus, .r40-res__form textarea:focus { outline: none; border-color: var(--r40-cielo); background-color: #fff; box-shadow: 0 0 0 4px rgba(43, 108, 184, .15); }
.r40-res__form .r40-res__campo input:user-invalid { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192, 57, 43, .1); }
.r40-res__form #form-field-name, .r40-res__form #form-field-field_529be45 { padding-left: 42px; background-repeat: no-repeat; background-position: 15px center; background-size: 16px; }
.r40-res__datos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 12px; }
.r40-res__contador { display: flex; align-items: center; height: 48px; border: 1.5px solid #d3e0ee; border-radius: 13px; background: #f7fafd; overflow: hidden; }
.r40-res__contador button {
  width: 40px; height: 100%; padding: 0; border: 0; background: transparent; color: var(--r40-cielo); font: 700 20px/1 inherit; cursor: pointer; transition: background .2s;
}
.r40-res__contador button:hover { background: #eaf1f9; }
.r40-res__contador button:focus-visible { outline: 2px solid var(--r40-cielo); outline-offset: -2px; }
.r40-res__form .r40-res__contador input {
  width: 42px; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; text-align: center; font-size: 18px; font-weight: 700;
  -moz-appearance: textfield; appearance: textfield;
}
.r40-res__contador input::-webkit-inner-spin-button, .r40-res__contador input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* privacidad y botón */
.r40-res__privacidad { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: #4b6584; font-size: 13.5px; cursor: pointer; }
.r40-res__privacidad input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--r40-oro-osc); }
.r40-res__privacidad a { color: var(--r40-cielo); font-weight: 600; }
.r40-res__enviar {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 22px; overflow: hidden;
  border: 0; border-radius: 16px; background: linear-gradient(120deg, #e9cf8f, var(--r40-oro) 45%, var(--r40-oro-osc)); color: var(--r40-noche);
  font: 800 15px/1 'Lexend', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  box-shadow: 0 18px 34px -18px rgba(169, 123, 34, .9); transition: transform .2s, box-shadow .2s, filter .2s;
}
.r40-res__enviar::after {   /* la autocaravana del botón arranca al pasar el ratón */
  content: ""; width: 31px; height: 20px; flex: none; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 22'%3E%3Cg transform='translate(34 0) scale(-1 1)'%3E%3Cpath d='M2 15.5V11l2.6-3.4H7V6H4.2A1.4 1.4 0 0 1 2.8 4.6V2.8C2.8 1.8 3.6 1 4.6 1H30c1.1 0 2 .9 2 2v12.4c0 1.1-.9 2-2 2H3.9c-1 0-1.9-.8-1.9-1.9Z' fill='%2315305a'/%3E%3Crect x='11' y='4' width='6' height='4' rx='1' fill='%23f3e2b4'/%3E%3Crect x='22' y='4' width='6' height='4' rx='1' fill='%23f3e2b4'/%3E%3Ccircle cx='9' cy='18' r='3.2' fill='%230d203d' stroke='%23f3e2b4' stroke-width='1.2'/%3E%3Ccircle cx='26' cy='18' r='3.2' fill='%230d203d' stroke='%23f3e2b4' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.r40-res__enviar::before {   /* brillo que cruza el botón */
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transition: left .7s;
}
.r40-res__enviar:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 24px 40px -18px rgba(169, 123, 34, .95); }
.r40-res__enviar:hover::after { transform: translateX(10px); }
.r40-res__enviar:hover::before { left: 120%; }
.r40-res__enviar:focus-visible { outline: 3px solid var(--r40-noche); outline-offset: 3px; }
.r40-res__enviar[disabled] { opacity: .75; cursor: progress; }
.r40-res .r40-form-nota, .r40-res__form .r40-form-nota { margin-top: 12px; }

/* el talón: resumen en directo */
.r40-res__talon {
  position: relative; display: flex; flex-direction: column; gap: 22px; padding: 30px 28px 26px; border-radius: 0 28px 28px 0; color: #e8eef7;
  background: radial-gradient(130% 90% at 100% 0%, rgba(209, 162, 62, .2), transparent 55%), linear-gradient(160deg, #1d4278, #15305a 45%, #0c1f3a);
  border-left: 2px dashed rgba(255, 255, 255, .28);
}
.r40-res__talon::before, .r40-res__talon::after {   /* muescas del perforado */
  content: ""; position: absolute; left: -16px; width: 30px; height: 30px; border-radius: 50%; background: var(--r40-fondo, #eff7fc);
}
.r40-res__talon::before { top: -15px; box-shadow: inset 0 -3px 4px -2px rgba(12, 31, 58, .12); }
.r40-res__talon::after { bottom: -15px; box-shadow: inset 0 3px 4px -2px rgba(12, 31, 58, .12); }
.r40-res__talon-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.r40-res__talon-top img { width: 104px; height: auto; }
.r40-res__talon-top span { color: #f0d28c; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; text-align: right; }
.r40-res__trayecto { display: grid; grid-template-columns: 1fr 58px 1fr; align-items: center; gap: 6px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.r40-res__trayecto div { display: flex; flex-direction: column; gap: 2px; }
.r40-res__trayecto div:last-child { text-align: right; }
.r40-res__trayecto small { color: #8fa6c4; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.r40-res__trayecto strong { color: #fff; font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: .02em; }
.r40-res__trayecto span { color: #b9c8dc; font-size: 12.5px; }
.r40-res__trayecto svg { width: 58px; color: var(--r40-oro); }
.r40-res__resumen { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin: 0; }
.r40-res__resumen div { min-width: 0; }
.r40-res__resumen--ancho { grid-column: span 2; }
.r40-res__resumen dt { margin-bottom: 4px; color: #8fa6c4; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.r40-res__resumen dd { margin: 0; overflow: hidden; color: #fff; font-size: 16px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.r40-res__resumen dd.is-nuevo { animation: r40-res-destello .7s ease-out; }
@keyframes r40-res-destello { from { color: #f0d28c; transform: translateY(-3px); } }
.r40-res__codigo { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 22px; border-top: 1px dashed rgba(255, 255, 255, .22); }
.r40-res__codigo span {
  height: 50px; border-radius: 4px; opacity: .85;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 9px, #fff 9px 12px, transparent 12px 13px, #fff 13px 14px, transparent 14px 17px);
}
.r40-res__codigo small { color: #8fa6c4; font-size: 9.5px; font-weight: 600; letter-spacing: .2em; text-align: center; }

/* debajo: horario, recogida, contacto directo y mapa */
.r40-res__info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.r40-res__tarjeta { padding: 26px; border: 1px solid #e1eaf4; border-radius: 22px; background: #fff; box-shadow: 0 20px 40px -34px rgba(12, 31, 58, .5); }
.r40-res__tarjeta svg { width: 48px; height: 48px; padding: 12px; box-sizing: border-box; border-radius: 14px; background: #eef4fb; fill: none; stroke: var(--r40-cielo); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.r40-res__tarjeta h2 { margin: 16px 0 10px; color: var(--r40-noche); font-size: 17px; font-weight: 700; }
.r40-res__tarjeta p { margin: 0 0 12px; color: #4b6584; font-size: 14.5px; line-height: 1.6; }
.r40-res__tarjeta ul { margin: 0; padding: 0; list-style: none; }
.r40-res__tarjeta li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #dbe6f2; color: #4b6584; font-size: 14px; }
.r40-res__tarjeta li:last-child { border-bottom: 0; }
.r40-res__tarjeta li strong { color: var(--r40-noche); }
.r40-res__tarjeta .r40-res__oro { color: var(--r40-oro-osc); }
.r40-res__tarjeta .r40-res__nota { padding: 10px 12px; border-radius: 12px; background: #f5f8fc; font-size: 13.5px; line-height: 1.5; }
.r40-res__tarjeta > a { color: var(--r40-cielo); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.r40-res__tarjeta > a:hover { text-decoration: underline; }
.r40-res__tarjeta--directo { background: linear-gradient(160deg, #1d4278, #15305a 60%, #0c1f3a); border-color: transparent; }
.r40-res__tarjeta--directo svg { background: rgba(255, 255, 255, .1); stroke: #f0d28c; }
.r40-res__tarjeta--directo h2 { color: #fff; }
.r40-res__tarjeta--directo p { color: #b9c8dc; }
.r40-res__directo { display: flex; flex-wrap: wrap; gap: 8px; }
.r40-res__btn {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 999px;
  color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none !important; transition: background .2s, border-color .2s, transform .2s;
}
.r40-res__btn:hover { transform: translateY(-2px); border-color: #f0d28c; }
.r40-res__btn--wa { background: #25d366; border-color: #25d366; }
.r40-res__btn--wa:hover { background: #1ebe5b; border-color: #1ebe5b; }
.r40-res__mapa { height: 340px; margin-top: 18px; overflow: hidden; border-radius: 22px; box-shadow: 0 20px 40px -34px rgba(12, 31, 58, .5); }
.r40-res__mapa iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (prefers-reduced-motion: reduce) { .r40-res * { transition: none !important; animation: none !important; } }
@media (max-width: 1100px) { .r40-res__modelos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .r40-res__billete { grid-template-columns: 1fr; }
  .r40-res__talon { display: none; }   /* en móvil el resumen sobra: los días ya se ven junto a las fechas */
  .r40-res__info { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .r40-res { padding: 36px 14px 60px; }
  .r40-res__cabecera { margin-bottom: 26px; }
  .r40-res__cabecera p { font-size: 15.5px; }
  .r40-res__billete { border-radius: 22px; }
  .r40-res__form-wrap { padding: 26px 18px 24px; }
  .r40-res__modelos { gap: 8px; }
  .r40-res__fechas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .r40-res__ruta { grid-column: 1 / -1; grid-row: 2; justify-content: center; height: auto; }
  .r40-res__datos { grid-template-columns: 1fr; }
  .r40-res__form .r40-res__campo input { font-size: 16px; }
  .r40-res__form .r40-res__fechas input { padding: 0 10px; font-size: 15px; }
  .r40-res__form .r40-res__contador input { flex: 1; }
  .r40-res__contador button { width: 64px; }
  .r40-res__mapa { height: 260px; }
}

/* ===== Pie de página a todo el ancho: el fondo azul va de borde a borde y el contenido sigue centrado (máx. 1180 px) ===== */
html body footer.elementor-location-footer > .elementor-element-7ca6b82.e-con { padding: 0 !important; }
html body footer.elementor-location-footer > .elementor-element-7ca6b82 > .e-con-inner { max-width: none !important; width: 100% !important; padding: 0 !important; }
html body footer.elementor-location-footer .elementor-element-fed475b,
html body footer.elementor-location-footer .elementor-element-fed475b > .elementor-widget-container { width: 100% !important; max-width: none !important; margin: 0 !important; }
html body .ruta40-footer {
  border-radius: 0 !important; margin: 0 !important;
  padding-left: max(30px, calc((100% - 1180px) / 2)) !important; padding-right: max(30px, calc((100% - 1180px) / 2)) !important;
}
@media (max-width: 700px) { html body .ruta40-footer { padding-left: 18px !important; padding-right: 18px !important; } }

/* ===== Páginas legales (parche_legal.py): cabecera azul noche con pestañas, índice fijo y apartados en tarjetas numeradas ===== */
.r40-legal { font-family: 'Lexend', system-ui, sans-serif; color: #33475b; }
.r40-legal__hero {
  position: relative; overflow: hidden; padding: 64px 20px 92px; color: #e8eef7;
  background: radial-gradient(70% 120% at 85% 0%, rgba(209, 162, 62, .22), transparent 60%), linear-gradient(150deg, #1d4278, #15305a 50%, #0c1f3a);
}
.r40-legal__hero::after {   /* carretera discontinua al pie de la cabecera */
  content: ""; position: absolute; left: 0; right: 0; bottom: 34px; height: 2px; opacity: .35;
  background: repeating-linear-gradient(90deg, #f0d28c 0 34px, transparent 34px 64px);
}
.r40-legal__hero-in { max-width: 1180px; margin: 0 auto; }
.r40-legal__eyebrow { display: inline-block; margin-bottom: 12px; color: #f0d28c; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.r40-legal__hero h1 { margin: 0 0 14px; color: #fff; font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; }
.r40-legal__intro { max-width: 72ch; margin: 0 0 28px; color: #b9c8dc; font-size: 16px; line-height: 1.7; }
.r40-legal__tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.r40-legal__tabs a { padding: 9px 18px; border-radius: 999px; color: #e8eef7 !important; font-size: 14px; font-weight: 600; text-decoration: none !important; transition: background .2s, color .2s; }
.r40-legal__tabs a:hover { background: rgba(255, 255, 255, .1); }
.r40-legal__tabs a[aria-current="page"] { background: linear-gradient(120deg, #e9cf8f, var(--r40-oro) 45%, var(--r40-oro-osc)); color: var(--r40-noche) !important; }
.r40-legal__tabs a:focus-visible { outline: 2px solid #f0d28c; outline-offset: 2px; }

.r40-legal__cuerpo { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; max-width: 1180px; margin: -54px auto 0; padding: 0 20px 80px; position: relative; }
.r40-legal__indice { position: sticky; top: 20px; align-self: start; padding: 22px 20px; border-radius: 20px; background: #fff; box-shadow: 0 24px 48px -36px rgba(12, 31, 58, .6); border: 1px solid #e1eaf4; }
.r40-legal__indice > p { margin: 0 0 12px; color: var(--r40-oro-osc); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.r40-legal__indice ol { margin: 0; padding: 0; list-style: none; counter-reset: idx; }
.r40-legal__indice li { counter-increment: idx; }
.r40-legal__indice a {
  display: flex; gap: 10px; padding: 7px 8px; border-radius: 10px; color: #4b6584 !important; font-size: 13.5px; line-height: 1.35; text-decoration: none !important;
  transition: background .2s, color .2s;
}
.r40-legal__indice a::before { content: counter(idx); flex: none; min-width: 18px; color: #9fb1c6; font-weight: 700; }
.r40-legal__indice a:hover, .r40-legal__indice a.is-activo { background: #eef4fb; color: var(--r40-noche) !important; }
.r40-legal__indice a.is-activo::before { color: var(--r40-oro-osc); }

.r40-legal__docs { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.r40-legal__bloque { scroll-margin-top: 20px; padding: 32px 36px; border-radius: 22px; background: #fff; border: 1px solid #e1eaf4; box-shadow: 0 24px 48px -40px rgba(12, 31, 58, .55); }
.r40-legal__bloque h2 { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; color: var(--r40-noche); font-size: clamp(20px, 2.2vw, 25px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.r40-legal__bloque h2 span {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, #e9cf8f, var(--r40-oro) 55%, var(--r40-oro-osc)); color: var(--r40-noche); font-size: 15px; font-weight: 800;
}
.r40-legal__bloque h3 { margin: 26px 0 10px; color: var(--r40-noche); font-size: 17px; font-weight: 700; }
.r40-legal__bloque h2 + h3 { margin-top: 4px; }
.r40-legal__bloque p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.75; }
.r40-legal__bloque p:last-child { margin-bottom: 0; }
.r40-legal__bloque a { color: var(--r40-cielo); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(43, 108, 184, .35); overflow-wrap: anywhere; }
.r40-legal__bloque a:hover { text-decoration-color: currentColor; }
.r40-legal__bloque ul { margin: 6px 0 14px; padding: 0; list-style: none; }
.r40-legal__bloque li { position: relative; margin: 0 0 9px; padding-left: 24px; font-size: 15.5px; line-height: 1.65; }
.r40-legal__bloque li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--r40-oro); box-shadow: 0 0 0 3px rgba(209, 162, 62, .18); }
.r40-legal__bloque strong { color: var(--r40-noche); }

.r40-legal__datos { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; margin: 4px 0 14px; }
.r40-legal__datos div { padding: 14px 16px; border-radius: 14px; background: #f5f8fc; border: 1px solid #e6edf6; }
.r40-legal__datos dt { margin-bottom: 4px; color: #5b6f8a; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.r40-legal__datos dd { margin: 0; color: var(--r40-noche); font-size: 15px; font-weight: 600; overflow-wrap: break-word; }
.r40-legal__datos dd a { font-weight: 600; }

.r40-legal__tabla { margin: 14px 0 16px; overflow-x: auto; border-radius: 16px; border: 1px solid #e1eaf4; }
.r40-legal__tabla table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.r40-legal__tabla th { padding: 12px 14px; background: linear-gradient(135deg, #15305a, #1f4f8f); color: #f0d28c; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-align: left; text-transform: uppercase; }
.r40-legal__tabla td { padding: 12px 14px; border-top: 1px solid #e6edf6; vertical-align: top; line-height: 1.5; }
.r40-legal__tabla tbody tr:nth-child(even) td { background: #f8fafd; }
.r40-legal__tabla code { padding: 2px 7px; border-radius: 6px; background: #eef4fb; color: var(--r40-noche); font: 600 13px/1.4 ui-monospace, Consolas, monospace; white-space: nowrap; }

.r40-legal__btn-cookies, .r40-legal__btn {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(120deg, #e9cf8f, var(--r40-oro) 45%, var(--r40-oro-osc)); color: var(--r40-noche) !important;
  font: 700 14.5px/1 'Lexend', system-ui, sans-serif; text-decoration: none !important; box-shadow: 0 14px 28px -16px rgba(169, 123, 34, .9);
  transition: transform .2s, filter .2s;
}
.r40-legal__btn-cookies:hover, .r40-legal__btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.r40-legal__btn-cookies:focus-visible, .r40-legal__btn:focus-visible { outline: 3px solid var(--r40-noche); outline-offset: 3px; }

.r40-legal__contacto {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 26px 30px; border-radius: 22px; color: #e8eef7;
  background: radial-gradient(80% 140% at 100% 0%, rgba(209, 162, 62, .2), transparent 60%), linear-gradient(150deg, #1d4278, #15305a 55%, #0c1f3a);
}
.r40-legal__contacto strong { display: block; margin-bottom: 4px; color: #fff; font-size: 17px; }
.r40-legal__contacto p { margin: 0; color: #b9c8dc; font-size: 14.5px; }

@media (max-width: 960px) {
  .r40-legal__cuerpo { grid-template-columns: 1fr; gap: 18px; }
  .r40-legal__indice { position: static; }
  .r40-legal__indice ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .r40-legal__indice a { padding: 6px 12px; border-radius: 999px; background: #f5f8fc; font-size: 13px; }
}
@media (max-width: 600px) {
  .r40-legal__hero { padding: 40px 16px 78px; }
  .r40-legal__hero::after { bottom: 26px; }
  .r40-legal__tabs { display: flex; width: 100%; box-sizing: border-box; }
  .r40-legal__tabs a { flex: 1; padding: 9px 8px; text-align: center; font-size: 13px; }
  .r40-legal__cuerpo { padding: 0 12px 60px; margin-top: -46px; }
  .r40-legal__bloque { padding: 24px 18px; border-radius: 18px; }
  .r40-legal__bloque h2 { gap: 10px; }
  .r40-legal__bloque h2 span { width: 30px; height: 30px; border-radius: 10px; font-size: 13px; }
  .r40-legal__bloque p, .r40-legal__bloque li { font-size: 15px; }
  .r40-legal__contacto { padding: 22px 20px; }
  .r40-legal__btn { width: 100%; justify-content: center; }
}

/* Móvil: nada debe provocar scroll horizontal; las tablas anchas de los artículos se desplazan dentro de su caja. */
@media (max-width: 640px) {
  body { overflow-x: clip; }
  .entry-content table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Zonas: filtro de localidades por provincia */
.r40-zfiltro { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.r40-zfiltro button, .r40-zfiltro button:focus, .r40-zfiltro button:active {
  padding: 9px 18px; border-radius: 999px; border: 1px solid #c9d8ea; background: #fff; color: var(--r40-noche); font: 600 14px/1 inherit; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.r40-zfiltro button:hover { border-color: var(--r40-oro); background: #fff; color: var(--r40-noche); box-shadow: 0 6px 16px -10px rgba(21, 48, 90, .5); }
.r40-zfiltro button[aria-pressed="true"], .r40-zfiltro button[aria-pressed="true"]:hover, .r40-zfiltro button[aria-pressed="true"]:focus { background: var(--r40-noche); border-color: var(--r40-noche); color: #fff; }
.r40-zfiltro button:focus-visible { outline: 2px solid var(--r40-oro); outline-offset: 2px; }
.r40-lineas__provincias.is-filtrado { grid-template-columns: 1fr; }
.r40-lineas__provincias.is-filtrado .r40-linea--ruta { margin-top: 0; }
.r40-lineas__provincias [hidden], .r40-destinos[hidden], .r40-destino[hidden] { display: none !important; }

/* Migas de pan (ciudad, modelo y artículo) */
.r40-migas { max-width: 1200px; margin: 0 auto; padding: 14px max(20px, env(safe-area-inset-left, 0px)) 0; font-size: 13.5px; line-height: 1.4; }
.r40-migas ol { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; min-width: 0; }
.r40-migas li { display: flex; align-items: center; min-width: 0; color: #5b6f8a; white-space: nowrap; }
.r40-migas li + li::before { content: "›"; margin: 0 9px; color: #9db0c8; }
.r40-migas a { color: var(--r40-noche); text-decoration: none; border-bottom: 1px solid transparent; }
.r40-migas a:hover, .r40-migas a:focus-visible { border-bottom-color: var(--r40-oro); }
.r40-migas li[aria-current] { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--r40-noche); }
.r40-migas li[aria-current] span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r40-migas--art { max-width: 710px; padding: 24px 16px 0; margin: 0 auto 12px; }

/* ===== Accesibilidad ===== */
.r40-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.r40-skip { position: absolute; left: -9999px; top: 0; z-index: 100000; padding: 12px 20px; background: #15305a; color: #fff; font-weight: 700; border-radius: 0 0 12px 0; text-decoration: none; }
.r40-skip:focus { left: 0; outline: 3px solid #f0d28c; outline-offset: 0; }
#main:focus { outline: none; }
/* foco visible en todo (azul sobre claro, dorado sobre fondos oscuros) */
:focus-visible { outline: 3px solid #0b57d0; outline-offset: 2px; }
.ruta40-header :focus-visible, .ruta40-footer :focus-visible, .ruta40-mobile-menu :focus-visible, .r40-visor :focus-visible, .r40-res__talon :focus-visible, .r40-barra :focus-visible { outline-color: #f0d28c; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #0b57d0; outline-offset: 1px; }
/* submenú de modelos accesible con teclado */
.ruta40-header__dropdown:focus-within .ruta40-header__submenu { display: flex !important; }
/* contraste AA */
.r40-routes__btn, .r40-routes__btn:link, .r40-routes__btn:visited, .r40-routes__btn:active { color: #123f68 !important; }
.r40-routes__badge { color: #2b6290 !important; }
.r40-int, .r40-int:visited { color: #1e6a9f !important; }
.r40-legal__indice > p, .r40-legal h1, .r40-fh h1, .equipamiento-sub, .equipamiento-sub:nth-child(n), .r40-cal__tit, .r40b-cat, .r40-res__eyebrow, .r40-res__oro, .r40-guia__eyebrow, .r40-gal__badge { color: #8a6218 !important; }
.r40-fh__precio > small, .destino-card .provincia { color: #55688a !important; }
.r40b-date { color: #5d6f8a !important; }
.r40-fh__wa, .r40-fh__wa:visited, .r40-res__btn--wa, .r40-gracias__btn--wa { background: #0f7a40 !important; }
.temp-media { background: #5d7a1f !important; }
.blog-ruta40 a, .paso-body a, .entry-content p > a:not([class]), .entry-content li > a:not([class]), .entry-content td > a:not([class]), .entry-content small > a:not([class]) { color: #1e6a9f !important; text-decoration: underline; }
p > .r40-routes__btn { text-decoration: underline !important; }
.blog-ruta40 p a, .paso-body p a { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.r40-int, .r40-routes__btn { text-decoration: underline; text-underline-offset: 3px; }
.equipamiento-moderno .equipamiento-sub { color: #8a6218 !important; }
.r40-routes__cta .r40-routes__btn { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
body .equipamiento-moderno .equipamiento-sub { color: #8a6218 !important; }
.r40-tarifas__eyebrow, .r40-punto__tipo, .r40-comp__tipo { color: #8a6218 !important; }
.r40-precios__precio small, .r40-tarifas small { color: #55688a !important; }
.r40-parada__tag { color: #8a6218 !important; }
.r40-linea__nota { color: #55688a !important; }
