/* =====================================================================
   Excursión Andorra · hoja de estilos
   Paleta de montaña nevada: azul noche, nieve y ámbar de hojalata.
   ===================================================================== */

:root {
  --noche:    #0b2238;
  --hielo:    #6fa3c2;
  --montanas: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20viewBox=%220%200%201440%20160%22%20preserveAspectRatio=%22none%22%3E%3Cdefs%3E%3ClinearGradient%20id=%22g0%22%20x1=%220%22%20y1=%220%22%20x2=%220%22%20y2=%221%22%3E%3Cstop%20offset=%220%22%20stop-color=%22%239fc3da%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%2327536f%22/%3E%3C/linearGradient%3E%3ClinearGradient%20id=%22g1%22%20x1=%220%22%20y1=%220%22%20x2=%220%22%20y2=%221%22%3E%3Cstop%20offset=%220%22%20stop-color=%22%235d8fae%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%231a3f58%22/%3E%3C/linearGradient%3E%3ClinearGradient%20id=%22g2%22%20x1=%220%22%20y1=%220%22%20x2=%220%22%20y2=%221%22%3E%3Cstop%20offset=%220%22%20stop-color=%22%23f7fafc%22/%3E%3Cstop%20offset=%221%22%20stop-color=%22%23eceff0%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath%20d=%22M0%20160V88L90%2052L150%2074L270%2014L350%2070L430%2044L560%20104L690%2030L760%2062L880%208L990%2080L1080%2046L1200%2096L1310%2034L1440%2082V160Z%22%20fill=%22url%28%23g0%29%22/%3E%3Cpath%20d=%22M0%20160V112L120%2078L210%20104L340%2060L470%20112L600%2084L720%20118L850%2070L980%20112L1110%2082L1240%20116L1350%2090L1440%20108V160Z%22%20fill=%22url%28%23g1%29%22/%3E%3Cpath%20d=%22M0%20160V132C180%20112%20300%20138%20480%20128C660%20118%20760%20142%20960%20132C1140%20124%201290%20112%201440%20130V160Z%22%20fill=%22url%28%23g2%29%22/%3E%3C/svg%3E");
  --azul-900: #0b2238;
  --azul-700: #1a4a73;
  --azul-500: #2f6f9f;
  --azul-100: #dce9f3;
  --ambar:    #d9a21b;
  --ambar-oscuro: #9a6f06;
  --granate:  #a33a28;
  --papel:    #ffffff;
  --fondo:    #eceff0;
  --tinta:    #16201d;
  --gris:     #5d6b66;
  --borde:    #d5ddd8;

  --radio:    10px;
  --radio-s:  6px;
  --ancho:    1180px;
  --sombra:   0 1px 2px rgba(11, 34, 56, .07);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--fondo);
  color: var(--tinta);
  font: 400 1rem/1.6 Karla, "Segoe UI", system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); }
h3 { font-size: 1.15rem; }

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

a { color: var(--azul-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--azul-500); }

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

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

.saltar {
  position: absolute; left: -9999px; top: 0;
  background: var(--azul-900); color: #fff; padding: .7rem 1rem; z-index: 100;
}
.saltar:focus { left: 0; }

.contenedor {
  width: min(100% - 2rem, var(--ancho));
  margin-inline: auto;
}

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

/* ---------- cabecera ------------------------------------------------ */

.cabecera {
  background: var(--noche);
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.cabecera__fila {
  display: flex;
  align-items: center;
  gap: .6rem .8rem;
  flex-wrap: wrap;
  padding: .7rem 0;
}
@media (min-width: 62rem) { .cabecera__fila { gap: .75rem 1.5rem; } }

.marca {
  display: flex; align-items: center; gap: .6rem;
  color: #fff; text-decoration: none;
  margin-right: auto; min-width: 0;
}
.marca strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(.9rem, .75rem + 1vw, 1.05rem);
  line-height: 1.2;
}
.marca small { display: block; font-size: .75rem; color: #a9c4d6; }
@media (max-width: 26rem) { .marca small { display: none; } }

/* copo de nieve del logotipo */
.marca__cima {
  width: 30px; height: 30px; flex: none;
  background: url("../img/copo.svg") center / contain no-repeat;
}

.menu {
  display: flex; flex-wrap: wrap; gap: .25rem .4rem;
  order: 3; width: 100%;
}
.menu a {
  color: #d3e4ef; text-decoration: none;
  font-size: .9rem; font-weight: 500;
  padding: .35rem .6rem; border-radius: 99px;
  border: 1px solid transparent;
}
.marca .nb { white-space: nowrap; }

/* botón del menú: solo en móvil y solo si hay JavaScript */
.menu-boton { display: none; }
@media (max-width: 47.99rem) {
  .cabecera__fila { gap: .4rem .5rem; padding: .5rem 0; }
  .marca { flex: 1 1 0; gap: .5rem; }
  .marca > span:last-child { min-width: 0; }
  .marca strong { font-size: .88rem; line-height: 1.15; }
  .marca small { display: none; }
  .marca__cima { width: 28px; height: 28px; }
  .cesta { padding: .35rem .7rem; font-size: .84rem; }
  .js .menu-boton {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
    width: 38px; height: 34px; padding: 0 9px; flex: none;
    background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; cursor: pointer;
  }
  .js .menu-boton:hover, .js .menu-boton:focus-visible { background: rgba(255,255,255,.1); }
  .menu-boton span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .18s, opacity .18s; }
  .menu-abierto .menu-boton span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-abierto .menu-boton span:nth-child(2) { opacity: 0; }
  .menu-abierto .menu-boton span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .js .menu {
    display: none; order: 4; flex-direction: column; gap: .15rem;
    padding: .25rem 0 .55rem; margin-top: .1rem; border-top: 1px solid rgba(255,255,255,.1);
  }
  .js .menu-abierto .menu { display: flex; }
  .js .menu a { font-size: 1rem; padding: .65rem .8rem; border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) { .menu-boton span { transition: none; } }

.menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
.menu a[aria-current="page"] { background: #fff; color: var(--noche); }

.cesta {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--ambar); color: #231a00;
  font-weight: 700; font-size: .86rem;
  padding: .45rem .75rem; border-radius: 99px; text-decoration: none;
  white-space: nowrap;
}
@media (min-width: 48rem) { .cesta { font-size: .92rem; padding: .5rem .9rem; } }
.cesta:hover { background: #e8b434; color: #231a00; }
.cesta__n {
  min-width: 1.4rem; height: 1.4rem; padding: 0 .3rem;
  display: inline-grid; place-items: center;
  background: var(--azul-900); color: #fff;
  border-radius: 99px; font-size: .78rem;
}

@media (min-width: 62rem) {
  .menu { order: 0; width: auto; }
}

/* ---------- avisos --------------------------------------------------- */

.aviso {
  margin: 1rem 0 0;
  padding: .8rem 1rem;
  border-radius: var(--radio-s);
  border-left: 4px solid var(--azul-500);
  background: var(--azul-100);
  font-weight: 500;
}
.aviso--error { border-left-color: var(--granate); background: #f8e5e1; }
.aviso--info  { border-left-color: var(--ambar);   background: #faf0d6; }

/* ---------- portada -------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(2rem, 1rem + 5vw, 4.5rem) 0 clamp(7rem, 4rem + 10vw, 12rem);
  background: linear-gradient(180deg, var(--noche) 0%, #123552 60%, #2a6285 100%);
}
/* nieve cayendo, muy suave */
.hero::before, .cat-cab::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .85;
  background-image:
    radial-gradient(2.6px 2.6px at 20px 30px, #fff, transparent 60%),
    radial-gradient(3.6px 3.6px at 90px 120px, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 160px 70px, #fff, transparent 60%),
    radial-gradient(2.5px 2.5px at 230px 190px, #fff, transparent 60%),
    radial-gradient(2.6px 2.6px at 300px 100px, #fff, transparent 60%),
    radial-gradient(1.5px 1.5px at 60px 220px, #fff, transparent 60%),
    radial-gradient(3.6px 3.6px at 340px 20px, #fff, transparent 60%);
  background-size: 360px 260px;
  animation: nevar 22s linear infinite;
}
@keyframes nevar { to { background-position: -40px 260px; } }
@media (prefers-reduced-motion: reduce) { .hero::before, .cat-cab::before { animation: none; } }
/* montañas al pie; la última capa es el color del fondo de la página */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; pointer-events: none;
  height: clamp(120px, 16vw, 250px);
  background: var(--montanas) no-repeat 0 0 / 100% 100%;
}
.hero__rejilla { position: relative; z-index: 2; display: grid; gap: 1.8rem 3rem; align-items: start; }
@media (min-width: 62rem) {
  .hero__rejilla { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
}
.hero h1 { color: #fff; max-width: 20ch; }
.hero__entrada { max-width: 52ch; color: #d3e4ef; font-size: 1.08rem; }
.hero__entrada strong { color: #fff; }

.hero__imagen {
  margin: 0;
  border-radius: var(--radio);
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.85);
  box-shadow: 0 16px 36px rgba(0,0,0,.4);
  line-height: 0;
}
.hero__imagen img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
@media (min-width: 62rem) {
  .hero__imagen { align-self: center; }
}

/* ---------- cabecera de catálogo (proveedor) ------------------------- */

.cat-cab {
  position: relative; overflow: hidden; isolation: isolate;
  color: #fff;
  background: linear-gradient(180deg, var(--noche) 0%, #123552 70%, #2a6285 100%);
  padding: 1.6rem 0 clamp(5rem, 3rem + 6vw, 7.5rem);
  margin-bottom: -1.2rem;
}
.cat-cab::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; pointer-events: none;
  height: clamp(70px, 9vw, 130px);
  background: var(--montanas) no-repeat 0 0 / 100% 100%;
}
.cat-cab__cuerpo { position: relative; z-index: 2; }
.cat-cab__rejilla { display: grid; gap: 1.4rem 3rem; align-items: center; }
@media (min-width: 48rem) {
  .cat-cab__rejilla--foto { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
}
.cat-cab .miga { padding: 0; color: #b9d0df; }
.cat-cab .miga a { color: #b9d0df; }
.cat-cab h1 { color: #fff; margin: .6rem 0 .5rem; }
.cat-cab__desc { color: #d3e4ef; font-size: 1.1rem; max-width: 46ch; margin: 0 0 1rem; }
.cat-cab__datos { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.cat-cab__chip {
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); color: #fff;
  border-radius: 99px; padding: .25rem .8rem; font-size: .9rem; font-weight: 500;
}
.cat-tarjeta {
  display: none; margin: 0; line-height: 0; overflow: hidden;
  border: 3px solid rgba(255,255,255,.85); border-radius: var(--radio);
  box-shadow: 0 16px 36px rgba(0,0,0,.4); transform: rotate(1.6deg);
}
.cat-tarjeta img { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 622; object-fit: cover; }
@media (min-width: 48rem) { .cat-tarjeta { display: block; } }

.puertas {
  display: grid; gap: 1.2rem;
  margin: 1.6rem 0 3rem;
  position: relative; z-index: 1;
}
@media (min-width: 48rem) { .puertas { grid-template-columns: repeat(3, 1fr); margin-top: -2.5rem; } }

.puerta {
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  box-shadow: var(--sombra);
}
.puerta:hover { border-color: var(--azul-500); color: inherit; }
.puerta__foto {
  flex: none;
  background: #fff;
  padding: 1rem;
  display: block;
  border-bottom: 1px solid var(--borde);
}
.puerta__foto img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: contain; }
.puerta__foto--portada { padding: 0; background: var(--azul-100); border-bottom: 0; }
.puerta__foto--portada img { aspect-ratio: 1000 / 622; object-fit: cover; }
.puerta__cuerpo { padding: 1.1rem 1.2rem 1.3rem; }
.puerta h2 { margin-bottom: .25rem; font-size: 1.3rem; }
.puerta p { color: var(--gris); font-size: .95rem; }
.puerta__pie {
  margin-top: .8rem; font-weight: 700; color: var(--azul-700); font-size: .95rem;
}

.seccion { padding: 0 0 3rem; }
.seccion__cabeza {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .5rem 1rem; margin-bottom: 1.2rem;
}
.seccion__cabeza p { color: var(--gris); margin: 0; }

/* ---------- rejilla de productos ------------------------------------- */

.rejilla {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.tarjeta {
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.tarjeta:hover { border-color: var(--azul-500); }

.tarjeta__foto {
  flex: none;
  background: #fff;
  padding: .9rem;
  display: block;
}
.tarjeta__foto img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }

.tarjeta__cuerpo {
  padding: .3rem .9rem 1rem;
  display: flex; flex-direction: column; gap: .35rem; flex: 1;
}
.tarjeta__nombre {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500; font-size: 1.02rem; line-height: 1.25;
  margin: 0;
}
.tarjeta__nombre a { color: inherit; text-decoration: none; }
.tarjeta__nombre a:hover { text-decoration: underline; }
.tarjeta__dato { font-size: .83rem; color: var(--gris); margin: 0; }
.tarjeta__fila {
  margin-top: auto; padding-top: .6rem;
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.precio {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700; font-size: 1.3rem;
  white-space: nowrap;
}

.etiqueta {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 99px;
  background: var(--azul-100); color: var(--azul-700);
}
.etiqueta--rifa  { background: #faf0d6; color: var(--ambar-oscuro); }
.etiqueta--frio  { background: #dceaf6; color: #1d5a82; }
.etiqueta--aviso { background: #f3e8e5; color: var(--granate); }

/* ---------- botones --------------------------------------------------- */

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: 700 .95rem/1 Karla, system-ui, sans-serif;
  padding: .7rem 1.1rem;
  border-radius: var(--radio-s);
  border: 1px solid var(--azul-700);
  background: var(--azul-700);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s ease-in-out;
}
.boton:hover { background: var(--azul-500); border-color: var(--azul-500); color: #fff; }
.boton:disabled { opacity: .5; cursor: not-allowed; }

.boton--suave {
  background: transparent; color: var(--azul-700); border-color: var(--borde);
}
.boton--suave:hover { background: var(--azul-100); color: var(--azul-900); border-color: var(--azul-500); }

.boton--ambar { background: var(--ambar); border-color: var(--ambar); color: #231a00; }
.boton--ambar:hover { background: #e8b434; border-color: #e8b434; color: #231a00; }

.boton--peligro { background: transparent; border-color: var(--granate); color: var(--granate); }
.boton--peligro:hover { background: var(--granate); color: #fff; }

.boton--ancho { width: 100%; }
.boton--pequeno { padding: .4rem .7rem; font-size: .85rem; }

/* ---------- filtros --------------------------------------------------- */

.disposicion {
  display: grid; gap: 1.5rem;
  padding: 1.8rem 0 3rem;
  grid-template-columns: minmax(0, 1fr);
}
.disposicion > * { min-width: 0; }
@media (min-width: 60rem) {
  .disposicion { grid-template-columns: 15rem 1fr; align-items: start; }
}

.filtros {
  background: var(--papel);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 1.1rem;
}
.filtros h2 { font-size: 1rem; margin-bottom: .8rem; }
.filtros fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; }
.filtros legend {
  font-weight: 700; font-size: .83rem; padding: 0; margin-bottom: .4rem;
  color: var(--gris);
}
.filtros label { display: block; font-size: .92rem; padding: .18rem 0; }
.filtros input[type="radio"] { margin-right: .4rem; }

/* Móvil: el cuadro se pliega y se abre con el botón (solo si hay JavaScript) */
.filtros__boton { display: none; }
@media (max-width: 47.99rem) {
  .js .filtros__boton {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    width: 100%; padding: 0; margin: 0;
    background: none; border: 0; color: var(--tinta);
    font: inherit; font-weight: 700; font-size: 1rem; text-align: left; cursor: pointer;
  }
  .js .filtros { padding: .8rem 1.1rem; }
  .js .filtros__boton svg { flex: none; transition: transform .18s; }
  .js .filtros--abierto .filtros__boton svg { transform: rotate(180deg); }
  .js .filtros__cuerpo { display: none; padding-top: .9rem; }
  .js .filtros--abierto .filtros__cuerpo { display: block; }
  .js .filtros__cuerpo > h2 { display: none; }
  .filtros__n {
    display: inline-block; min-width: 1.4rem; padding: 0 .4rem; margin-left: .3rem;
    border-radius: 999px; background: var(--azul-700); color: #fff;
    font-size: .8rem; line-height: 1.4rem; text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) { .filtros__boton svg { transition: none; } }

.campo { display: block; margin-bottom: 1rem; }
.campo > span {
  display: block; font-weight: 700; font-size: .88rem; margin-bottom: .25rem;
}
.campo__pista { font-weight: 400; color: var(--gris); font-size: .84rem; }

input[type="text"], input[type="search"], input[type="email"], input[type="tel"],
input[type="number"], input[type="password"], input[type="date"], select, textarea {
  width: 100%;
  font: inherit;
  padding: .55rem .65rem;
  border: 1px solid var(--borde);
  border-radius: var(--radio-s);
  background: #fff;
  color: inherit;
}
textarea { min-height: 5.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--azul-500); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--granate); background: #fdf5f3; }

.barra-orden {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  justify-content: space-between; margin-bottom: 1rem;
}
.barra-orden form { display: flex; gap: .5rem; align-items: center; }
.barra-orden select { width: auto; }

/* ---------- ficha de producto ---------------------------------------- */

.miga { font-size: .88rem; color: var(--gris); padding: 1rem 0 0; }
.miga a { color: var(--gris); }

.ficha {
  display: grid; gap: 1.8rem;
  padding: 1.2rem 0 3rem;
}
@media (min-width: 56rem) {
  .ficha { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
}
.ficha__foto {
  background: var(--papel); border: 1px solid var(--borde);
  border-radius: var(--radio); padding: 1.5rem;
  display: grid; place-items: center;
}
.ficha__foto img { max-height: 28rem; object-fit: contain; }

.ficha h1 { margin-bottom: .2rem; }
.ficha__proveedor { color: var(--gris); margin-bottom: 1rem; }
.ficha__precio {
  font-family: Fraunces, Georgia, serif; font-weight: 700;
  font-size: 2.2rem; line-height: 1; margin: 0 0 1rem;
}

/* sellos del proveedor en la ficha */
.sellos {
  display: flex; flex-wrap: wrap; gap: 1rem 1.6rem;
  list-style: none; margin: 0 0 1.3rem; padding: 0;
}
.sellos li {
  display: flex; align-items: center; gap: .55rem;
  font-size: .86rem; line-height: 1.25; color: var(--gris); font-weight: 500;
  max-width: 13rem;
}
.sellos img { width: 58px; height: 58px; flex: none; }

.variantes { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.variantes a {
  display: inline-block; padding: .35rem .7rem;
  border: 1px solid var(--borde); border-radius: 99px;
  text-decoration: none; font-size: .9rem; background: #fff;
}
.variantes a { display: inline-flex; align-items: center; gap: .4rem; }
.variantes a[aria-current="true"] { border-color: var(--azul-700); background: var(--azul-100); font-weight: 700; }
.nota-color {
  margin: -.7rem 0 1.2rem;
  font-size: .86rem;
  color: var(--gris);
  max-width: 44ch;
}
.tono {
  width: 1rem; height: 1rem; border-radius: 50%;
  background: var(--tono);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.18);
}

.datos { margin: 1.4rem 0; border-top: 1px solid var(--borde); }
.datos div {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem 1rem;
  padding: .55rem 0; border-bottom: 1px solid var(--borde); font-size: .93rem;
}
.datos dt { font-weight: 700; color: var(--gris); margin: 0; }
.datos dd { margin: 0; }
@media (max-width: 30rem) { .datos div { grid-template-columns: 1fr; gap: .1rem; } }

.anadir {
  display: flex; flex-wrap: wrap; gap: .7rem; align-items: center;
  background: var(--papel); border: 1px solid var(--borde);
  border-radius: var(--radio); padding: 1rem;
}

.contador { display: inline-flex; align-items: center; border: 1px solid var(--borde); border-radius: var(--radio-s); overflow: hidden; background: #fff; }
.contador button {
  width: 2.4rem; height: 2.6rem; border: 0; background: #fff; cursor: pointer;
  font-size: 1.2rem; line-height: 1; color: var(--azul-700);
}
.contador button:hover { background: var(--azul-100); }
.contador input {
  width: 3rem; height: 2.6rem; border: 0; border-inline: 1px solid var(--borde);
  text-align: center; font: 700 1rem Karla, sans-serif; border-radius: 0;
  -moz-appearance: textfield;
}
.contador input::-webkit-outer-spin-button,
.contador input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- tablas ---------------------------------------------------- */

.tabla-caja {
  background: var(--papel); border: 1px solid var(--borde);
  border-radius: var(--radio); overflow: auto;
}
table.tabla { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: .94rem; }
.tabla th, .tabla td { padding: .7rem .8rem; text-align: left; border-bottom: 1px solid var(--borde); vertical-align: middle; }
.tabla thead th {
  background: #f4f7f4; font-size: .82rem; color: var(--gris);
  position: sticky; top: 0; z-index: 1;
}
.tabla tbody tr:last-child td { border-bottom: 0; }
.tabla .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabla__mini { width: 52px; }
.tabla__mini img { width: 52px; height: 52px; object-fit: contain; }
.tabla__mini + td { min-width: 11rem; }

/* ---------- carrito y resumen ---------------------------------------- */

.dos-columnas { display: grid; gap: 1.5rem; padding: 1.5rem 0 3rem; grid-template-columns: minmax(0, 1fr); }
.dos-columnas > * { min-width: 0; }
@media (min-width: 58rem) {
  .dos-columnas { grid-template-columns: minmax(0, 1fr) 20rem; align-items: start; }
}

.resumen {
  background: var(--papel); border: 1px solid var(--borde);
  border-radius: var(--radio); padding: 1.2rem;
  position: sticky; top: 5.5rem;
}
.resumen h2 { font-size: 1.15rem; }
.resumen dl { margin: 0 0 1rem; }
.resumen dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.resumen dt { color: var(--gris); }
.resumen dd { margin: 0; font-variant-numeric: tabular-nums; }
.resumen .total { border-top: 1px solid var(--borde); margin-top: .4rem; padding-top: .6rem; font-size: 1.15rem; }
.resumen .total dd { font-family: Fraunces, Georgia, serif; font-weight: 700; }

.vacio {
  background: var(--papel); border: 1px dashed var(--borde);
  border-radius: var(--radio); padding: 2.5rem 1.5rem; text-align: center;
}
.vacio h2 { margin-bottom: .3rem; }
.vacio p { color: var(--gris); max-width: 42ch; margin-inline: auto; }

/* ---------- formularios largos --------------------------------------- */

.panel {
  background: var(--papel); border: 1px solid var(--borde);
  border-radius: var(--radio); padding: 1.3rem;
  margin-bottom: 1.2rem;
}
.panel > h2 { font-size: 1.2rem; }
.panel__pista { color: var(--gris); font-size: .93rem; margin-top: -.3rem; }

.rejilla-campos { display: grid; gap: 0 1rem; }
@media (min-width: 40rem) {
  .rejilla-campos--2 { grid-template-columns: 1fr 1fr; }
  .rejilla-campos--3 { grid-template-columns: 1fr 1fr 1fr; }
}

.casilla {
  display: grid; grid-template-columns: auto 1fr; gap: .6rem;
  align-items: start; font-size: .93rem;
}
.casilla input { margin-top: .25rem; }

.errores {
  background: #f8e5e1; border-left: 4px solid var(--granate);
  border-radius: var(--radio-s); padding: .9rem 1rem; margin-bottom: 1.2rem;
}
.errores h2 { font-size: 1rem; margin-bottom: .3rem; color: var(--granate); }
.errores ul { margin: 0; padding-left: 1.1rem; }

/* ---------- confirmación --------------------------------------------- */

.recibo {
  background: var(--papel); border: 1px solid var(--borde);
  border-radius: var(--radio); padding: 2rem 1.5rem; text-align: center;
  margin: 2rem 0;
}
.recibo__correo { text-align: left; margin: 1.2rem 0 0; font-size: .95rem; }
.recibo__codigo {
  font-family: Fraunces, Georgia, serif; font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 3vw, 3rem); letter-spacing: .04em;
  color: var(--azul-900); margin: .3rem 0 .6rem;
}

.pasos { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .6rem; text-align: left; }
.pasos li {
  display: grid; grid-template-columns: 1.7rem 1fr; gap: .7rem; align-items: start;
}
.pasos b {
  display: grid; place-items: center;
  width: 1.7rem; height: 1.7rem; border-radius: 99px;
  background: var(--azul-100); color: var(--azul-700); font-size: .85rem;
}

/* ---------- estados de pedido ---------------------------------------- */

.estado {
  display: inline-block; white-space: nowrap;
  font-size: .78rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 99px;
  border: 1px solid transparent;
}
.estado--pendidente,
.estado--pendiente        { background: #faf0d6; color: var(--ambar-oscuro); }
.estado--confirmado       { background: #dceaf6; color: #1d5a82; }
.estado--pedido_proveedor { background: #e6e2f5; color: #4b3f87; }
.estado--recibido         { background: #dce8e2; color: #1b5346; }
.estado--entregado        { background: #1b5346; color: #fff; }
.estado--anulado          { background: #eceae9; color: #6a6460; text-decoration: line-through; }

/* ---------- pie ------------------------------------------------------- */

.pie {
  background: var(--noche); color: #c4d6e3;
  margin-top: 2rem; padding: 2.5rem 0 1.5rem;
  border-top: 1px solid rgba(255,255,255,.07);
  font-size: .93rem;
}
.pie a { color: #fff; }
.pie__rejilla { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .pie__rejilla { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.pie__titulo { font-size: 1rem; color: #fff; margin-bottom: .4rem; }
.pie__legal {
  margin-top: 2rem; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem;
  font-size: .85rem; color: #8fb0c4;
}
.pie__legal p { margin: 0; }

/* ---------- panel de gestión ----------------------------------------- */

.admin-cabecera { background: #16201d; }
.admin-cabecera .marca small { color: #9aa8a3; }
.admin-cabecera .menu a { color: #cdd6d3; }
.admin-cabecera .menu a[aria-current="page"] { color: var(--azul-900); background: #fff; }

.admin-barra {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: end;
  background: var(--papel); border: 1px solid var(--borde);
  border-radius: var(--radio); padding: 1rem; margin-bottom: 1.2rem;
}
.admin-barra .campo { margin-bottom: 0; }
.admin-barra select, .admin-barra input { width: auto; min-width: 9rem; }

.fichas-resumen {
  display: grid; gap: 1rem; margin-bottom: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
}
.ficha-dato {
  background: var(--papel); border: 1px solid var(--borde);
  border-radius: var(--radio); padding: .9rem 1rem;
}
.ficha-dato b {
  display: block; font-family: Fraunces, Georgia, serif;
  font-size: 1.6rem; line-height: 1.1;
}
.ficha-dato span { font-size: .85rem; color: var(--gris); }

.entrar {
  max-width: 24rem; margin: 4rem auto; padding: 1.8rem;
  background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio);
}

.historial { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.historial li { padding: .5rem 0; border-bottom: 1px dashed var(--borde); }
.historial li:last-child { border-bottom: 0; }
.historial time { color: var(--gris); }

.imprimir-solo { display: none; }

@media print {
  .cabecera, .pie, .admin-barra, .boton, .no-imprimir { display: none !important; }
  body { background: #fff; }
  .imprimir-solo { display: block; }
  .tabla-caja, .panel { border: 0; }
}

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