/* ============================================================
   Base: reset, tipografía, componentes compartidos
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--ff-ui);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
dl,
dd {
  margin: 0;
}
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 100;
  background: var(--c-ink);
  color: var(--c-white);
  padding: var(--sp-2) var(--sp-4);
}
.skip-link:focus {
  top: var(--sp-2);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--ff-display);
  font-weight: var(--fw-display);
  font-optical-sizing: auto;
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--c-ciruela);
}
/* Rulo ondulado debajo de un título (como un trazo a mano) */
.squiggle::after {
  content: "";
  display: block;
  width: 64px;
  height: 10px;
  margin-top: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 10'%3E%3Cpath d='M2 5c5-5 9-5 14 0s9 5 14 0 9-5 14 0 9 5 14 0' fill='none' stroke='%23a0533a' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
}
.squiggle--center::after {
  margin-inline: auto;
}
.h1 {
  font-size: var(--fs-3xl);
}
.h2 {
  font-size: var(--fs-2xl);
}
.h3 {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: 1.1;
}
.mono {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--ff-ui);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-terracota-texto);
}
.muted {
  color: var(--c-ink-3);
}
.lead {
  font-size: var(--fs-lg);
  color: var(--c-ink-2);
  max-width: 46ch;
}

/* ---------- Motivo de cinco franjas ---------- */
.stripes {
  display: flex;
  height: 8px;
  width: 100%;
}
.stripes > span {
  flex: 1;
}
.stripes > span:nth-child(1) { background: var(--c-red); }
.stripes > span:nth-child(2) { background: var(--c-orange); }
.stripes > span:nth-child(3) { background: var(--c-white); box-shadow: inset 0 1px 0 var(--c-line), inset 0 -1px 0 var(--c-line); }
.site-footer .stripes > span:nth-child(3) { box-shadow: none; }
.stripes > span:nth-child(4) { background: var(--c-pink); }
.stripes > span:nth-child(5) { background: var(--c-magenta); }

.stripe-mark {
  display: inline-grid;
  grid-template-rows: repeat(5, 1fr);
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--c-ink);
}
.stripe-mark > span:nth-child(1) { background: var(--c-red); }
.stripe-mark > span:nth-child(2) { background: var(--c-orange); }
.stripe-mark > span:nth-child(3) { background: var(--c-white); }
.stripe-mark > span:nth-child(4) { background: var(--c-pink); }
.stripe-mark > span:nth-child(5) { background: var(--c-magenta); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--c-surface);
  --btn-fg: var(--c-ciruela);
  --btn-bd: var(--c-ciruela);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: var(--tap);
  padding: 0 var(--sp-5);
  border: 2px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease),
    transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}
.btn:active {
  box-shadow: none;
  transform: none;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}
.btn--primary {
  --btn-bg: var(--c-magenta);
  --btn-fg: var(--c-white);
  --btn-bd: var(--c-magenta);
}
.btn--primary:hover {
  --btn-bg: var(--c-magenta-hover);
  --btn-bd: var(--c-magenta-hover);
}
.btn--primary:active {
  --btn-bg: var(--c-magenta-press);
}
.btn--dark {
  --btn-bg: var(--c-ink);
  --btn-fg: var(--c-white);
  --btn-bd: var(--c-ink);
}
.btn--ghost {
  --btn-bd: transparent;
  --btn-bg: transparent;
}
.btn--ghost:hover {
  --btn-bg: var(--c-surface-2);
  box-shadow: none;
  transform: none;
}
.btn--sm {
  min-height: 36px;
  padding: 0 var(--sp-3);
  font-size: var(--fs-xs);
}
.btn--block {
  width: 100%;
}
.btn--lg {
  min-height: 56px;
  padding: 0 var(--sp-6);
  font-size: var(--fs-md);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:hover {
  background: var(--c-surface-2);
}
.icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  background: transparent;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Etiquetas ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--ff-ui);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-pill);
  line-height: 1.3;
}
.tag--red { color: var(--c-ciruela); background: var(--c-surface); border-color: var(--c-surface); }
.tag--pink { color: var(--c-ciruela); background: var(--p-rosa); border-color: var(--p-rosa); }
.tag--orange { color: var(--c-ciruela); background: var(--p-durazno); border-color: var(--p-durazno); }
.tag--magenta { color: var(--c-white); background: var(--c-magenta); border-color: var(--c-magenta); }
.tag--ink { color: var(--c-ciruela); background: var(--c-surface); border-color: var(--c-surface); }
.tag--demo { color: var(--c-ink-2); background: var(--c-white); border-style: dashed; }

/* ---------- Formularios ---------- */
.field {
  display: grid;
  gap: 6px;
}
.field > label,
.field > .label,
fieldset > legend {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--c-ink-2);
  padding: 0;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 8px 12px;
  border: 1.5px solid var(--c-ink-3);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  font-size: var(--fs-md); /* >=16px evita zoom en iOS */
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--c-ink);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--c-magenta);
  box-shadow: 0 0 0 3px var(--c-magenta-tint);
}
.textarea {
  min-height: 72px;
  resize: vertical;
}
.hint {
  font-size: var(--fs-xs);
  color: var(--c-ink-3);
}

/* Muestras de color de prenda */
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.swatch {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  background: var(--sw);
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.swatch::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color var(--dur-fast) var(--ease);
}
.swatch[aria-checked="true"]::after,
.swatch[aria-pressed="true"]::after {
  border-color: var(--c-magenta);
}
.swatch:hover::after {
  border-color: var(--c-ink-3);
}
.swatch--sm {
  width: 18px;
  height: 18px;
}
.swatch--sm::after {
  display: none;
}

/* Talles */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  min-width: 52px;
  min-height: var(--tap);
  padding: 0 14px;
  border: 1.5px solid var(--c-line-strong);
  background: var(--c-surface);
  color: var(--c-ciruela);
  border-radius: var(--radius-pill);
  font-weight: 700;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.chip small {
  font-size: 0.6875rem;
  font-weight: 500;
}
.chip:hover {
  border-color: var(--c-ink);
}
.chip[aria-checked="true"],
.chip[aria-pressed="true"] {
  background: var(--c-magenta);
  border-color: var(--c-magenta);
  color: var(--c-white);
}
.chip:disabled {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* Control segmentado */
.seg {
  display: inline-flex;
  border: 1.5px solid var(--c-ciruela);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--c-white);
}
.seg button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  font-weight: 700;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.seg button + button {
  border-left: 1.5px solid var(--c-ciruela);
}
.seg button[aria-pressed="true"] {
  background: var(--c-ciruela);
  color: var(--c-white);
}
/* Cantidad */
.qty {
  display: inline-flex;
  justify-self: start;
  width: max-content;
  align-items: stretch;
  border: 1.5px solid var(--c-ciruela);
  border-radius: var(--radius-pill);
  height: var(--tap);
  overflow: hidden;
}
.qty button {
  width: var(--tap);
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  font-weight: 700;
}
.qty button:hover {
  background: var(--c-surface-2);
}
.qty button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.qty input {
  width: 3.25rem;
  border: 0;
  border-inline: 1.5px solid var(--c-line);
  text-align: center;
  font-weight: 700;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty input::-webkit-inner-spin-button,
.qty input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--c-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner {
  height: calc(var(--header-h) + 8px);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1;
}
.logo img {
  height: 30px;
  width: auto;
}
.logo small {
  font-family: var(--ff-mono);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--c-ink-3);
  align-self: flex-end;
  margin-bottom: 1px;
}
.nav {
  display: flex;
  gap: var(--sp-1);
  margin-inline: auto;
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--c-ciruela);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease);
}
.nav a:hover {
  background: var(--p-rosa-2);
}
.nav a[aria-current="page"] {
  background: var(--p-rosa);
}
/* Desplegable de colecciones en «Diseños» */
.nav__drop {
  position: relative;
  display: flex;
  align-items: center;
}
.nav__drop > a {
  padding-right: 6px;
}
.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -2px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--c-ciruela);
  cursor: pointer;
}
.nav__toggle:hover {
  background: var(--p-rosa-2);
}
.nav__toggle .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--dur-fast) var(--ease);
}
.nav__drop[data-open="true"] .nav__toggle .icon {
  transform: rotate(180deg);
}
.nav__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  display: none;
}
/* puente invisible para que el mouse llegue al menú sin que se cierre */
.nav__menu::before {
  content: "";
  position: absolute;
  inset: -8px 0 auto 0;
  height: 8px;
}
.nav__drop[data-open="true"] .nav__menu {
  display: grid;
  gap: 2px;
}
.nav__menu a {
  display: block;
  white-space: nowrap;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 var(--sp-2) 0 var(--sp-4);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--c-white);
  background: var(--c-ciruela);
  border: 2px solid var(--c-ciruela);
  border-radius: var(--radius-pill);
}
.cart-link:hover {
  background: var(--c-magenta-hover);
}
.cart-count {
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: var(--radius-pill);
  background: var(--p-rosa);
  color: var(--c-ciruela);
  font-size: 0.75rem;
  display: inline-grid;
  place-items: center;
}
.cart-count[data-empty="true"] {
  background: var(--c-surface);
  color: var(--c-ciruela);
}
.cart-count.bump {
  animation: bump 420ms var(--ease);
}
@keyframes bump {
  30% { transform: scale(1.35); background: var(--c-red); }
}
.menu-toggle {
  display: none;
}
/* Pantallas medianas: el menú entra en una línea */
@media (min-width: 761px) and (max-width: 1100px) {
  .site-header__inner { gap: var(--sp-3); }
  .logo small { display: none; }
  .nav { gap: 0; }
  .nav a { padding: 8px 9px; white-space: nowrap; }
  .nav__drop > a { padding-right: 2px; }
}
@media (min-width: 761px) and (max-width: 900px) {
  .nav a { padding: 8px 6px; font-size: 0.8125rem; }
  .cart-link .cart-label { display: none; }
  .cart-link { padding: 0 var(--sp-2); }
}
@media (max-width: 760px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--c-bg);
    border-bottom: 1px solid var(--c-line);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-pop);
    padding: var(--sp-2) var(--gutter) var(--sp-4);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .nav[data-open="true"] {
    opacity: 1;
    transform: none;
    visibility: visible;
  }
  .nav a {
    padding: 14px 16px;
    font-size: var(--fs-lg);
  }
  /* En el celu las colecciones van siempre a la vista, debajo de «Diseños» */
  .nav__drop {
    flex-wrap: wrap;
  }
  .nav__drop > a {
    padding-right: 16px;
  }
  .nav__toggle {
    display: none;
  }
  .nav__menu,
  .nav__drop[data-open="true"] .nav__menu {
    position: static;
    display: grid;
    gap: 0;
    width: 100%;
    min-width: 0;
    padding: 0 0 4px 16px;
    border: 0;
    box-shadow: none;
    background: none;
  }
  .nav__menu a {
    padding: 8px 16px;
    font-size: var(--fs-md);
    font-weight: 500;
  }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .cart-link .cart-label {
    display: none;
  }
  .cart-link {
    padding: 0 var(--sp-2);
  }
  .logo small {
    display: none;
  }
}

/* ---------- Banda de aviso demo ---------- */
.demo-bar {
  background: var(--c-ciruela);
  color: var(--c-white);
  font-family: var(--ff-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 6px var(--gutter);
}
.demo-bar strong {
  color: var(--c-orange);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: calc(var(--sp-9) + 24px);
  background: var(--c-ciruela);
  color: var(--c-white);
}
/* borde de festón arriba del pie */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -23px;
  height: 24px;
  background: radial-gradient(circle at 24px 24px, var(--c-ciruela) 23px, transparent 24px) 0 0 / 48px 24px repeat-x;
}
.site-footer a {
  color: var(--c-white);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
  text-decoration-color: var(--p-rosa);
  text-underline-offset: 4px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--sp-6);
  padding-block: var(--sp-8) var(--sp-6);
}
.footer-grid h2 {
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p-rosa);
  margin-bottom: var(--sp-3);
}
.footer-grid ul {
  display: grid;
  gap: var(--sp-2);
}
.footer-brand img {
  width: clamp(180px, 26vw, 320px);
  height: auto;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-4) var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.78);
}
.footer-consumer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-5);
  padding-block: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: var(--fs-sm);
}
.site-footer .footer-regret {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid var(--c-white);
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-footer .footer-regret:hover {
  background: var(--c-white);
  color: var(--c-ciruela);
  text-decoration: none;
}
.footer-complaints {
  color: rgba(255, 255, 255, 0.86);
}

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border-radius: var(--radius-pill);
  background: var(--c-ciruela);
  color: var(--c-white) !important;
  font-weight: 700;
  box-shadow: var(--shadow-pop);
}
.wa-float:hover {
  background: var(--c-magenta-hover);
  text-decoration: none !important;
}
.wa-float .icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
@media (max-width: 760px) {
  .wa-float span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .wa-float {
    padding: 0;
    width: 52px;
    justify-content: center;
  }
}
@media print {
  .wa-float { display: none; }
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Toasts ---------- */
.toasts {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  width: min(92vw, 420px);
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--c-ink);
  color: var(--c-white);
  border-radius: var(--radius-sm);
  border-left: 6px solid var(--c-orange);
  box-shadow: var(--shadow-pop);
  font-size: var(--fs-sm);
  animation: toast-in var(--dur) var(--ease);
}
.toast--success { border-color: #3fbf7f; }
.toast--error { border-color: var(--c-red); }
.toast--warning { border-color: var(--c-orange); }
.toast--info { border-color: var(--c-pink); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

/* ---------- Diálogo ---------- */
.dialog {
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  width: min(94vw, 520px);
  max-height: 90vh;
  background: var(--c-surface);
  box-shadow: var(--shadow-pop);
}
.dialog::backdrop {
  background: rgba(58, 31, 45, 0.45);
}
.dialog__body {
  padding: var(--sp-5);
  display: grid;
  gap: var(--sp-4);
}
.dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: flex-end;
}

/* ---------- Ventana de oferta (se edita en el panel, «Sitio») ---------- */
.dialog--offer {
  position: fixed;
  width: min(calc(100vw - 32px), 720px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: var(--p-rosa-2);
  animation: offer-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dialog--offer:not(:has(.offer--photo)) {
  width: min(calc(100vw - 32px), 460px);
}
@keyframes offer-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
}
@media (prefers-reduced-motion: reduce) {
  .dialog--offer { animation: none; }
}
.offer {
  display: grid;
}
.offer--photo {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}
.offer__media {
  background: var(--p-lila);
  min-height: 100%;
}
.offer__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}
.offer__body {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--sp-3);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
}
.offer__stripes {
  width: 72px;
  height: 6px;
}
.offer__title {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  text-wrap: balance;
}
.offer__text {
  color: var(--c-ink-2);
  font-size: var(--fs-lg);
  max-width: 34ch;
}
.offer__cta {
  margin-top: var(--sp-2);
}
.offer__code {
  display: grid;
  gap: 2px;
  padding: 10px 16px;
  border: 2px dashed var(--c-ciruela);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  color: var(--c-ink);
}
.offer__code b {
  font-family: var(--ff-mono);
  font-size: var(--fs-lg);
  letter-spacing: 0.08em;
  color: var(--c-ciruela);
}
.offer__code .hint {
  font-size: var(--fs-xs);
}
.offer__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  background: var(--c-surface);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(58, 31, 45, 0.18);
}
@media (max-width: 620px) {
  /* En el celu la ventana va compacta: foto baja, textos más chicos y
     el botón entra sin tener que scrollear. */
  .dialog--offer,
  .dialog--offer:not(:has(.offer--photo)) {
    width: min(calc(100vw - 40px), 360px);
    max-height: calc(100dvh - 48px);
  }
  .offer--photo {
    grid-template-columns: 1fr;
  }
  .offer__media img {
    min-height: 0;
    aspect-ratio: 16 / 10;
    height: auto;
    max-height: 24vh;
    max-height: 24dvh;
    object-position: center 30%;
  }
  .offer__body {
    gap: var(--sp-2);
    padding: var(--sp-4) var(--sp-4) var(--sp-4);
  }
  .offer__stripes {
    width: 56px;
    height: 5px;
  }
  .offer__title {
    font-size: 1.5rem;
  }
  .offer__text {
    font-size: var(--fs-md);
  }
  .offer__code {
    padding: 8px 12px;
  }
  .offer__code b {
    font-size: var(--fs-md);
  }
  .offer__cta {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    margin-top: var(--sp-1);
  }
  .offer__close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 620px) and (max-height: 700px) {
  .offer__media img {
    max-height: 18vh;
    max-height: 18dvh;
  }
  .offer__code .hint {
    display: none;
  }
}

/* ---------- Avisos inline ---------- */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  line-height: 1.4;
  border: 1.5px solid;
}
.notice .icon {
  margin-top: 1px;
}
.notice--info { background: var(--c-surface-2); border-color: var(--c-line); }
.notice--warning { background: var(--c-warning-tint); border-color: #e5b45b; color: var(--c-warning); }
.notice--danger { background: var(--c-danger-tint); border-color: #e7a19c; color: var(--c-danger); }
.notice--success { background: var(--c-success-tint); border-color: #94cfae; color: var(--c-success); }

/* ---------- Desglose de precio ---------- */
.breakdown {
  display: grid;
  gap: 4px;
  font-size: var(--fs-sm);
  color: var(--c-ink-2);
}
.breakdown div {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
}
.breakdown .total {
  color: var(--c-ink);
  font-weight: 700;
  padding-top: 6px;
  border-top: var(--border);
}
/* ---------- Utilidades ---------- */
.price {
  font-family: var(--ff-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.page-head {
  padding-block: var(--sp-7) var(--sp-5);
  display: grid;
  gap: var(--sp-3);
}

/* ---------- Cintillo de anuncios (se edita en el panel) ---------- */
.announce {
  --announce-bg: var(--c-ciruela);
  font-weight: 700;
  --announce-fg: var(--c-blanco);
  background: var(--announce-bg);
  color: var(--announce-fg);
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  position: relative;
}
.announce--terracota {
  --announce-bg: var(--c-terracota);
}
.announce--tinta {
  --announce-bg: var(--c-ink);
}
.announce--franjas {
  --announce-bg: var(--c-ink);
  padding-bottom: 4px;
}
.announce--franjas::after {
  /* las cinco franjas de la marca, finitas, abajo del texto */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(to right,
    var(--c-terracota) 0 20%, var(--c-durazno) 20% 40%, var(--c-blanco) 40% 60%,
    var(--c-rosa) 60% 80%, var(--c-ciruela) 80% 100%);
}
.announce__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.announce__item > a,
.announce__item > span {
  display: block;
  padding: 9px var(--gutter);
  color: inherit;
  text-decoration: none;
}
.announce__item > a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announce__item:not([hidden]) {
  animation: announce-in 400ms var(--ease) both;
}
@keyframes announce-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .announce__item:not([hidden]) {
    animation: none;
  }
}

/* Las cinco franjas del pie: una pastilla corta, arriba al centro */
.site-footer > .stripes {
  position: relative;
  width: min(240px, 50%);
  height: 10px;
  margin: 0 auto;
  top: var(--sp-5);
  border-radius: var(--radius-pill);
  overflow: hidden;
  outline: 2px solid var(--p-rosa);
}
@media (max-width: 760px) {
  .header-actions {
    margin-left: auto;
  }
}

/* En el carrito del celu el botón flotante tapaba «Aplicar» del código:
   ahí queda solo el enlace de WhatsApp del pie. */
@media (max-width: 760px) {
  body[data-page="cart"] .wa-float { display: none; }
}
