/* Miniportal GM2HUB · móvil primero. Los colores de marca llegan en /marca/<CANAL>.css (--primario, --acento, --fondo). */
:root {
  --texto: #1d1d1f;
  --texto-suave: #5b5b60;
  --borde: #d9d9de;
  --blanco: #fff;
  --ok: #1f7a3d;
  --ok-fondo: #e8f5ec;
  --error: #b42318;
  --error-fondo: #fdecea;
  --aviso-fondo: #fff6db;
  --aviso: #7a5600;
  --radio: 12px;
  /* Botones de acción (regla de la flota, Aitor 04-10): NARANJA si se puede, GRIS deshabilitado con motivo si no.
     Naranja #F28C28 (Aitor) con texto OSCURO = 6,86:1 (AA; con blanco serían 2,45:1); gris #e4e4e7 + #52525b = 6,09:1. */
  --accion: #f28c28;
  --accion-hover: #e8791a;
  --accion-texto: #1d1d1f;
  --deshab-fondo: #e4e4e7;
  --deshab-texto: #52525b;
  --sombra: 0 1px 2px rgb(0 0 0 / 6%), 0 4px 16px rgb(0 0 0 / 5%);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: var(--texto);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--fondo); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--primario); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }

.saltar { position: absolute; left: -9999px; top: 0; background: var(--blanco); padding: .5rem 1rem; z-index: 10; }
.saltar:focus { left: .5rem; top: .5rem; }

.cabecera { background: var(--primario); color: var(--blanco); }
.cabecera__in, .pie__in, .contenido { width: 100%; max-width: 46rem; margin: 0 auto; padding-inline: 16px; }
.cabecera__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; flex-wrap: wrap; }
.logo img { display: block; max-height: 32px; width: auto; }
.logo__texto { font-weight: 700; letter-spacing: .02em; font-size: 1.1rem; }
.cabecera__nav { display: flex; align-items: center; gap: .75rem; }
.idiomas { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.idiomas a { color: var(--blanco); text-decoration: none; font-size: .8rem; padding: .35rem .45rem; border-radius: 6px; opacity: .75; display: inline-block; min-width: 2rem; text-align: center; }
.idiomas a[aria-current="true"] { opacity: 1; background: rgb(255 255 255 / 16%); font-weight: 600; }
.idiomas a:hover { opacity: 1; }
.salir { margin: 0; }
.enlace-boton { background: none; border: 0; color: var(--blanco); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; padding: .35rem 0; }

.contenido { flex: 1; padding-block: 1.25rem 2.5rem; outline: none; }
.tarjeta { background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); padding: 1.25rem; margin-bottom: 1rem; }
.tarjeta--estrecha { max-width: 28rem; margin-inline: auto; }
h1 { font-size: 1.4rem; line-height: 1.25; margin: 0 0 .5rem; }
.ayuda { color: var(--texto-suave); margin-top: 0; }

.formulario { display: grid; gap: 1rem; margin-top: 1rem; }
.campo { display: grid; gap: .3rem; border: 0; padding: 0; margin: 0; }
.campo label, .campo legend { font-weight: 600; font-size: .95rem; }
.campo small { color: var(--texto-suave); font-size: .85rem; }
input[type="text"], input[type="email"] {
  font: inherit; font-size: 1rem; /* ≥16px: iOS no hace zoom */
  padding: .75rem .85rem; border: 1px solid var(--borde); border-radius: 8px; width: 100%; background: var(--blanco);
}
.opcion { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border: 1px solid var(--borde); border-radius: 8px; margin-top: .4rem; cursor: pointer; }
.opcion:has(input:checked) { border-color: var(--primario); box-shadow: inset 0 0 0 1px var(--primario); }
.opcion input { width: 1.1rem; height: 1.1rem; accent-color: var(--primario); }

.boton {
  font: inherit; font-weight: 600; font-size: 1rem; color: var(--accion-texto); background: var(--accion);
  border: 0; border-radius: 8px; padding: .85rem 1.25rem; min-height: 48px; cursor: pointer; width: 100%;
}
.boton:hover:not(:disabled) { background: var(--accion-hover); }
.boton:disabled { background: var(--deshab-fondo); color: var(--deshab-texto); cursor: not-allowed; }
.motivo-boton { display: block; margin-top: .4rem; font-size: .85rem; color: var(--deshab-texto); }
.alternativa { margin: 1.25rem 0 0; font-size: .95rem; color: var(--texto-suave); }

.aviso { border-radius: 8px; padding: .75rem .9rem; margin: .75rem 0; }
.aviso--error { background: var(--error-fondo); color: var(--error); }
.aviso--ok { background: var(--ok-fondo); color: var(--ok); }
.banda { border-radius: 8px; padding: .6rem .9rem; margin: 0 0 1rem; font-size: .9rem; }
.banda--sombra { background: #eef1ff; color: #2c3c8c; }

.resumen { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem 1rem; margin: 1rem 0 0; }
.resumen dt { font-size: .8rem; color: var(--texto-suave); text-transform: uppercase; letter-spacing: .04em; }
.resumen dd { margin: .1rem 0 0; font-weight: 600; }
.estado { display: inline-block; padding: .15rem .55rem; border-radius: 999px; background: #eef0f3; font-size: .9rem; }
.estado--servido { background: var(--ok-fondo); color: var(--ok); }
.estado--cancelado { background: var(--error-fondo); color: var(--error); }

.pie { color: var(--texto-suave); font-size: .85rem; padding-block: 1rem 1.5rem; }
.pie__in { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.pie a { color: var(--texto-suave); }

@media (min-width: 40rem) {
  .tarjeta { padding: 1.75rem; }
  h1 { font-size: 1.6rem; }
  .boton { width: auto; }
}
.banda--idioma { background: var(--blanco); border: 1px solid var(--borde); }

/* Bloque 2: pedido */
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.subtitulo { font-size: .8rem; color: var(--texto-suave); text-transform: uppercase; letter-spacing: .04em; font-weight: 400; margin: 0 0 .25rem; }
.direccion { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--borde); }
address { font-style: normal; }
.lineas, .lista { list-style: none; margin: 0; padding: 0; }
.linea { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-top: 1px solid var(--borde); }
.linea:first-child { border-top: 0; }
.envio .lineas { margin-top: .75rem; border-top: 1px solid var(--borde); }
.envio .linea:first-child { border-top: 0; }
.linea__desc { display: grid; gap: .15rem; min-width: 0; }
.linea__nombre { font-weight: 600; overflow-wrap: anywhere; }
.linea__meta { font-size: .85rem; color: var(--texto-suave); }
.linea__prevista { font-size: .9rem; color: var(--aviso); font-weight: 600; }
.linea__cant { font-weight: 600; white-space: nowrap; }
.linea__cant::before { content: "× "; color: var(--texto-suave); font-weight: 400; }
.envio__cabecera { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.envio__cabecera h2 { margin: 0; }
.envio__dato { margin: .6rem 0 0; }
.envio__dato--fuerte { font-weight: 600; }
.envio__etq { color: var(--texto-suave); }
.envio__datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem 1rem; margin: .75rem 0 0; }
.envio__datos dt { font-size: .8rem; color: var(--texto-suave); }
.envio__datos dd { margin: 0; overflow-wrap: anywhere; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
.boton--secundario { display: inline-block; text-align: center; text-decoration: none; background: var(--blanco); color: var(--primario); border: 2px solid var(--primario); margin-top: .75rem; }
.boton--secundario:hover:not(:disabled) { background: var(--fondo); }
.estado--pendiente { background: var(--aviso-fondo); color: var(--aviso); }
.estado--envio-entregado, .estado--envio-recogido_en_tienda { background: var(--ok-fondo); color: var(--ok); }
.estado--envio-en_camino, .estado--envio-enviado, .estado--envio-listo_para_recoger { background: #e7f0fb; color: #1d4f91; }
.estado--envio-incidencia, .estado--envio-cancelado { background: var(--error-fondo); color: var(--error); }
.lista__fila { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--borde); }
.lista__fila:first-child { border-top: 0; }
.tarjeta--apagada { opacity: .75; }
.nota { color: var(--texto-suave); text-align: center; margin: 1rem 0; }

/* Bloque 3: acciones, formularios de escritura, opciones y solicitud */
.acciones { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.accion { display: grid; gap: .1rem; padding: .85rem 1rem; border-radius: 10px; text-decoration: none; min-height: 48px; }
a.accion { background: var(--accion); color: var(--accion-texto); }
a.accion:hover { background: var(--accion-hover); }
a.accion .accion__nombre::after { content: " →"; }
a.accion .accion__nota { color: var(--accion-texto); }
.accion__nombre { font-weight: 600; }
.accion__nota { font-size: .85rem; }
.accion--deshabilitada { background: var(--deshab-fondo); color: var(--deshab-texto); cursor: not-allowed; }
textarea, input[type="tel"] { font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid var(--borde); border-radius: 8px; width: 100%; background: var(--blanco); }
.grupo { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.grupo legend { font-weight: 700; font-size: 1.05rem; margin-bottom: .25rem; }
.campo--error input { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.campo__error { color: var(--error) !important; }
.aviso--atencion { background: var(--aviso-fondo); color: var(--aviso); }
.tallas { list-style: none; padding: 0; margin: .25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.talla { border: 1px solid var(--borde); border-radius: 8px; padding: .4rem .7rem; display: grid; text-align: center; min-width: 4.5rem; }
.talla--hoy { border-color: var(--ok); }
.talla small { color: var(--texto-suave); font-size: .75rem; }
.apagado { color: var(--texto-suave); }
h3.subtitulo { margin-top: 1rem; }
.girando { display: inline-block; width: .9em; height: .9em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: girar 1s linear infinite; vertical-align: -.1em; }
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .girando { animation: none; } }

/* Bloque 4: incidencia */
.visualmente-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.formulario--incidencia { gap: 0; margin-top: 0; }
.elegir-linea { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; }
.elegir-linea input { width: 1.3rem; height: 1.3rem; margin-top: .15rem; accent-color: var(--primario); flex: none; }
.elegir-linea > span { display: grid; gap: .1rem; }
.campo--corto select { font: inherit; font-size: 1rem; padding: .55rem .7rem; border: 1px solid var(--borde); border-radius: 8px; width: auto; min-width: 5rem; background: var(--blanco); }
.campo--corto { margin-top: .75rem; }
label.talla { cursor: pointer; }
label.talla input { position: absolute; opacity: 0; }
label.talla:has(input:checked) { border-color: var(--primario); box-shadow: inset 0 0 0 2px var(--primario); }
label.talla:has(input:focus-visible) { outline: 3px solid var(--acento); outline-offset: 2px; }
.opcion { justify-content: space-between; }
.opcion__texto { flex: 1; display: grid; }
.opcion__texto small { color: var(--texto-suave); }
.opcion--deshabilitada { background: var(--deshab-fondo); color: var(--deshab-texto); cursor: not-allowed; }
.opcion--deshabilitada .opcion__texto small { color: var(--deshab-texto); }
.opcion-linea--deshabilitada { background: var(--deshab-fondo); color: var(--deshab-texto); box-shadow: none; }
.opcion-linea--deshabilitada .elegir-linea { cursor: not-allowed; }
.linea__motivo { font-size: .85rem; }
input[type="file"] { font: inherit; padding: .6rem; border: 1px dashed var(--borde); border-radius: 8px; width: 100%; background: var(--blanco); }
.aviso--ok-texto { color: var(--ok) !important; font-weight: 600; }
.pasos { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .1rem; }
.paso { display: flex; gap: .75rem; align-items: flex-start; padding: .35rem 0; }
.paso small { display: block; color: var(--texto-suave); }
.paso__marca { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--borde); flex: none; margin-top: .2rem; }
.paso--hecho .paso__marca { background: var(--ok); border-color: var(--ok); }
.paso--pendiente { color: var(--texto-suave); }

/* Pantalla del pedido por bloques (destinos del email: #envio, #opciones, #cancelar) */
.titulo-pedido { margin: 0 0 1rem; }
.titulo-pedido h1 { margin-bottom: .35rem; }
.titulo-pedido p { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.bloque-ir { scroll-margin-top: 1rem; }
.bloque-ir:target { box-shadow: 0 0 0 3px var(--acento), var(--sombra); }
.envio + .envio { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--borde); }
.envio h3 { font-size: 1rem; margin: 0; }
.envio__evento { margin: .6rem 0 0; font-size: 1.05rem; font-weight: 600; }
.boton[aria-busy="true"] { cursor: progress; background: var(--accion-hover); }

/* Garantías: apartado discreto, fuera de las opciones principales (Aitor 04-10) */
.garantias { text-align: center; margin: .5rem 0 1.5rem; font-size: .95rem; color: var(--texto-suave); }
.garantias a { color: var(--texto); font-weight: 600; }
.accion-ir { scroll-margin-top: 1rem; border-radius: 12px; }
.accion-ir:target { box-shadow: 0 0 0 3px var(--acento); }

/* Incidencia multiunidad: talla por unidad y resumen */
.unidades { display: grid; gap: .75rem; margin-top: .75rem; }
.unidad[hidden] { display: none; }
.resumen-texto { white-space: pre-line; background: var(--fondo); border-radius: 8px; padding: .75rem .9rem; margin: .75rem 0 0; }
form.tarjeta .boton + .boton { margin-top: .25rem; }

/* Solicitudes vivas y unidades ya pedidas (Aitor 04-10) */
.tarjeta--destacada { border: 2px solid var(--accion); }
.activa + .activa { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--borde); }
.activa h3 { font-size: 1rem; margin: 0; }
.activa__que { margin: .6rem 0 0; padding: .6rem .8rem; background: #fff4e6; border-radius: 8px; }
.linea__marcas { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; }
.marca { font-size: .8rem; padding: .1rem .5rem; border-radius: 999px; background: var(--deshab-fondo); color: var(--deshab-texto); }
.marca--en { background: #fff4e6; color: #8a4b08; font-weight: 600; }
.marca--libre { background: var(--ok-fondo); color: var(--ok); }
/* Aceptada y en marcha: verde (que se vea CLARO que la tienda la ha aceptado); rechazada: rojo. */
.estado--inc-aceptada_pendiente_retorno, .estado--inc-retorno_en_camino, .estado--inc-procesando_almacen,
.estado--inc-procesando_cambio_reembolso, .estado--inc-enviado, .estado--inc-reembolsado, .estado--inc-resuelta { background: var(--ok-fondo); color: var(--ok); font-weight: 600; }
.estado--inc-rechazada { background: var(--error-fondo); color: var(--error); }
/* Rechazadas: rojo claro y con su fecha/motivo (Aitor 04-10) */
.rechazo { color: var(--error); }
.rechazo-caja { margin: .6rem 0 0; padding: .6rem .8rem; background: var(--error-fondo); color: var(--error); border-radius: 8px; }
.activa--rechazada .activa__que { background: var(--fondo); }

/* Línea de pasos con fechas y aviso de recepción (Aitor 04-10) */
.pasos--linea { margin-top: .75rem; }
.paso--actual { color: var(--texto); font-weight: 600; }
.paso--actual .paso__marca { border-color: var(--accion); background: #fff4e6; }
.aviso-recepcion { margin: .75rem 0 0; padding: .75rem .9rem; background: var(--error-fondo); color: var(--error); border-radius: 8px; }
.aviso-recepcion p { margin: 0 0 .5rem; }
.aviso-recepcion p:last-child { margin: .5rem 0 0; font-weight: 600; }
.tabla-recepcion { width: 100%; border-collapse: collapse; font-size: .85rem; color: var(--texto); background: var(--blanco); border-radius: 6px; }
.tabla-recepcion th, .tabla-recepcion td { padding: .35rem .4rem; text-align: right; border-bottom: 1px solid var(--borde); }
.tabla-recepcion th[scope="row"], .tabla-recepcion thead th:first-child { text-align: left; font-weight: 600; }
.fila-problema td, .fila-problema th { color: var(--error); font-weight: 700; }
.activa__articulos { margin-top: .5rem; }
.activa__articulos summary { cursor: pointer; color: var(--texto-suave); font-size: .9rem; }

/* Chips de talla compactos (Aitor 04-10): ancho fijo, rejilla que fluye (≈7 por fila en escritorio, 3-4 en móvil),
   talla grande arriba y dos líneas cortas debajo, borde del color del estado y ✓ al seleccionar. */
.tallas--chips { display: grid; grid-template-columns: repeat(auto-fill, 84px); gap: .5rem; }
.tallas--chips .talla { position: relative; width: 84px; min-width: 0; min-height: 76px; padding: .45rem .15rem; border: 2px solid var(--borde); border-radius: 10px; display: grid; align-content: center; justify-items: center; gap: .15rem; text-align: center; }
.tallas--chips .talla strong { font-size: 1.15rem; line-height: 1.1; }
.tallas--chips .talla small { font-size: .72rem; line-height: 1.2; }
.tallas--chips .talla small { display: grid; color: var(--texto-suave); }
.tallas--chips .linea-corta { white-space: nowrap; font-size: .62rem; letter-spacing: -.01em; }
.tallas--chips .talla--stock { border-color: var(--ok); background: var(--ok-fondo); }
.tallas--chips .talla--stock small { color: var(--ok); font-weight: 600; }
.tallas--chips .talla--espera { border-color: #d97706; background: #fff4e6; }
.tallas--chips .talla--espera small { color: #8a4b08; font-weight: 600; }
.tallas--chips .talla--sin { border-color: var(--borde); background: var(--deshab-fondo); color: var(--deshab-texto); cursor: not-allowed; }
.tallas--chips .talla--sin strong { text-decoration: line-through; }
.tallas--chips .talla--actual { border-style: dashed; border-color: var(--texto-suave); background: var(--blanco); color: var(--texto-suave); cursor: default; }
.tallas--chips label.talla:has(input:checked) { box-shadow: 0 0 0 2px var(--texto); border-color: var(--texto); }
.tallas--chips label.talla:has(input:checked)::after {
  content: "✓"; position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--texto); color: var(--blanco); font-size: .8rem; font-weight: 700; display: grid; place-items: center;
}
.tallas__espera { margin: .5rem 0 0; padding: .5rem .7rem; font-size: .9rem; background: #fff4e6; color: #8a4b08; border-radius: 8px; }
.tallas__espera[hidden] { display: none; }
.retorno-destino { margin: .6rem 0 0; padding: .7rem .9rem; border: 2px dashed var(--accion); border-radius: 10px; background: var(--blanco); }
.retorno-destino p { margin: .4rem 0 0; }
.retorno-destino .subtitulo { margin: 0 0 .25rem; }

/* Miniatura del producto (Linea.imagen_url, Aitor 04-10): 56 px cuadrada, borde suave; hueco gris si no hay. */
.miniatura { width: 56px; height: 56px; flex: none; border-radius: 8px; border: 1px solid var(--borde); background: var(--deshab-fondo); object-fit: contain; }
.miniatura--vacia { display: block; }
.elegir-linea { align-items: center; }
.linea--con-mini { justify-content: flex-start; align-items: center; }
.linea--con-mini .linea__desc { flex: 1; }

/* «Estamos registrando tu pedido» */
.registrando { text-align: center; }
.registrando__icono { width: 2rem; height: 2rem; border-width: 3px; color: var(--accion); margin: .5rem auto 1rem; display: block; }
.registrando .boton { display: inline-block; text-decoration: none; }

/* Garantías: contenido mínimo antes del formulario */
.garantias-info__bloques { display: grid; gap: .75rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.garantias-info h3 { font-size: .95rem; margin: 0 0 .25rem; }
.garantias-info p, .garantias-info ul { margin: 0; font-size: .92rem; }
.garantias-info ul { padding-left: 1.1rem; }
.garantias-info .boton { display: inline-block; text-decoration: none; margin-top: .25rem; }
.boton--inactivo { background: var(--deshab-fondo); color: var(--deshab-texto); cursor: not-allowed; display: inline-block; }
#formulario-garantia { scroll-margin-top: 1rem; }

/* Enlaces con aspecto de botón (p. ej. «Pedir el cambio de nuevo»): sin subrayado; a lo ancho en móvil. */
a.boton { display: inline-block; text-decoration: none; text-align: center; }
@media (max-width: 40rem) { a.boton:not(.boton--secundario) { display: block; } }
.sin-casilla { width: 1.3rem; flex: none; }
.aviso-linea { margin: .6rem 0 0; font-size: .9rem; }
.aviso-linea[hidden] { display: none; }
[data-separar][hidden] { display: none; }
form.tarjeta .boton + .boton, .formulario--incidencia .boton + .boton { margin-top: .5rem; }
.etiqueta { margin: .6rem 0 0; }
.etiqueta p { margin: .3rem 0 0; }

/* ── Estado de tu pedido (Aitor 05-10): hitos verticales; hecho verde, actual naranja con pulso, pendiente gris ── */
.estado--proveedor { background: var(--aviso-fondo); color: var(--aviso); }
.cabecera__prevista { margin: .35rem 0 0; font-weight: 600; }
.estado-log__hitos { list-style: none; margin: .5rem 0 0; padding: 0; }
.estado-log__hito { position: relative; display: flex; gap: .8rem; padding: 0 0 1.1rem; }
.estado-log__hito:last-child { padding-bottom: 0; }
/* la línea que une las bolas */
.estado-log__hito:not(:last-child)::before {
  content: ""; position: absolute; left: 8px; top: 20px; bottom: 2px; width: 2px; background: var(--borde);
}
.estado-log__hito--hecho:not(:last-child)::before { background: var(--ok); }
.estado-log__bola { flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 1px; background: var(--deshab-fondo); border: 2px solid var(--borde); box-sizing: border-box; }
.estado-log__bola--hecho { background: var(--ok); border-color: var(--ok); }
.estado-log__bola--actual { background: var(--accion); border-color: var(--accion); animation: estado-log-pulso 2s ease-in-out infinite; }
@keyframes estado-log-pulso {
  0%, 100% { box-shadow: 0 0 0 0 rgb(242 140 40 / 45%); }
  50% { box-shadow: 0 0 0 7px rgb(242 140 40 / 0%); }
}
@media (prefers-reduced-motion: reduce) { .estado-log__bola--actual { animation: none; } }
.estado-log__texto { display: flex; flex-direction: column; min-width: 0; }
.estado-log__nombre { line-height: 1.25; }
.estado-log__hito--actual .estado-log__nombre { font-weight: 700; }
.estado-log__hito--pendiente .estado-log__nombre { color: var(--texto-suave); }
.estado-log__fecha { font-size: .85rem; color: var(--texto-suave); }
.estado-log__siguiente { margin-top: .4rem; display: flex; flex-direction: column; }
.estado-log__etiqueta { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--texto-suave); }
.estado-log__grande { font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.estado-log--plegado { display: flex; align-items: center; gap: .5rem; margin: .25rem 0 1rem; font-weight: 600; }
.estado-log--plegado .estado-log__bola { width: 14px; height: 14px; margin: 0; }
/* Envíos dentro de «Estado de tu pedido» (Aitor 06-10): un sub-bloque por envío, separado de los hitos. */
.estado-log__hitos + .envio, .estado-log--plegado + .envio, .estado-log > h2 + .envio { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--borde); }
.estado-log > h2 + .envio { border-top: 0; padding-top: 0; margin-top: .5rem; }
.estado-log .estado-log--plegado { margin: .25rem 0 0; }
.bloque-direccion address { font-style: normal; margin: 0 0 .75rem; line-height: 1.4; }
/* Dirección de envío dentro de «Estado de tu pedido» (Aitor 06-10). */
.estado-log__direccion { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--borde); }
.estado-log__direccion p { margin: 0; overflow-wrap: anywhere; }
.estado-log__direccion p + p { margin-top: .7rem; }
.estado-log__direccion + .envio { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--borde); }
/* Entregado con solicitud viva (Aitor 06-10): la caja de estado en una línea; el envío, plegado en «Detalles». */
.estado-log--compacta { padding-top: .9rem; padding-bottom: .9rem; }
.estado-log--compacta .estado-log--plegado { margin: 0; }
.detalles-envio { margin-top: 1rem; border-top: 1px solid var(--borde); padding-top: .8rem; }
.detalles-envio summary { cursor: pointer; font-weight: 700; }
.detalles-envio > p { margin: .7rem 0 0; }
.detalles-envio .envio { margin-top: .9rem; }
.activa--destino { outline: 3px solid var(--accion); outline-offset: 4px; border-radius: var(--radio); }
/* Chip de la solicitud atado al paso actual (Aitor 06-10). */
.estado--paso-actual { background: var(--aviso-fondo); color: var(--aviso); }
.estado--paso-hecho { background: var(--ok-fondo); color: var(--ok); }
/* Condiciones de devolución y cambio (Aitor 06-10). */
.condiciones { margin: 0 0 1rem; padding: .9rem 1rem; border-radius: var(--radio); background: var(--aviso-fondo); color: var(--texto); border: 1px solid #f0dca0; }
.condiciones h2, .condiciones h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.tarjeta.condiciones { padding: 1.1rem 1.2rem; }
.condiciones ul { margin: 0 0 .75rem; padding-left: 1.1rem; }
.condiciones li + li { margin-top: .45rem; }
.condiciones__acepto { display: flex; gap: .55rem; align-items: flex-start; font-weight: 700; cursor: pointer; }
.condiciones__acepto input { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .1rem; accent-color: var(--accion); }
.condiciones--resumen { font-size: .92rem; }
.condiciones--resumen p { margin: 0 0 .35rem; }
.condiciones--resumen ul { margin: 0; }
/* Hasta aceptar las condiciones, solo ellas (Aitor 06-10). */
main:has([data-condiciones]:not(:checked)) [data-tras-condiciones] { display: none; }
/* Resumen (Aitor 06-10): qué hago con el artículo, antes del nombre; la talla nueva, grande y en naranja. */
.linea__que { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--texto-suave); margin-bottom: .1rem; }
.linea__talla-nueva { display: block; font-weight: 600; font-size: inherit; color: #b85600; margin-top: .15rem; }
/* Pago: barra de progreso mientras la oficina prepara la página de pago (Aitor 06-10). */
.progreso { height: 6px; border-radius: 999px; background: var(--deshab-fondo); overflow: hidden; margin: .5rem 0 1rem; }
.progreso > span { display: block; height: 100%; width: 0; background: var(--accion); transition: width .9s linear; }
@media (prefers-reduced-motion: reduce) { .progreso > span { transition: none; } }
.condiciones-aceptadas { margin: 0 0 1rem; padding: .6rem .9rem; border-radius: var(--radio); background: var(--ok-fondo); color: var(--ok); font-size: .92rem; }
/* Tiendas SEUR más cercanas (retorno.puntos_cercanos). */
.puntos { margin: .9rem 0 0; }
.puntos ul { list-style: none; margin: .3rem 0 0; padding: 0; }
.puntos li { display: flex; flex-direction: column; gap: .1rem; padding: .55rem 0; border-top: 1px solid var(--borde); }
.puntos__cab { display: flex; justify-content: space-between; gap: .75rem; }
.puntos__dist { flex: none; font-weight: 700; color: var(--texto-suave); }
/* Garantías, solo UR (Aitor 06-10): aviso de recambios / baterías, en rojo. */
.garantias-aviso { margin: 1rem 0; padding: .8rem 1rem; border-radius: var(--radio); background: var(--error-fondo); color: var(--error); font-weight: 600; font-size: .92rem; line-height: 1.5; }
.garantias-aviso a { color: inherit; font-weight: 700; }
/* Ejemplos de embalaje (Aitor 06-10): miniaturas en fila, pie «Así NO» / «Así SÍ»; ampliada en <dialog>. */
.embalaje { margin: .9rem 0 1rem; display: flex; flex-direction: column; gap: .8rem; }
.embalaje__fila { margin: 0; }
.embalaje__fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 128px)); gap: .5rem; }
.embalaje__fotos a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--borde); background: var(--blanco); }
.embalaje__fotos img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.embalaje__fila figcaption { margin-top: .3rem; font-weight: 700; font-size: .9rem; }
.embalaje__fila--nok figcaption { color: var(--error); }
.embalaje__fila--ok figcaption { color: var(--ok); }
.ampliada { padding: 0; border: 0; background: transparent; max-width: min(92vw, 1000px); max-height: 92vh; cursor: zoom-out; }
.ampliada::backdrop { background: rgb(0 0 0 / 75%); }
.ampliada img { display: block; max-width: 100%; max-height: 92vh; width: auto; height: auto; border-radius: 10px; }
/* Widget embebido (docs/EMBED-WIDGET.md): fondo blanco, sin márgenes de página ni sombras. */
body.embed { background: #fff; min-height: 0; display: block; } /* sin estirarse al alto del iframe (auto-altura estable) */
body.embed .contenido { padding: 0; margin: 0; max-width: none; flex: none; }
body.embed .tarjeta { box-shadow: none; border: 1px solid var(--borde); margin: 0 0 1rem; }
body.embed .tarjeta--estrecha { max-width: none; }
body.embed h2 { font-size: 1.05rem; }
