/* ============================================================
   Morpho Blue — Sistema visual
   ------------------------------------------------------------
   Reglas del sistema (respetarlas al editar):
   · UN acento: el azul morpho. Rosa/verde SOLO como semántica
     (oferta / éxito / error), nunca como decoración.
   · Radios: pill para botones · 16px tarjetas · 10px inputs.
   · Animar sólo transform y opacity. Nada supera los 300ms.
   ============================================================ */

/* ---------- Tokens ---------------------------------------- */
:root {
  /* Azul morpho — el color de marca */
  --azul-900: #0A1F5C;
  --azul-700: #14349E;
  --azul-600: #1B47D6;
  --azul-500: #2B5CF0;
  --azul-100: #E4EBFF;
  --azul-050: #F2F5FF;

  /* Neutros fríos, en sintonía con el azul */
  --tinta:     #0E1524;
  --tinta-70:  #414D63;
  --tinta-50:  #667187;
  --borde:     #E2E8F2;
  --papel:     #FBFCFE;
  --blanco:    #FFFFFF;

  /* Semánticos */
  --oferta:  #D22A5F;
  --exito:   #0E8A5F;
  --error:   #C42B33;

  /* Radios */
  --r-card:  16px;
  --r-input: 10px;
  --r-pill:  999px;

  /* Sombras tintadas en el tono del fondo, nunca negro puro */
  --sombra-sm: 0 1px 2px rgba(14, 21, 36, .05);
  --sombra-md: 0 4px 16px -4px rgba(14, 21, 36, .10);
  --sombra-lg: 0 18px 48px -12px rgba(14, 21, 36, .18);

  /* Curvas fuertes: las nativas de CSS son demasiado débiles */
  --ease-out:    cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  --ancho: 1240px;
}

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

/* `hidden` tiene que ganarle a display:flex/grid de las tarjetas */
[hidden] { display: none !important; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

img { max-width: 100%; display: block; }
a   { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }

.contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin-inline: auto;
  padding-inline: 20px;
}

.visualmente-oculto {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ==========================================================
   HEADER
   ========================================================== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 252, 254, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--borde);
}
@supports not (backdrop-filter: blur(1px)) {
  .header { background: var(--papel); }
}

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}

.marca {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 19px;
  letter-spacing: -.02em; text-decoration: none;
}
.marca__logo {
  width: 34px; height: 34px; border-radius: 10px; object-fit: cover;
  background: linear-gradient(135deg, var(--azul-500), var(--azul-900));
  flex-shrink: 0;
}

/* Botón del carrito ---------------------------------------- */
.btn-carrito {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 0; border-radius: var(--r-pill);
  background: var(--tinta); color: #fff;
  font-weight: 500; font-size: 14.5px; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.btn-carrito:hover  { background: var(--azul-700); }
.btn-carrito:active { transform: scale(.97); }

.btn-carrito__num {
  min-width: 21px; height: 21px; padding: 0 6px;
  display: inline-grid; place-items: center;
  background: var(--azul-500); color: #fff;
  border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: transform 200ms var(--ease-out);
}
.btn-carrito__num[data-vacio="1"] { display: none; }
.btn-carrito__num.late { transform: scale(1.28); }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative; overflow: hidden;
  background: var(--azul-900);
  color: #fff;
}

/* Ala de morpho: capas de azul iridiscente. Se usa cuando no hay
   banner cargado desde el admin. */
.hero__fondo {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 12% 10%,  #3E7BFF 0%, transparent 55%),
    radial-gradient(90%  80% at 88% 22%,  #1B47D6 0%, transparent 60%),
    radial-gradient(110% 90% at 55% 105%, #071640 0%, transparent 70%),
    linear-gradient(160deg, #12318F 0%, #0A1F5C 100%);
}
/* Grano sutil: evita el degradado plástico */
.hero__fondo::after {
  content: ''; position: absolute; inset: 0; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

.hero__banner {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero__banner + .hero__velo {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(7,22,64,.88) 0%, rgba(7,22,64,.55) 55%, rgba(7,22,64,.30) 100%);
}

.hero__inner {
  position: relative;
  padding-block: clamp(56px, 9vw, 96px);
  max-width: 660px;
}

.hero__eyebrow {
  display: inline-block; margin-bottom: 18px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px; font-weight: 500; color: #DDE6FF;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.5rem);
  font-weight: 600; letter-spacing: -.03em;
  margin-bottom: 16px;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: #C9D6FF; max-width: 48ch; margin: 0 0 30px;
}

.hero__acciones { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================================================
   BOTONES
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border: 1px solid transparent; border-radius: var(--r-pill);
  font-weight: 500; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(.97); }

.btn--primario  { background: var(--azul-500); color: #fff; }
.btn--primario:hover { background: var(--azul-600); }

.btn--claro     { background: #fff; color: var(--azul-900); }
.btn--claro:hover { background: #EEF3FF; }

.btn--fantasma  { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn--fantasma:hover { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.55); }

.btn--wsp       { background: #1FA855; color: #fff; }
.btn--wsp:hover { background: #17924A; }

.btn--borde     { background: #fff; color: var(--tinta); border-color: var(--borde); }
.btn--borde:hover { border-color: var(--tinta-50); }

.btn--bloque    { width: 100%; }
.btn[disabled]  { opacity: .5; cursor: not-allowed; transform: none; }

/* ==========================================================
   SOBRE MÍ
   ========================================================== */
.sobre {
  padding-block: clamp(44px, 6vw, 68px);
  border-bottom: 1px solid var(--borde);
}
.sobre__grid {
  display: grid; gap: 28px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 860px) {
  .sobre__grid { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; }
}
.sobre h2 { font-size: 1.6rem; }
.sobre p  { color: var(--tinta-70); font-size: 1.05rem; max-width: 62ch; margin: 0; }

/* ==========================================================
   BARRA DE PRODUCTOS (buscador + categorías)
   ========================================================== */
.productos { padding-block: clamp(40px, 5vw, 60px); }

.barra {
  position: sticky; top: 68px; z-index: 30;
  padding-block: 16px; margin-bottom: 12px;
  background: rgba(251, 252, 254, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}

.barra__fila {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}

.buscador { position: relative; flex: 1 1 260px; max-width: 380px; }
.buscador svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--tinta-50); pointer-events: none;
}
.buscador input {
  width: 100%; padding: 11px 14px 11px 42px;
  border: 1px solid var(--borde); border-radius: var(--r-pill);
  background: #fff; font-size: 15px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.buscador input::placeholder { color: var(--tinta-50); }
.buscador input:focus {
  outline: none; border-color: var(--azul-500);
  box-shadow: 0 0 0 3px var(--azul-100);
}

.chips {
  display: flex; gap: 8px; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex-shrink: 0; padding: 9px 17px;
  border: 1px solid var(--borde); border-radius: var(--r-pill);
  background: #fff; color: var(--tinta-70);
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 180ms ease,
              color 180ms ease, border-color 180ms ease;
}
.chip:hover  { border-color: var(--tinta-50); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] {
  background: var(--tinta); border-color: var(--tinta); color: #fff;
}

/* ==========================================================
   GRILLA DE PRODUCTOS
   ========================================================== */
.grupo { margin-top: 40px; }

.grupo__titulo {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px;
}
.grupo__titulo h2 { font-size: 1.45rem; }
.grupo__titulo span {
  font-size: 13px; font-weight: 600; color: var(--tinta-50);
  font-variant-numeric: tabular-nums;
}

.grilla {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

/* --- Tarjeta ---------------------------------------------- */
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--borde);
  border-radius: var(--r-card); overflow: hidden;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out),
              border-color 220ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sombra-md);
    border-color: #CBD7EA;
  }
}

.card__figura {
  position: relative; aspect-ratio: 4 / 3;
  background: var(--azul-050); overflow: hidden;
}
.card__figura img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__figura img { transform: scale(1.04); }
}

/* Marcador cuando todavía no hay foto cargada */
.card__sinfoto {
  position: absolute; inset: 0;
  display: grid; place-items: center; gap: 6px;
  color: var(--azul-600); opacity: .45;
  background:
    linear-gradient(135deg, var(--azul-050) 0%, var(--azul-100) 100%);
}
.card__sinfoto span { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

.card__badges {
  position: absolute; top: 10px; left: 10px; right: 10px;
  display: flex; justify-content: space-between; gap: 8px; pointer-events: none;
}
.badge {
  padding: 5px 11px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 600; letter-spacing: .01em;
  backdrop-filter: blur(6px);
}
.badge--combo  { background: rgba(14, 21, 36, .82); color: #fff; }
.badge--oferta { background: var(--oferta); color: #fff; margin-left: auto; }

.card__cuerpo {
  display: flex; flex-direction: column; flex: 1;
  padding: 15px 16px 16px; gap: 7px;
}
.card__cat {
  font-size: 11.5px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--tinta-50);
}
.card__nombre { font-size: 1.02rem; font-weight: 600; line-height: 1.3; }

.card__desc {
  font-size: 13.5px; color: var(--tinta-70); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin: 0;
}

.card__incluye {
  margin: 0; padding: 0; list-style: none;
  font-size: 13px; color: var(--tinta-70);
}
.card__incluye dt {
  font-weight: 600; color: var(--tinta); font-size: 12px;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px;
}
.card__incluye dd { margin: 0; }
.card__incluye b { font-variant-numeric: tabular-nums; }

.card__precios {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
  margin-top: auto; padding-top: 10px;
}
.precio-final {
  font-family: 'Outfit', sans-serif; font-size: 1.3rem; font-weight: 600;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.precio-lista {
  font-size: .92rem; color: var(--tinta-50);
  text-decoration: line-through; font-variant-numeric: tabular-nums;
}

.card__add {
  margin-top: 12px; width: 100%;
  padding: 11px 16px; border: 0; border-radius: var(--r-pill);
  background: var(--azul-050); color: var(--azul-700);
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}
.card__add:hover  { background: var(--azul-500); color: #fff; }
.card__add:active { transform: scale(.97); }
.card__add.ok     { background: var(--exito); color: #fff; }

/* Sin resultados de búsqueda */
.vacio {
  padding: 60px 20px; text-align: center; color: var(--tinta-50);
}
.vacio h3 { font-size: 1.2rem; color: var(--tinta); margin-bottom: 6px; }

/* ==========================================================
   CARRITO (panel lateral)
   ========================================================== */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(10, 20, 45, .45);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity 260ms var(--ease-out), visibility 260ms;
}
.overlay[data-abierto="1"] { opacity: 1; visibility: visible; }

.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(430px, 100%);
  display: flex; flex-direction: column;
  background: var(--papel);
  box-shadow: var(--sombra-lg);
  transform: translateX(100%);
  transition: transform 320ms var(--ease-out);
}
.panel[data-abierto="1"] { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
  .panel, .overlay { transition-duration: .01ms; }
}

.panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border-bottom: 1px solid var(--borde);
}
.panel__head h2 { font-size: 1.15rem; }

.panel__cerrar {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent;
  color: var(--tinta-70); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 180ms ease;
}
.panel__cerrar:hover  { background: var(--azul-050); }
.panel__cerrar:active { transform: scale(.94); }

.panel__body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.panel__foot {
  padding: 18px 20px 22px; border-top: 1px solid var(--borde);
  background: #fff;
}

/* --- Línea del carrito ------------------------------------ */
.linea {
  display: grid; grid-template-columns: 62px minmax(0,1fr) auto;
  gap: 13px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--borde);
}
.linea:last-child { border-bottom: 0; }

.linea__foto {
  width: 62px; height: 62px; border-radius: 11px; object-fit: cover;
  background: var(--azul-050); flex-shrink: 0;
}
.linea__nombre { font-size: 14.5px; font-weight: 600; line-height: 1.32; }
.linea__unit   { font-size: 12.5px; color: var(--tinta-50); }
.linea__sub    { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.qty {
  display: inline-flex; align-items: center; gap: 2px; margin-top: 7px;
  border: 1px solid var(--borde); border-radius: var(--r-pill);
  background: #fff; overflow: hidden;
}
.qty button {
  width: 30px; height: 30px; border: 0; background: transparent;
  color: var(--tinta-70); font-size: 17px; line-height: 1; cursor: pointer;
  transition: background-color 160ms ease;
}
.qty button:hover { background: var(--azul-050); color: var(--azul-700); }
.qty span {
  min-width: 26px; text-align: center;
  font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}

.total-fila {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 14px;
}
.total-fila span { color: var(--tinta-70); }
.total-fila strong {
  font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 600;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}

.panel__vacio {
  display: grid; place-items: center; gap: 10px;
  padding: 70px 20px; text-align: center; color: var(--tinta-50);
}

.nota-mini {
  font-size: 12.5px; color: var(--tinta-50);
  text-align: center; margin: 10px 0 0;
}

/* ==========================================================
   PÁGINAS INTERNAS (checkout / resultado)
   ========================================================== */
.pagina { padding-block: clamp(36px, 5vw, 56px); min-height: 60vh; }

.pagina__head { margin-bottom: 28px; }
.pagina__head h1 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); margin-bottom: 8px; }
.pagina__head p  { color: var(--tinta-70); margin: 0; }

.columnas {
  display: grid; gap: 28px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 900px) {
  .columnas { grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 36px; }
}

.tarjeta {
  background: #fff; border: 1px solid var(--borde);
  border-radius: var(--r-card); padding: 24px;
}
.tarjeta h2 { font-size: 1.15rem; margin-bottom: 16px; }

.resumen { position: sticky; top: 88px; }

/* --- Formularios ------------------------------------------ */
.campo { margin-bottom: 16px; }
.campo label {
  display: block; margin-bottom: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--tinta);
}
.campo input, .campo textarea, .campo select {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--borde); border-radius: var(--r-input);
  background: #fff; font-size: 15px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.campo input::placeholder, .campo textarea::placeholder { color: #96A0B4; }
.campo input:focus, .campo textarea:focus, .campo select:focus {
  outline: none; border-color: var(--azul-500);
  box-shadow: 0 0 0 3px var(--azul-100);
}
.campo textarea { resize: vertical; min-height: 88px; }
.campo__ayuda { font-size: 12.5px; color: var(--tinta-50); margin-top: 5px; }
.campo__error { font-size: 13px; color: var(--error); margin-top: 5px; font-weight: 500; }
.campo input[aria-invalid="true"], .campo textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.fila-2 { display: grid; gap: 0 16px; grid-template-columns: minmax(0,1fr); }
@media (min-width: 560px) { .fila-2 { grid-template-columns: 1fr 1fr; } }

/* --- Selector de método de pago --------------------------- */
.metodo {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 16px; margin-bottom: 12px;
  border: 1.5px solid var(--borde); border-radius: var(--r-card);
  background: #fff; cursor: pointer;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.metodo:hover { border-color: #B9C7DE; }
.metodo:has(input:checked) { border-color: var(--azul-500); background: var(--azul-050); }
.metodo input { margin-top: 3px; accent-color: var(--azul-500); width: 17px; height: 17px; flex-shrink: 0; }
.metodo__t { font-weight: 600; font-size: 15px; display: block; margin-bottom: 2px; }
.metodo__d { font-size: 13.5px; color: var(--tinta-70); }

/* --- Avisos ----------------------------------------------- */
.aviso {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-input);
  font-size: 14px; line-height: 1.5; margin-bottom: 20px;
}
.aviso--info  { background: var(--azul-050);  color: var(--azul-900); border: 1px solid var(--azul-100); }
.aviso--error { background: #FDF0F0;          color: #8A1F26;         border: 1px solid #F5D4D6; }
.aviso--ok    { background: #EBF8F2;          color: #0A6647;         border: 1px solid #C9EBDC; }
.aviso--warn  { background: #FFF8E8;          color: #7A5610;         border: 1px solid #F5E3BC; }
.aviso strong { display: block; margin-bottom: 2px; }

/* --- Resultado del pago ----------------------------------- */
.resultado { max-width: 560px; margin-inline: auto; text-align: center; padding-block: 40px; }
.resultado__icono {
  width: 76px; height: 76px; margin: 0 auto 22px;
  display: grid; place-items: center; border-radius: 50%;
}
.resultado__icono--ok   { background: #E4F6EE; color: var(--exito); }
.resultado__icono--warn { background: #FFF4DE; color: #B57D14; }
.resultado__icono--err  { background: #FDECEC; color: var(--error); }
.resultado h1 { font-size: 1.85rem; margin-bottom: 10px; }
.resultado p  { color: var(--tinta-70); margin: 0 0 8px; }
.resultado__codigo {
  display: inline-block; margin: 18px 0 24px; padding: 9px 18px;
  background: #fff; border: 1px dashed var(--borde); border-radius: var(--r-input);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 15px; font-weight: 600; letter-spacing: .05em;
}
.resultado__acciones { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* --- Tabla resumen ---------------------------------------- */
.lista-resumen { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.lista-resumen__item {
  display: flex; justify-content: space-between; gap: 14px;
  font-size: 14.5px; align-items: baseline;
}
.lista-resumen__item span:first-child { color: var(--tinta-70); }
.lista-resumen__item b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lista-resumen__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 15px; border-top: 1px solid var(--borde);
}
.lista-resumen__total b {
  font-family: 'Outfit', sans-serif; font-size: 1.4rem; font-weight: 600;
  letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}

/* ==========================================================
   ENVÍOS Y CUPONES
   ========================================================== */

/* --- Barra de incentivo "te falta X para envío gratis" ---- */
.incentivo {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 13px; margin-bottom: 12px;
  border-radius: var(--r-input);
  background: var(--azul-050); border: 1px solid var(--azul-100);
  color: var(--azul-900); font-size: 13px; line-height: 1.4;
}
.incentivo svg { flex-shrink: 0; color: var(--azul-600); }
.incentivo b   { font-weight: 600; font-variant-numeric: tabular-nums; }
.incentivo--ok {
  background: #EBF8F2; border-color: #C9EBDC; color: #0A6647;
}

/* --- Mini desglose dentro del panel del carrito ------------ */
.mini-lineas { margin-bottom: 10px; }
.mini-linea {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 13.5px; color: var(--tinta-70); padding: 3px 0;
  font-variant-numeric: tabular-nums;
}
.mini-linea--desc { color: var(--oferta); font-weight: 600; }
.mini-linea code {
  font-size: 11.5px; padding: 1px 6px; border-radius: 5px;
  background: var(--azul-050); color: var(--azul-700);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

/* --- Precio del método de envío --------------------------- */
.metodo__precio { float: right; font-variant-numeric: tabular-nums; }
.metodo__d em   { color: var(--azul-600); font-style: normal; font-size: 12.5px; }

.gratis { color: var(--exito); font-weight: 600; }

/* --- Bloque de cupón -------------------------------------- */
.cupon {
  margin: 18px 0; padding: 16px 0;
  border-top: 1px solid var(--borde); border-bottom: 1px solid var(--borde);
}
.cupon__label {
  display: block; margin-bottom: 8px;
  font-size: 13.5px; font-weight: 600;
}
.cupon__fila { display: flex; gap: 8px; }
.cupon__fila input {
  flex: 1; min-width: 0; padding: 10px 13px;
  border: 1px solid var(--borde); border-radius: var(--r-input);
  background: #fff; font-size: 14.5px;
  text-transform: uppercase; letter-spacing: .04em;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.cupon__fila input::placeholder { text-transform: none; letter-spacing: normal; }
.cupon__fila input:focus {
  outline: none; border-color: var(--azul-500);
  box-shadow: 0 0 0 3px var(--azul-100);
}
.cupon__fila .btn { padding-inline: 18px; white-space: nowrap; }

.cupon__error {
  margin: 8px 0 0; font-size: 13px; color: var(--error); font-weight: 500;
}

.cupon__ok {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; border-radius: var(--r-input);
  background: #EBF8F2; border: 1px solid #C9EBDC; color: #0A6647;
  font-size: 14px;
}
.cupon__ok b     { font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .03em; }
.cupon__ok small { display: block; font-size: 12.5px; opacity: .85; margin-top: 2px; }
.cupon__quitar {
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(10, 102, 71, .12); color: #0A6647;
  font-size: 16px; line-height: 1;
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.cupon__quitar:hover  { background: rgba(10, 102, 71, .22); }
.cupon__quitar:active { transform: scale(.9); }

/* --- Desglose de totales ---------------------------------- */
.totales { margin-bottom: 4px; }
.totales__fila {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 5px 0; font-size: 14.5px; color: var(--tinta-70);
}
.totales__fila b     { font-variant-numeric: tabular-nums; color: var(--tinta); white-space: nowrap; }
.totales__fila small { display: block; font-size: 12px; color: var(--tinta-50); }
.totales__fila--desc, .totales__fila--desc b { color: var(--oferta); }

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  margin-top: 56px; padding-block: 36px;
  border-top: 1px solid var(--borde); background: #fff;
}
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--tinta-50);
}
.footer a { color: var(--tinta-70); text-decoration: none; }
.footer a:hover { color: var(--azul-600); text-decoration: underline; }

/* ==========================================================
   FOCO VISIBLE — accesibilidad
   ========================================================== */
:focus-visible {
  outline: 2.5px solid var(--azul-500);
  outline-offset: 2px;
  border-radius: 4px;
}
.hero :focus-visible { outline-color: #fff; }

/* Botón flotante de WhatsApp ------------------------------- */
.wsp-flotante {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 54px; height: 54px; display: grid; place-items: center;
  background: #1FA855; color: #fff; border-radius: 50%;
  box-shadow: var(--sombra-md); text-decoration: none;
  transition: transform 200ms var(--ease-out);
}
.wsp-flotante:hover  { transform: translateY(-2px) scale(1.04); }
.wsp-flotante:active { transform: scale(.95); }
@media (max-width: 600px) {
  .wsp-flotante { right: 14px; bottom: 14px; width: 50px; height: 50px; }
}
