/* ==========================================================================
   parador.css — Fase 4: el parador de camioneros (páginas interiores).
   .parador-vivo (lo pone js/parador.js): escena completa, contenido sobre la
   escena y tablero que se reduce a una barra al estacionar.
   Sin esa clase el contenido se lee directo bajo la cabina.
   ========================================================================== */

/* ==========================================================================
   Escena
   ========================================================================== */
.parador-vivo .parador {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
}
.parador-vivo .cabina--parador {
  position: absolute;
  inset: 0;
  min-height: 0;
  height: 100%;
}
/* En celular el parabrisas ocupa toda la pantalla y el tablero se superpone abajo */
.parador-vivo .cabina--parador .cabina__parabrisas {
  position: absolute;
  inset: 0;
  height: auto;
  min-height: 0;
}
.parador-vivo .cabina--parador .escenario {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
@media not all and (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .parador-vivo .cabina--parador .escenario {
    position: absolute;
    left: 0; right: 0; bottom: 0;
  }
}
/* Al estacionar, el tablero baja y queda la barra */
.parador-vivo .parador.estacionado .escenario { transform: translateY(105%); }
.parador-vivo .parador.estacionado.mirando-tablero .escenario { transform: none; }

/* Capa del contenido, sincronizada con la cámara */
.parador-vivo .parador-capa {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.parador-vivo .parador-capa > * {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.parador-vivo .parador.estacionado .parador-capa > * { pointer-events: auto; }
/* Mirando el lugar completo: la pizarra se ve de lejos y un clic vuelve a ella */
.parador-vivo .parador.mirando-parador .parador-capa > * { cursor: zoom-in; }
.parador-vivo .parador.mirando-parador .parador-capa > * * { pointer-events: none; }

/* "Ver el parador": control discreto bajo la banda parasol */
.ver-parador { display: none; }
.parador-vivo .parador.estacionado:not(.mirando-tablero) .ver-parador { display: inline-flex; }
.ver-parador {
  position: absolute;
  top: 66px;
  right: 16px;
  z-index: 7;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  background: rgba(6, 8, 12, 0.62);
  border: 1px solid rgba(255, 233, 204, 0.22);
  border-radius: 6px;
  color: #ffe9cc;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: border-color 0.2s, background 0.2s;
}
.ver-parador svg { width: 18px; height: 18px; flex-shrink: 0; }
.ver-parador:hover { background: rgba(6, 8, 12, 0.85); border-color: rgba(255, 233, 204, 0.55); }
.ver-parador:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media not all and (min-width: 900px) and (min-aspect-ratio: 5/4) {
  /* En celular solo el ícono, en la esquina de la franja del local */
  .ver-parador { top: 60px; right: 8px; min-height: 40px; width: 40px; padding: 0; justify-content: center; }
  .ver-parador__texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.parador-vivo .parador.mirando-tablero .parador-capa { opacity: 0; transition: opacity 0.3s; }
.parador-vivo .parador.mirando-tablero .parador-capa > * { pointer-events: none; }

/* La banda parasol queda por encima del contenido */
.parador-vivo .cabina--parador .parasol { z-index: 6; }
.parador-vivo .parador .cabina { z-index: auto; }

/* ==========================================================================
   Barra del parador
   ========================================================================== */
.barra-parador {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(10, 13, 18, 0.94), #05070a);
  border-top: 1px solid rgba(255, 226, 190, 0.16);
}
.parador-vivo .barra-parador {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 7;
  transform: translateY(105%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.parador-vivo .parador.estacionado .barra-parador { transform: none; }

.barra-parador__btn,
.barra-parador__salida {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 72px;
  min-height: 52px;
  padding: 6px 10px;
  background: linear-gradient(to bottom, #12171e, #090c10);
  border: 1px solid rgba(255, 233, 204, 0.16);
  border-radius: 6px;
  color: #ffe9cc;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}
.barra-parador__btn svg,
.barra-parador__salida svg { width: 20px; height: 20px; }
.barra-parador__btn:hover { border-color: rgba(255, 233, 204, 0.5); }
.barra-parador__btn[aria-pressed="true"] { border-color: #ffe9cc; box-shadow: 0 0 12px rgba(255, 226, 190, 0.2); }
.barra-parador__btn--rojo {
  background: linear-gradient(to bottom, #e02a37, #a5141f);
  border-color: #ff5a64;
  color: #fff;
}
/* "Retomar la ruta": letrero verde de salida */
.barra-parador__salida {
  flex-direction: row;
  gap: 10px;
  min-width: 0;
  padding: 8px 16px;
  background: #0b6b3e;
  border: 2px solid #fff;
  outline: 2px solid #0b6b3e;
  border-radius: 6px;
  color: #fff;
  font-size: 0.9375rem;
}
.barra-parador__salida svg { transform: scaleX(-1); }
/* Testigo de la App Servitruck en la barra: ámbar encendido (js/testigos.js) */
.barra-parador__testigo.testigo { width: auto; height: auto; margin: 0; padding: 6px 10px; border-radius: 6px; color: rgb(var(--c)); }
.barra-parador__testigo.testigo svg { width: 22px; height: 22px; }
.barra-parador__testigo > span { color: #ffe9cc; filter: none; }
.barra-parador__testigo::after { bottom: calc(100% + 8px); }
.barra-parador__salida:hover { background: #0e7d49; }

@media (max-width: 899px) {
  .barra-parador { gap: 4px; padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); }
  .barra-parador__btn { min-width: 0; flex: 1; padding: 6px 2px; font-size: 0.6875rem; }
  .barra-parador__salida { flex: 1.6; padding: 6px 8px; font-size: 0.75rem; gap: 6px; text-align: left; }
}

/* En el parador, el WhatsApp flotante cede su lugar a la barra */
.pagina-parador.en-cabina .wsp { opacity: 0; visibility: hidden; }

/* ==========================================================================
   Pizarra "Menú del día"
   ========================================================================== */
.pizarra { color: #eef0ea; }
/* Lámpara cálida sobre la pizarra: pantalla de metal con dos brazos */
.parador-vivo .pizarra::before {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  top: -24px;
  height: 14px;
  background: linear-gradient(to bottom, #2b2f36, #121418 70%);
  border-radius: 7px 7px 3px 3px;
  box-shadow:
    0 9px 14px -4px rgba(255, 214, 160, 0.9),
    0 2px 0 rgba(255, 236, 205, 0.95) inset,
    0 0 0 1px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.parador-vivo .pizarra::after {      /* brazos que la sujetan al marco */
  content: "";
  position: absolute;
  left: calc(24% + 18px);
  right: calc(24% + 18px);
  top: -12px;
  height: 14px;
  border-left: 3px solid #15181d;
  border-right: 3px solid #15181d;
  z-index: 1;
}
.pizarra__marco {
  position: relative;
  height: 100%;
  padding: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 2px, transparent 2px 9px),
    linear-gradient(135deg, #6b4428, #4a2d19 45%, #5c3a22);
  border-radius: 6px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(0, 0, 0, 0.35);
}
/* Cono de luz de la lámpara sobre la tiza (suave, no tapa el texto) */
.parador-vivo .pizarra__marco::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 0%, rgba(255, 214, 160, 0.16), rgba(255, 214, 160, 0.05) 55%, rgba(255, 214, 160, 0) 80%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.16));
  border-radius: 2px;
}
.parador-vivo .pizarra__marco {
  box-shadow: 0 -10px 30px -12px rgba(255, 210, 150, 0.45), 0 30px 70px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(0, 0, 0, 0.35);
}
.pizarra__contenido {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 44px clamp(24px, 5vw, 64px) 52px 88px;
  background:
    radial-gradient(60% 40% at 20% 15%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 70%),
    radial-gradient(50% 35% at 80% 70%, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 70%),
    radial-gradient(30% 20% at 60% 30%, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 70%),
    #1b2520;
  border-radius: 2px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 240, 234, 0.35) transparent;
}
.pizarra__contenido:focus-visible { outline: 2px solid #fff; outline-offset: -6px; box-shadow: inset 0 0 0 6px var(--rojo); }

/* La línea de ruta con su hito, dentro de la pizarra */
.ruta.ruta--pizarra {
  left: 54px;
  top: 40px;
  bottom: 40px;
  z-index: 3;
}

.pizarra__local {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(238, 240, 234, 0.6);
}
.pizarra__menu {
  margin-top: 14px;
  font-family: var(--f-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: #f6d7a8;
  transform: rotate(-2deg);
  transform-origin: left;
}
.pizarra__titulo {
  margin-top: 6px;
  font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem);
  font-weight: 800;
  line-height: 0.95;
  max-width: 16ch;
}
.pizarra__intro {
  margin-top: 16px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(238, 240, 234, 0.85);
  max-width: 58ch;
}

.plato {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 2px dashed rgba(238, 240, 234, 0.18);
  scroll-margin-top: 24px;
}
.plato__linea { display: flex; align-items: baseline; gap: 12px; }
.plato__nombre {
  font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
}
.plato__puntos {
  flex: 1;
  min-width: 24px;
  border-bottom: 3px dotted rgba(238, 240, 234, 0.35);
  transform: translateY(-6px);
}
.plato__precio {
  flex-shrink: 0;
  padding: 4px 0;
  border-bottom: 2px solid var(--rojo);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.plato__precio:hover { color: #ffd5d8; }
.plato p {
  margin-top: 12px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(238, 240, 234, 0.84);
  max-width: 62ch;
}
.plato__etiquetas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.plato__etiquetas li {
  padding: 4px 11px 3px;
  border: 1.5px solid rgba(238, 240, 234, 0.4);
  border-radius: 20px 14px 18px 12px;
  font-size: 1rem;
  color: rgba(238, 240, 234, 0.9);
}

/* Cobertura nacional con el mapa de Chile */
.cobertura {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  grid-template-rows: auto 1fr;
  gap: 8px 40px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 2px dashed rgba(238, 240, 234, 0.18);
}
.cobertura__titulo { font-size: 2.25rem; font-weight: 800; }
.cobertura > p { grid-column: 1; color: rgba(238, 240, 234, 0.84); font-size: 1.0625rem; line-height: 1.6; }
.mapa-chile { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.mapa-chile__svg { width: 100%; height: auto; max-height: 560px; overflow: visible; }
.mapa-chile__pais {
  fill: rgba(238, 240, 234, 0.04);
  stroke: rgba(238, 240, 234, 0.75);
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.mapa-chile__ruta {
  fill: none;
  stroke: var(--rojo);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 4px rgba(210, 31, 44, 0.8));
}
.mapa-chile.dibujando .mapa-chile__ruta { animation: ruta-chile 3.2s cubic-bezier(0.4, 0, 0.2, 1) both; }
@keyframes ruta-chile { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.mapa-chile__ciudad circle { fill: #eef0ea; }
.mapa-chile__ciudad text { fill: rgba(238, 240, 234, 0.85); font-family: var(--f-texto); font-size: 16px; font-weight: 600; }

.pizarra__pie {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 2px dashed rgba(238, 240, 234, 0.18);
}
/* WhatsApp: ícono redondo del mismo alto que "Cotiza tu traslado" */
.pizarra__wsp {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  align-self: flex-end;      /* el botón rojo lleva margen arriba para la barrera de peaje */
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s, background 0.2s;
}
.pizarra__wsp svg { width: 32px; height: 32px; }
.pizarra__wsp:hover { background: #1ebe5b; transform: translateY(-2px); }
.pizarra__wsp:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* Texto al pasar el mouse (o con el foco del teclado) */
.pizarra__wsp::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  padding: 7px 12px;
  background: #0d1b2e;
  border-radius: 4px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 0.2s, transform 0.2s;
}
.pizarra__wsp:hover::after,
.pizarra__wsp:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 899px) {
  .pizarra__marco { padding: 8px; }
  .parador-vivo .pizarra__marco::after { inset: 8px; }
  .pizarra__contenido { padding: 28px 18px 36px 52px; }
  .ruta.ruta--pizarra { left: 30px; top: 30px; bottom: 30px; }
  .pizarra__menu { font-size: 1.375rem; }
  .plato { margin-top: 28px; padding-top: 20px; }
  .plato__linea { flex-wrap: wrap; }
  .plato__puntos { display: none; }
  .plato__precio { order: 3; }
  .plato__nombre { width: 100%; }
  .cobertura { grid-template-columns: 1fr; }
  .mapa-chile { grid-column: 1; grid-row: auto; max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html:not(.movimiento-forzado) .mapa-chile.dibujando .mapa-chile__ruta { animation: none; }
}

/* ==========================================================================
   Respaldo: sin parador vivo, el contenido se lee directo
   ========================================================================== */
html:not(.parador-vivo) .parador-capa {
  padding: 32px 12px 48px;
  background: var(--asfalto);
}
html:not(.parador-vivo) .parador-capa > * { max-width: 1000px; margin-inline: auto; }
html:not(.parador-vivo) .pizarra__contenido { height: auto; overflow: visible; }
html:not(.parador-vivo) .ruta--pizarra { display: none; }
html:not(.parador-vivo) .libreta__contenido { height: auto; overflow: visible; }
html:not(.parador-vivo) .libreta__lapiz { display: none; }

/* ==========================================================================
   Libreta de comandas (contacto.html): el formulario de cotización
   ========================================================================== */
.libreta { color: #1f2a44; }
/* Lámpara cálida sobre el mesón, como la de la pizarra */
.parador-vivo .libreta::before {
  content: "";
  position: absolute;
  left: 26%;
  right: 26%;
  top: -34px;
  height: 14px;
  background: linear-gradient(to bottom, #2b2f36, #121418 70%);
  border-radius: 7px 7px 3px 3px;
  box-shadow:
    0 9px 14px -4px rgba(255, 214, 160, 0.9),
    0 2px 0 rgba(255, 236, 205, 0.95) inset,
    0 0 0 1px rgba(0, 0, 0, 0.6);
  z-index: 2;
}
.parador-vivo .libreta::after {
  content: "";
  position: absolute;
  left: calc(26% + 18px);
  right: calc(26% + 18px);
  top: -22px;
  height: 12px;
  border-left: 3px solid #15181d;
  border-right: 3px solid #15181d;
  z-index: 1;
}
.libreta__marco {
  position: relative;
  height: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3a2c22, #2a1f17 50%, #35281e);   /* tapa de cartón */
  border-radius: 8px;
  box-shadow: 0 -10px 30px -12px rgba(255, 210, 150, 0.45), 0 30px 70px rgba(0, 0, 0, 0.6);
}
/* Espiral de alambre arriba */
.libreta__espiral {
  position: absolute;
  left: 5%;
  right: 5%;
  top: -12px;
  height: 26px;
  z-index: 5;
  background:
    radial-gradient(ellipse 7px 12px at 50% 50%, transparent 0 4px, #c9ced6 4.5px 6.5px, rgba(0, 0, 0, 0.5) 7px, transparent 7.5px) 0 0 / 24px 26px repeat-x;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}
/* Lápiz apoyado al lado de la libreta */
.libreta__lapiz {
  position: absolute;
  right: -34px;
  top: 18%;
  width: 14px;
  height: 46%;
  z-index: 1;
  background: linear-gradient(90deg, #d99a1c, #f6c443 45%, #c8870f);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 6px 10px 14px rgba(0, 0, 0, 0.45);
  transform: rotate(4deg);
  pointer-events: none;
}
.libreta__lapiz::before {          /* goma y virola */
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -26px;
  height: 26px;
  background: linear-gradient(to bottom, #e88a8a 0 55%, #b9bcc2 55% 100%);
  border-radius: 4px 4px 0 0;
}
.libreta__lapiz::after {           /* punta */
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -26px;
  height: 26px;
  background: linear-gradient(to bottom, #e9cfa3 0 70%, #2b2b2b 70%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.libreta__contenido {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 44px clamp(24px, 5vw, 64px) 52px 96px;
  background:
    linear-gradient(to right, transparent 74px, rgba(210, 31, 44, 0.35) 74px 76px, transparent 76px),
    repeating-linear-gradient(to bottom, transparent 0 35px, rgba(70, 110, 180, 0.2) 35px 36px),
    #fbf7ec;
  background-attachment: local;
  border-radius: 3px;
  box-shadow: inset 0 0 30px rgba(120, 90, 50, 0.18);
  scrollbar-width: thin;
  scrollbar-color: rgba(31, 42, 68, 0.35) transparent;
}
.libreta__contenido:focus-visible { outline: 3px solid #c21d2a; outline-offset: -6px; }
/* Luz de la lámpara sobre el papel */
.parador-vivo .libreta__marco::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(255, 196, 120, 0.12), rgba(255, 196, 120, 0) 75%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0) 65%, rgba(60, 40, 20, 0.12));
  border-radius: 3px;
}

.libreta__local { font-size: 1rem; font-weight: 600; color: rgba(31, 42, 68, 0.62); }
.libreta__titulo {
  margin-top: 8px;
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 0.98;
  color: #1b2a4a;
}
.libreta__subtitulo {
  margin-top: 4px;
  font-family: var(--f-display);
  font-size: 1.625rem;
  font-weight: 700;
  color: #b3202b;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
.libreta__intro { max-width: 60ch; margin-top: 12px; font-size: 1.0625rem; line-height: 1.6; }
.libreta__req { color: #b3202b; font-weight: 700; }

/* Campos: renglones de la comanda, grandes y cómodos */
.comanda__grupo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 28px;
  min-width: 0;
  margin: 32px 0 0;
  padding: 0;
  border: 0;
}
.comanda__leyenda {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  padding: 0;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #b3202b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.campo { min-width: 0; }
.campo--ancho { grid-column: 1 / -1; }
.campo__etiqueta {
  display: block;
  margin-bottom: 4px;
  font-family: var(--f-display);
  font-size: 1.3125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1d3170;            /* tinta azul, como escrito a mano */
}
.campo__control {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 10px 12px;
  font: inherit;
  font-size: 1.125rem;
  color: #14203a;
  background: rgba(255, 255, 255, 0.6);
  border: 0;
  border-bottom: 2px solid rgba(29, 49, 112, 0.55);
  border-radius: 4px 4px 0 0;
  transition: background 0.2s, border-color 0.2s;
}
.campo__control::placeholder { color: rgba(31, 42, 68, 0.45); }
textarea.campo__control { min-height: 128px; resize: vertical; line-height: 1.5; }
select.campo__control { cursor: pointer; }
.campo__control:hover { background: rgba(255, 255, 255, 0.85); }
.campo__control:focus { outline: 3px solid rgba(194, 29, 42, 0.5); outline-offset: 2px; background: #fffbe6; border-bottom-color: #1d3170; }
.campo__control[aria-invalid="true"] { border-bottom-color: #c21d2a; background: rgba(194, 29, 42, 0.07); }
.campo__error { margin-top: 6px; font-size: 1rem; font-weight: 600; line-height: 1.35; color: #b3202b; }
.campo__error:empty { display: none; }

.comanda__resumen {
  margin-top: 24px;
  padding: 12px 14px;
  border-left: 4px solid #c21d2a;
  background: rgba(194, 29, 42, 0.08);
  font-size: 1rem;
  font-weight: 600;
  color: #8e1720;
}
.comanda__resumen:empty { display: none; }
/* Plan B cuando el envío falla: correo y WhatsApp con los datos ya escritos */
.comanda__plan-b { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.comanda__plan-b-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid #1d3170;
  border-radius: 4px;
  background: #fff;
  color: #1d3170;
  font-weight: 700;
  text-decoration: none;
}
.comanda__plan-b-btn:hover { background: #eef1f8; }
.comanda__plan-b-btn--wsp { border-color: #1a8f4e; background: #1a8f4e; color: #fff; }
.comanda__plan-b-btn--wsp:hover { background: #157540; }
.comanda__plan-b-btn:focus-visible { outline: 3px solid rgba(194, 29, 42, 0.5); outline-offset: 2px; }
.comanda__envio {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 2px dashed rgba(31, 42, 68, 0.25);
}
button.pizarra__wsp { padding: 0; border: 0; cursor: pointer; font: inherit; }
.comanda__nota { max-width: 60ch; margin-top: 14px; font-size: 1rem; line-height: 1.5; color: rgba(31, 42, 68, 0.78); }
.comanda__gracias {
  margin-top: 22px;
  padding: 16px 18px;
  border: 2px solid #1d7a45;
  border-radius: 4px;
  background: rgba(29, 122, 69, 0.08);
}
.comanda__gracias:focus { outline: none; }
.comanda__gracias-titulo { font-size: 1.1875rem; font-weight: 700; color: #145a33; }
.comanda__gracias-detalle { margin-top: 6px; font-size: 1rem; line-height: 1.5; }
.comanda__otro {
  margin-top: 10px;
  padding: 6px 0;
  background: none;
  border: 0;
  color: #1d3170;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.libreta__pie {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid rgba(31, 42, 68, 0.2);
  font-size: 1rem;
  color: rgba(31, 42, 68, 0.75);
}
.libreta__datos { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.libreta__datos a { color: #1d3170; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.libreta__privacidad { margin-top: 8px; }

/* Sello "PEDIDO RECIBIDO" */
.sello {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 6;
  padding: 14px 30px 12px;
  border: 6px double #c21d2a;
  border-radius: 12px;
  color: #c21d2a;
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 0.92;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  mix-blend-mode: multiply;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) rotate(-14deg);
  pointer-events: none;
}
.sello__fecha { display: block; margin-top: 8px; font-family: var(--f-texto); font-size: 1rem; font-weight: 700; letter-spacing: 0.08em; }
.sello.estampado { visibility: visible; opacity: 0.85; animation: sello-golpe 0.5s cubic-bezier(0.25, 0.9, 0.3, 1.25) both; }
@keyframes sello-golpe {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-14deg) scale(2.3); }
  60% { opacity: 0.95; transform: translate(-50%, -50%) rotate(-14deg) scale(0.94); }
  100% { opacity: 0.85; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
}
.libreta.golpe .libreta__marco { animation: libreta-golpe 0.3s ease-out 0.28s; }
@keyframes libreta-golpe {
  0%, 100% { transform: none; }
  35% { transform: translateY(4px) scale(0.995); }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.movimiento-forzado) .sello.estampado { animation: none; }
  html:not(.movimiento-forzado) .libreta.golpe .libreta__marco { animation: none; }
}

@media (max-width: 899px) {
  .libreta__marco { padding: 8px; }
  .parador-vivo .libreta__marco::after { inset: 8px; }
  .libreta__contenido {
    padding: 30px 16px 36px 50px;
    background:
      linear-gradient(to right, transparent 40px, rgba(210, 31, 44, 0.35) 40px 42px, transparent 42px),
      repeating-linear-gradient(to bottom, transparent 0 35px, rgba(70, 110, 180, 0.2) 35px 36px),
      #fbf7ec;
    background-attachment: local;
  }
  .libreta__lapiz { display: none; }
  .comanda__grupo { grid-template-columns: 1fr; gap: 18px; }
}

/* ==========================================================================
   Diario mural (transportistas.html): aviso clavado en el corcho y ficha
   ========================================================================== */
.mural { color: #2a2218; }
/* Lámpara cálida sobre el tablero */
.parador-vivo .mural::before {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  top: -40px;
  height: 14px;
  background: linear-gradient(to bottom, #2b2f36, #121418 70%);
  border-radius: 7px 7px 3px 3px;
  box-shadow:
    0 9px 14px -4px rgba(255, 214, 160, 0.9),
    0 2px 0 rgba(255, 236, 205, 0.95) inset,
    0 0 0 1px rgba(0, 0, 0, 0.6);
  z-index: 8;
}
.parador-vivo .mural::after {
  content: "";
  position: absolute;
  left: calc(30% + 18px);
  right: calc(30% + 18px);
  top: -28px;
  height: 18px;
  border-left: 3px solid #15181d;
  border-right: 3px solid #15181d;
  z-index: 7;
}
/* Papel crema, levemente amarillento, con la luz cálida de la lámpara */
.mural__aviso,
.ficha {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 55% at 50% 0%, rgba(255, 214, 150, 0.35), rgba(255, 214, 150, 0) 70%),
    radial-gradient(120% 90% at 50% 50%, rgba(0, 0, 0, 0), rgba(120, 80, 30, 0.12)),
    #f2e6c6;
  border-radius: 2px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15), 0 16px 30px rgba(0, 0, 0, 0.45);
}
html:not(.parador-vivo) .mural__aviso,
html:not(.parador-vivo) .ficha { position: relative; }
.mural__contenido,
.ficha__contenido {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 40px clamp(24px, 4.5vw, 60px) 48px 88px;
  scrollbar-width: thin;
  scrollbar-color: rgba(42, 34, 24, 0.35) transparent;
}
.mural__contenido:focus-visible { outline: 3px solid #c21d2a; outline-offset: -6px; }
html:not(.parador-vivo) .mural__contenido,
html:not(.parador-vivo) .ficha__contenido { height: auto; overflow: visible; }

/* Chinches del aviso */
.mural__chinche {
  position: absolute;
  z-index: 5;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a80, #c62828 55%, #7f1414);
  box-shadow: 2px 4px 5px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.mural__chinche--a { left: 50%; top: 12px; margin-left: -9px; }   /* la esquina izquierda es del hito KM */
.mural__chinche--b { right: 18px; top: 12px; background: radial-gradient(circle at 35% 30%, #8fc1ff, #1f5fae 55%, #123a6b); }
.ficha__chinche { left: 50%; top: 10px; margin-left: -9px; background: radial-gradient(circle at 35% 30%, #fff08a, #d9a514 55%, #7d5d06); }

.mural__local { font-size: 1rem; font-weight: 600; color: rgba(42, 34, 24, 0.62); }
.mural__titulo {
  margin-top: 8px;
  max-width: 18ch;
  font-family: var(--f-display);
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 0.98;
  color: #1b2a4a;
}
.mural__carta { max-width: 62ch; margin-top: 18px; font-size: 1.125rem; line-height: 1.65; }
.mural__carta p + p { margin-top: 10px; }
.mural__saludo { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; color: #b3202b; }
.mural__carta strong { color: #14203a; background: linear-gradient(transparent 62%, rgba(255, 196, 60, 0.45) 62%); }

/* Tres beneficios: notas clavadas */
.beneficios {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}
.beneficio {
  position: relative;
  padding: 26px 16px 18px;
  background: #fbf3c8;
  box-shadow: 0 8px 14px rgba(60, 40, 10, 0.22);
  font-size: 1.0625rem;
  line-height: 1.45;
  transform: rotate(-1.2deg);
}
.beneficio:nth-child(2) { background: #f9e3d6; transform: rotate(1deg); }
.beneficio:nth-child(3) { background: #e2edd9; transform: rotate(-0.6deg); }
.beneficio::before {               /* chinche de cada nota */
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff8a80, #c62828 55%, #7f1414);
  box-shadow: 1px 3px 4px rgba(0, 0, 0, 0.4);
}
.beneficio__icono { width: 34px; height: 34px; color: #b3202b; }
.beneficio p { margin-top: 8px; }
.beneficio strong { display: block; font-family: var(--f-display); font-size: 1.375rem; line-height: 1.05; color: #1b2a4a; }
.mural__accion { margin-top: 32px; padding-top: 26px; border-top: 2px dashed rgba(42, 34, 24, 0.25); }

/* La ficha se clava sobre el aviso */
.ficha { z-index: 6; transform: rotate(-0.6deg); background-color: #f5ead0; }
.ficha.clavando { animation: ficha-clavar 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.15) both; }
@keyframes ficha-clavar {
  0% { opacity: 0; transform: translateY(-46px) rotate(-5deg) scale(1.05); }
  70% { opacity: 1; transform: translateY(3px) rotate(-0.3deg) scale(0.995); }
  100% { opacity: 1; transform: rotate(-0.6deg); }
}
.mural.con-ficha .mural__aviso { visibility: hidden; }
.ficha__cabecera { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 20px; }
.ficha__titulo { font-family: var(--f-display); font-size: clamp(2rem, 3.2vw, 2.8rem); font-weight: 800; line-height: 1; color: #1b2a4a; }
.ficha__titulo:focus { outline: none; }
.ficha__volver {
  min-height: 44px;
  padding: 8px 4px;
  background: none;
  border: 0;
  color: #1d3170;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.ficha__intro { max-width: 62ch; margin-top: 10px; font-size: 1.0625rem; line-height: 1.6; }
.ficha__privacidad { margin-top: 26px; padding-top: 14px; border-top: 1px solid rgba(42, 34, 24, 0.2); font-size: 1rem; color: rgba(42, 34, 24, 0.75); }

/* Opciones (Sí/No y regiones): casillas grandes */
.opciones { margin: 0; padding: 0; border: 0; min-width: 0; }
.opciones .campo__etiqueta { padding: 0; }
.marca-opcion {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-right: 18px;
  padding: 6px 12px 6px 6px;
  border-radius: 6px;
  font-size: 1.0625rem;
  cursor: pointer;
}
.marca-opcion:hover { background: rgba(255, 255, 255, 0.5); }
.marca-opcion input { width: 22px; height: 22px; margin: 0; accent-color: #b3202b; cursor: pointer; }
.opciones[aria-invalid="true"] { padding: 6px 8px; background: rgba(194, 29, 42, 0.07); border-left: 3px solid #c21d2a; }
.marca-opcion--todo { font-weight: 700; }
.regiones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.regiones .marca-opcion { margin-right: 0; font-size: 1rem; line-height: 1.25; }
.regiones input:disabled + * , .regiones .marca-opcion:has(input:disabled) { opacity: 0.55; }

/* Camiones: una sección por camión */
.camiones { margin-top: 34px; }
.ficha-camion {
  position: relative;
  min-width: 0;
  margin: 18px 0 0;
  padding: 16px 18px 22px;
  border: 2px dashed rgba(29, 49, 112, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.28);
}
.ficha-camion__titulo { padding: 0 6px; font-family: var(--f-display); font-size: 1.375rem; font-weight: 800; color: #1b2a4a; }
.ficha-camion__quitar {
  position: absolute;
  right: 12px;
  top: 8px;
  min-height: 40px;
  padding: 6px 12px;
  background: none;
  border: 1.5px solid rgba(179, 32, 43, 0.5);
  border-radius: 4px;
  color: #b3202b;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.ficha-camion__quitar:hover { background: rgba(179, 32, 43, 0.08); }
.ficha-camion__quitar[hidden] { display: none; }
.comanda__grupo--camion { margin-top: 18px; }
.camiones__agregar {
  margin-top: 16px;
  min-height: 52px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid #1d3170;
  border-radius: 4px;
  color: #1d3170;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
}
.camiones__agregar:hover { background: #1d3170; color: #fff; }
.ficha-camion.nuevo { animation: ficha-clavar 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.15) both; }

/* Al enviar: chinche roja que se clava y sello "INSCRITO" */
.chinche-roja {
  position: absolute;
  right: 34px;
  top: 22px;
  z-index: 7;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9a90, #d32f2f 50%, #7f1414);
  box-shadow: 3px 6px 8px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.chinche-roja.clavada { visibility: visible; animation: chinche-clavar 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes chinche-clavar {
  0% { opacity: 0; transform: translate(-30px, -70px) scale(1.8); box-shadow: 18px 30px 20px rgba(0, 0, 0, 0.2); }
  75% { opacity: 1; transform: translate(0, 2px) scale(0.92); }
  100% { opacity: 1; transform: none; }
}
.sello--inscrito { top: 42%; font-size: clamp(2.8rem, 6vw, 4.6rem); }
@media (prefers-reduced-motion: reduce) {
  html:not(.movimiento-forzado) .ficha.clavando,
  html:not(.movimiento-forzado) .ficha-camion.nuevo,
  html:not(.movimiento-forzado) .chinche-roja.clavada { animation: none; opacity: 1; }
}

@media (max-width: 899px) {
  .mural__contenido,
  .ficha__contenido { padding: 30px 16px 36px 48px; }
  .beneficios { grid-template-columns: 1fr; gap: 14px; }
  .regiones { grid-template-columns: 1fr; }
  .ficha-camion { padding: 14px 12px 18px; }
  .chinche-roja { right: 18px; }
}

/* ==========================================================================
   Panel informativo del mirador (nosotros.html)
   Madera y una lámina crema, como los paneles de los miradores de ruta
   ========================================================================== */
.panel-mirador { color: #2b2418; }
.panel-mirador__marco {
  position: relative;
  height: 100%;
  padding: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.09) 0 2px, transparent 2px 11px),
    linear-gradient(135deg, #6b4428, #4a2d19 45%, #5c3a22);
  border-radius: 4px;
  box-shadow: 0 -8px 30px -14px rgba(255, 200, 150, 0.5), 0 30px 70px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(0, 0, 0, 0.35);
}
/* Sombra del techo de dos aguas (lo dibuja js/escena-mirador.js) sobre la parte alta del panel */
.panel-mirador__marco::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 90px;
  background: linear-gradient(to bottom, rgba(20, 12, 6, 0.5), rgba(20, 12, 6, 0.18) 45%, rgba(20, 12, 6, 0));
  border-radius: 4px 4px 0 0;
  pointer-events: none;
}
.panel-mirador__contenido {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 40px clamp(24px, 4.5vw, 60px) 48px 88px;
  background:
    radial-gradient(90% 60% at 85% 0%, rgba(255, 196, 140, 0.28), rgba(255, 196, 140, 0) 70%),   /* luz del amanecer */
    radial-gradient(120% 90% at 50% 50%, rgba(0, 0, 0, 0), rgba(110, 80, 40, 0.14)),
    #f1e5c4;
  border-radius: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 36, 24, 0.35) transparent;
}
.panel-mirador__contenido:focus-visible { outline: 3px solid #c21d2a; outline-offset: -6px; }
html:not(.parador-vivo) .panel-mirador__contenido { height: auto; overflow: visible; }

.panel-mirador__lugar { font-size: 1rem; font-weight: 600; color: rgba(43, 36, 24, 0.62); }
.panel-mirador__titulo {
  margin-top: 6px;
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 0.98;
  color: #1b2a4a;
}
.panel-mirador__subtitulo {
  margin-top: 4px;
  font-family: var(--f-display);
  font-size: 1.625rem;
  font-weight: 700;
  color: #b3202b;
}
.panel-mirador__seccion {
  margin-bottom: 14px;
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4a2d19;
}
.panel-mirador__cuerpo {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 24px;
}

/* Foto del fundador: marco sobrio y placa */
.fundador { margin: 0; }
.fundador__foto {
  aspect-ratio: 800 / 857;   /* proporción de la foto: se ve completa */
  border: 6px solid #3b2618;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 10px 22px rgba(60, 40, 20, 0.35);
}
.fundador__foto img { display: block; }
.fundador__placa {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding: 10px 12px;
  background: linear-gradient(to bottom, #c9a86a, #a9864b);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgba(255, 240, 200, 0.6), 0 3px 8px rgba(60, 40, 20, 0.3);
  color: #2b1d0e;
  font-size: 1.0625rem;
  line-height: 1.35;
  text-align: center;
}
.fundador__foto img { width: 100%; height: 100%; object-fit: contain; }
.fundador__placa strong { font-family: var(--f-display); font-size: 1.375rem; font-weight: 800; line-height: 1.1; }
.historia { font-size: 1.125rem; line-height: 1.65; }
.historia p + p { margin-top: 12px; }

/* Hitos del recorrido: postes como los hitos KM del sitio */
.recorrido { margin-top: 34px; padding-top: 24px; border-top: 2px dashed rgba(43, 36, 24, 0.25); }
.recorrido__lista {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));   /* 2 × 2 en escritorio */
  gap: 22px 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.recorrido__paso {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding: 12px 16px 12px 12px;
  background: rgba(255, 250, 235, 0.45);
  border: 1px solid rgba(74, 45, 25, 0.16);
  border-radius: 4px;
  font-size: 1.0625rem;
  line-height: 1.45;
}
.recorrido__paso p { flex: 1; min-width: 0; text-wrap: pretty; hyphens: none; }
.recorrido__paso strong { color: #1b2a4a; }
.poste {
  flex-shrink: 0;
  width: 62px;
  padding: 6px 0 7px;
  background: #fff;
  color: #1b2a4a;
  border: 2px solid #fff;
  outline: 1.5px solid #1b2a4a;
  outline-offset: -5px;
  text-align: center;
  font-family: var(--f-display);
  line-height: 1;
  box-shadow: 0 6px 14px rgba(60, 40, 20, 0.3);
}
.poste__km { display: block; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.poste__n { display: block; margin-top: 3px; font-size: 1.5rem; font-weight: 900; color: #c21d2a; }
.poste__n--flecha { font-family: var(--f-texto); font-size: 1.375rem; }

/* Valores: pequeñas placas al pie del panel */
.valores { margin-top: 32px; }
.valores__lista { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.valores__lista li {
  padding: 8px 14px;
  background: linear-gradient(to bottom, #5c3a22, #45291a);
  border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 220, 180, 0.25), 0 3px 6px rgba(40, 25, 10, 0.3);
  color: #f6e7c8;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 899px) {
  .panel-mirador__marco { padding: 8px; }
  .panel-mirador__contenido { padding: 28px 16px 36px 50px; }
  .panel-mirador__cuerpo { grid-template-columns: 1fr; gap: 20px; }
  .fundador { max-width: 320px; }
  .recorrido__lista { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Puerto a mediodía (clientes.html) — escena: js/escena-puerto.js,
   barrido: js/puerto.js. .puerto-quieto = movimiento reducido (fichas).
   ========================================================================== */
.parador--puerto { touch-action: pan-y; }
.puerto-titulo h1 { font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.05; color: #fff; }
.puerto-titulo p { margin-top: 6px; font-size: 1.0625rem; font-weight: 600; color: #e4eef7; }
.flota { margin: 0; padding: 0; list-style: none; }
.placa {
  box-sizing: border-box;
  padding: 0;               /* el logo se ubica con sus propios márgenes (ver .placa img) */
  background: linear-gradient(to bottom, #fbfbf8, #e9e9e4);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 3px;
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.7), 0 1px 3px rgba(0, 0, 0, 0.25);
}
.placa img { position: absolute; left: 9%; top: 10%; width: 82%; height: 80%; max-width: none; object-fit: contain; }
.cartel span {
  display: inline-block;
  padding: 6px 12px;
  background: #0d2a44;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
  color: #fff;
  font-size: 0.9375rem; font-weight: 700; line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.puerto-final h2 { font-family: var(--f-display); font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 800; color: #fff; }
.puerto-final__pie { display: flex; align-items: flex-end; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.puerto-final__otra { margin-top: 14px; padding: 6px 10px; background: none; border: 0; color: #e4eef7; font: inherit; font-size: 0.9375rem; text-decoration: underline; cursor: pointer; }
.puerto-ctl { display: none; }

/* --- Con movimiento: todo sobre la escena --- */
/* La fila cubre toda la pantalla pero no tiene nada clicable: deja pasar
   los toques (si no, tapaba "Menú" y el logo de la banda parasol). El
   deslizamiento con el dedo lo escucha .parador, así que sigue igual. */
.puerto-vivo:not(.puerto-quieto) .flota { inset: 0; filter: brightness(var(--luz, 1)); pointer-events: none !important; }
.puerto-vivo:not(.puerto-quieto) .flota__camion > * { position: absolute; left: 0; top: 0; margin: 0; transform-origin: 0 0; }
.puerto-vivo:not(.puerto-quieto) .cartel { opacity: 0; transition: opacity 0.4s; }
.puerto-vivo:not(.puerto-quieto) .cartel span { transform: translateX(-50%); }
.puerto-vivo:not(.puerto-quieto) .cartel.is-visible { opacity: 1; }
.puerto-vivo .parador-capa > .puerto-titulo {
  left: 16px; top: 70px; max-width: min(640px, calc(100% - 180px));
  padding: 14px 18px;
  background: rgba(8, 24, 42, 0.58);
  border-radius: 6px;
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity 0.6s;
}
.puerto-vivo .parador-capa > .puerto-final {
  left: 50%; top: 22%; transform: translateX(-50%);
  width: min(560px, calc(100% - 32px));
  padding: 24px 22px;
  background: rgba(8, 24, 42, 0.66);
  border-radius: 8px;
  text-align: center;
  backdrop-filter: blur(4px);
  visibility: hidden; opacity: 0; transition: opacity 0.6s, visibility 0s 0.6s;
}
.puerto-vivo .parador.estacionado:not(.en-final) .parador-capa > .puerto-titulo { opacity: 1; }
.puerto-vivo .parador.en-final .parador-capa > .puerto-final { visibility: visible; opacity: 1; transition: opacity 0.6s; }
.puerto-vivo .parador.estacionado:not(.mirando-tablero) .puerto-ctl {
  display: flex; gap: 6px;
  position: absolute; top: 66px; right: 16px; z-index: 7;
}
.puerto-ctl__btn {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: rgba(6, 8, 12, 0.62);
  border: 1px solid rgba(255, 233, 204, 0.3);
  border-radius: 6px;
  color: #ffe9cc; cursor: pointer;
}
.puerto-ctl__btn svg { width: 20px; height: 20px; }
.puerto-ctl__btn:disabled { opacity: 0.35; cursor: default; }
.puerto-ctl__btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.puerto-ctl__btn .ic-seguir, .puerto-ctl__btn[aria-pressed="true"] .ic-pausa { display: none; }
.puerto-ctl__btn[aria-pressed="true"] .ic-seguir { display: inline; }
@media not all and (min-width: 900px) and (min-aspect-ratio: 5/4) {
  .puerto-vivo .parador-capa > .puerto-titulo { top: 112px; left: 8px; max-width: calc(100% - 16px); padding: 10px 12px; }
  .puerto-vivo .parador.estacionado:not(.mirando-tablero) .puerto-ctl { top: 62px; right: 8px; }
  .puerto-vivo .parador-capa > .puerto-final { top: 30%; }
}

/* --- Movimiento reducido: el puerto quieto y las placas en fichas --- */
.puerto-quieto .parador-capa { overflow-y: auto; padding: 72px 16px 96px; }
.parador-vivo.puerto-quieto .parador-capa > * { position: static; transform: none; margin: 0 auto 18px; max-width: 1000px; }
.puerto-quieto .parador.estacionado .parador-capa { pointer-events: auto; }
.puerto-quieto .puerto-titulo, .puerto-quieto .puerto-final { padding: 16px 18px; background: rgba(8, 24, 42, 0.7); border-radius: 8px; text-align: center; }
.puerto-quieto .puerto-final__otra { display: none; }
.puerto-quieto .flota, html:not(.parador-vivo) .flota { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.puerto-quieto .placa, html:not(.parador-vivo) .placa { position: relative; aspect-ratio: 44 / 17; }
.puerto-quieto .puerto-ctl { display: none !important; }
.puerto-quieto .cartel, html:not(.parador-vivo) .cartel { margin-top: 6px; text-align: center; }
