/* ─────────────────────────────────────────────────────────────
   CandsShop · Storefront Redesign
   Style: Airbnb (Warm, generous consumer marketplace)
   - Photo-led product cards (14px radius)
   - Pill global search bar with Rausch search orb
   - Accent role mapped to brand runtime var(--magenta)
   - Clean white canvas (#ffffff) + Ink (#222222)
   - Single subtle elevation tier
   - 8px button radius / 9999px pills
   - Inter typography (Cereal VF substitute)
   ───────────────────────────────────────────────────────────── */

:root {
  /* Brand palette from DB (runtime configurable) */
  --crema: #FDF6F0;
  --menta: #C6DBDA;
  --menta-suave: #E4EFEE;
  --oscuro: #16212E;
  --magenta: #C41380;
  --dorado: #825C1B;

  /* Airbnb Design System Tokens */
  --primary: var(--magenta);
  --primary-hover: #a80f6e;
  --primary-active: #8e0b5c;
  --primary-disabled: #f7b7dd;

  --canvas: #ffffff;
  --surface-card: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-strong: #f2f2f2;

  --ink: #222222;
  --body: #3f3f3f;
  --muted: #717171;
  --muted-soft: #929292;

  --hairline: #ebebeb;
  --hairline-soft: #f2f2f2;
  --border-strong: #dddddd;

  /* Aliases for codebase compatibility */
  --texto: var(--ink);
  --texto-suave: var(--muted);
  --linea: var(--hairline);
  --blanco: #ffffff;

  /* Typography: Inter variable substitute for Airbnb Cereal VF */
  --fuente: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --display: var(--fuente);
  --cuerpo: var(--fuente);

  /* Shape tokens */
  --radius-xs: 4px;
  --radius-sm: 8px;     /* buttons, inputs */
  --radius-md: 14px;    /* cards, modals */
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px; /* search pill, search orb, tags, chips */

  --radio: var(--radius-sm);
  --radio-g: var(--radius-md);

  /* Elevation: Airbnb signature single shadow tier */
  --sombra-airbnb: rgba(0, 0, 0, 0.02) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 6px 0px, rgba(0, 0, 0, 0.1) 0px 4px 8px 0px;
  --sombra-hover: 0 6px 20px rgba(0, 0, 0, 0.12);
  --sombra-search: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  --sombra-dropdown: 0 4px 24px rgba(0, 0, 0, 0.12);
  --sombra-modal: 0 20px 48px rgba(0, 0, 0, 0.2);

  --sombra-suave: var(--sombra-airbnb);
  --sombra: var(--sombra-hover);
  --sombra-alta: var(--sombra-dropdown);

  --suave: cubic-bezier(.2, 0, 0, 1);
  --ancho: 1280px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--cuerpo);
  font-size: 15px;
  line-height: 1.5;
  color: var(--texto);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.75rem, 2.8vw, 2.25rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.contenedor {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 0 24px;
}

.oculto { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--fuente);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  padding: 13px 24px;
  height: 48px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  transition: transform .12s var(--suave), background .15s ease, box-shadow .15s ease;
  user-select: none;
}
.btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.btn:active {
  transform: scale(0.96);
  background: var(--primary-active);
  box-shadow: none;
}
.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Botón secundario (Airbnb outline) */
.btn--linea {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--linea:hover {
  background: var(--surface-soft);
  color: var(--ink);
}
.btn--linea:active {
  background: var(--surface-strong);
  transform: scale(0.96);
}

/* Botón claro / borde suave */
.btn--claro {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn--claro:hover {
  background: var(--surface-soft);
  border-color: var(--ink);
}
.btn--claro:active {
  transform: scale(0.96);
}

.btn--pequeno {
  height: 38px;
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn--ancho { width: 100%; }

.btn--google {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--border-strong);
  height: 48px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
}
.btn--google:hover {
  background: var(--surface-soft);
  border-color: var(--ink);
}
.btn--google:active { transform: scale(0.96); }

.btn--wa {
  background: #25D366;
  color: #ffffff;
  border: none;
}
.btn--wa:hover {
  background: #1FB855;
  box-shadow: 0 4px 14px rgba(37, 211, 102, .3);
}
.btn--wa:active { transform: scale(0.96); }
.btn--wa svg { width: 20px; height: 20px; }

.separador-o {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}
.separador-o::before, .separador-o::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

/* ── Encabezado (Airbnb Top Nav) ─────────────────────────── */
.cabecera {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow .2s var(--suave);
}
.cabecera.con-sombra {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.cabecera__fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--ancho);
  margin: 0 auto;
  padding: 16px 24px;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fuente);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.menu {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.menu a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 4px;
  transition: color .15s ease;
}
.menu a:hover {
  color: var(--ink);
}
.menu a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s var(--suave);
}
.menu a:hover::after, .menu a[aria-current="page"]::after {
  transform: scaleX(1);
}
.menu a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.acciones {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icono-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  transition: background .15s var(--suave), transform .1s var(--suave), border-color .15s;
}
.icono-btn:hover {
  background: var(--surface-soft);
}
.icono-btn:active {
  transform: scale(0.92);
}
#btn-cuenta, #btn-carrito {
  border: 1px solid var(--border-strong);
}
#btn-cuenta:hover, #btn-carrito:hover {
  border-color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.contador {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  line-height: 19px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.menu-movil { display: none; }

/* ── Desplegables (Airbnb elevation) ─────────────────────── */
.menu-cuenta { position: relative; }
.desprendible {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--sombra-dropdown);
  padding: 8px;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .18s var(--suave), transform .18s var(--suave), visibility .18s;
}
.desprendible.abierto {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.desprendible__nombre {
  padding: 10px 14px 12px;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 6px;
  color: var(--ink);
}
.desprendible a, .desprendible button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--fuente);
  font-size: 14px;
  color: var(--ink);
  border: 0;
  background: none;
  cursor: pointer;
  transition: background .12s ease;
}
.desprendible a:hover, .desprendible button:hover {
  background: var(--surface-soft);
}
#btn-salir-menu {
  color: var(--primary);
  margin-top: 4px;
  border-top: 1px solid var(--hairline);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding-top: 12px;
}

.desprendible--notificaciones {
  min-width: 360px;
  max-width: 92vw;
  padding: 0;
  overflow: hidden;
}
.desprendible__cabeza {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  font-weight: 600;
  font-size: 15px;
  background: #ffffff;
}
.desprendible__cabeza button {
  width: auto;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: #ffffff;
  cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}
.desprendible__cabeza button:hover {
  background: var(--surface-soft);
  color: var(--ink);
  border-color: var(--ink);
}
#lista-notificaciones {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}
.notificacion {
  position: relative;
  display: flex;
  align-items: stretch;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  transition: background .15s ease;
}
.notificacion > a {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
  padding: 12px 36px 12px 12px;
  font-size: 14px;
  line-height: 1.4;
  border-radius: var(--radius-sm);
}
.notificacion:hover { background: var(--surface-soft); }
.notificacion__icono {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  color: var(--ink);
}
.notificacion--nueva { background: #fff5fa; }
.notificacion--nueva .notificacion__icono { background: var(--primary); color: #ffffff; }
.notificacion__texto strong { display: block; font-size: 14px; color: var(--ink); }
.notificacion__texto span { color: var(--muted); font-size: 13px; }
.notificacion__texto strong::after {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); margin-left: 6px; vertical-align: 1px;
}
.notificacion__borrar {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity .15s ease, background .15s;
}
.notificacion:hover .notificacion__borrar { opacity: 1; }
.notificacion__borrar:hover { background: rgba(0,0,0,0.06); color: var(--ink); }

/* ── Barra de listado y buscador (Airbnb Pill Search Bar) ─── */
.barra-listado {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 24px;
  flex-wrap: wrap;
}

.buscador {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  box-shadow: var(--sombra-search);
  padding: 6px 8px 6px 22px;
  flex: 1;
  max-width: 580px;
  min-width: 260px;
  height: 56px;
  transition: box-shadow .2s var(--suave), border-color .2s var(--suave);
}
.buscador:hover {
  border-color: #b0b0b0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 6px 16px rgba(0, 0, 0, 0.06);
}
.buscador:focus-within {
  border-color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(0, 0, 0, 0.08);
}
.buscador input[type="search"] {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--fuente);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  padding: 0;
}
.buscador input[type="search"]::placeholder {
  color: var(--muted);
  font-weight: 400;
}

/* El "Search Orb" Rausch / Magenta de Airbnb */
.buscador__ir {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .15s var(--suave), background .15s;
}
.buscador__ir:hover {
  background: var(--primary-hover);
  transform: scale(1.04);
}
.buscador__ir:active {
  transform: scale(0.94);
  background: var(--primary-active);
}
.buscador__ir svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}

/* Selector desplegable tipo pill */
.selector {
  border-radius: var(--radius-full);
  height: 52px;
  padding: 0 42px 0 20px;
  border: 1px solid var(--border-strong);
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23222222' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--fuente);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.selector:hover {
  border-color: var(--ink);
}
.selector:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

/* ── Filtro de precio (Airbnb inline filter band) ─────────── */
.filtro-precio {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 12px 18px;
  background: var(--surface-soft);
  border-radius: var(--radius-full);
}
.filtro-precio__etiqueta {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.filtro-precio input[type="number"] {
  width: 150px;
  text-align: center;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-family: var(--fuente);
  font-size: 14px;
  background: #ffffff;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  outline: none;
}
.filtro-precio input[type="number"]:focus {
  border-color: var(--ink);
}
.filtro-precio .btn--pequeno {
  border-radius: var(--radius-full);
  height: 40px;
}

/* ── Rejilla de productos ────────────────────────────────── */
.rejilla {
  display: grid;
  gap: 28px 20px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ── Tarjeta de Producto (Airbnb Property Card) ──────────── */
.tarjeta {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* La foto es lo único que se eleva: el texto queda quieto y legible. */
.tarjeta__foto {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface-soft);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius-md);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: transform .45s var(--suave), box-shadow .45s var(--suave);
  will-change: transform;
}
.tarjeta__foto > a {
  display: block;
  width: 100%;
  height: 100%;
}
.tarjeta__foto img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .8s var(--suave);
}
/* Velo suave abajo + pastilla "Ver producto" que sube al pasar el cursor. */
.tarjeta__foto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 45%);
  opacity: 0;
  transition: opacity .4s var(--suave);
  pointer-events: none;
  z-index: 1;
}
.tarjeta__foto::after {
  content: "Ver producto";
  position: absolute;
  left: 50%;
  bottom: 14px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: transform .4s var(--suave), opacity .3s var(--suave);
  pointer-events: none;
  z-index: 2;
}
@media not all and (hover: none) and (pointer: coarse) {
  .tarjeta:hover .tarjeta__foto {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04), 0 14px 28px -8px rgba(0, 0, 0, .22);
  }
  .tarjeta:hover .tarjeta__foto img { transform: scale(1.07); }
  .tarjeta:hover .tarjeta__foto::before { opacity: 1; }
  .tarjeta:hover .tarjeta__foto::after { transform: translate(-50%, 0); opacity: 1; }
}
.tarjeta__corazon, .etiqueta { transition: translate .45s var(--suave), transform .15s ease, color .15s ease, background .15s; }
@media not all and (hover: none) and (pointer: coarse) {
  .tarjeta:hover .tarjeta__corazon, .tarjeta:hover .etiqueta { translate: 0 -4px; }
}
.tarjeta:active .tarjeta__foto { transform: translateY(-1px) scale(.985); transition-duration: .12s; }
.tarjeta:focus-within .tarjeta__foto { box-shadow: 0 0 0 2px var(--ink); }
/* Entrada escalonada una sola vez al cargar el listado. */
@keyframes tarjeta-aparece {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.rejilla > .tarjeta { animation: tarjeta-aparece .55s var(--suave) both; }
.rejilla > .tarjeta:nth-child(2) { animation-delay: .04s; }
.rejilla > .tarjeta:nth-child(3) { animation-delay: .08s; }
.rejilla > .tarjeta:nth-child(4) { animation-delay: .12s; }
.rejilla > .tarjeta:nth-child(5) { animation-delay: .16s; }
.rejilla > .tarjeta:nth-child(6) { animation-delay: .2s; }
.rejilla > .tarjeta:nth-child(n+7) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .rejilla > .tarjeta { animation: none; }
  .tarjeta__foto, .tarjeta__foto img, .tarjeta__foto::before, .tarjeta__foto::after { transition: none; }
  .tarjeta:hover .tarjeta__foto, .tarjeta:hover .tarjeta__foto img { transform: none; }
}
.tarjeta__sinfoto {
  color: var(--muted);
  font-size: 13px;
  display: grid;
  place-items: center;
  height: 100%;
}

/* Botón flotante de guardar / corazón (Airbnb wishlist heart) */
.tarjeta__corazon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: transform .15s ease, color .15s ease, background .15s;
  z-index: 3;
}
.tarjeta__corazon:hover {
  transform: scale(1.1);
  background: #ffffff;
}
.tarjeta__corazon:active {
  transform: scale(0.92);
}
.tarjeta__corazon[aria-pressed="true"] {
  color: var(--primary);
}

/* Badge flotante "Guest Favorite" / Etiqueta Airbnb */
.etiqueta {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  z-index: 2;
}
.etiqueta--agotado {
  background: var(--ink);
  color: #ffffff;
}
.etiqueta--oculto {
  background: var(--primary);
  color: #ffffff;
}
/* Sello rojo "Producto nuevo": pegado a la esquina de la foto, en dos líneas. */
.etiqueta--nuevo {
  top: 0;
  left: 0;
  padding: 8px 14px 9px 12px;
  border-radius: var(--radius-lg, 16px) 0 14px 0;
  background: var(--primary);
  color: #ffffff;
  box-shadow: none;
  border: 0 solid #ffffff;
  border-width: 0 3px 3px 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}
.etiqueta--nuevo b {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 800;
}
/* Si además está agotado u oculto, esas etiquetas bajan para no taparla. */
.etiqueta--nuevo ~ .etiqueta { top: 56px; }
.sello-nuevo {
  display: inline-block;
  margin-right: 8px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
}

.tarjeta__cuerpo {
  padding: 12px 2px 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.tarjeta__categoria {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.tarjeta__nombre {
  font-family: var(--fuente);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* El título se subraya con una línea que se dibuja, en vez del subrayado seco. */
.tarjeta__nombre {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .35s var(--suave), color .2s;
}
@media not all and (hover: none) and (pointer: coarse) {
  .tarjeta:hover .tarjeta__nombre { background-size: 100% 1.5px; }
}

.tarjeta__variantes {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.punto-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: inline-block;
}

.tarjeta__precio-fila {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}
.tarjeta__precio {
  font-family: var(--fuente);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.tarjeta__etiqueta-agotado {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--surface-strong);
  color: var(--muted);
}

/* ── Portada / Hero ───────────────────────────────────────── */
.portada {
  background: #ffffff;
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--hairline);
}
.portada__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.portada__texto { max-width: 52ch; }
.portada h1 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--ink);
}
.portada p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--body);
  margin-bottom: 24px;
}
.portada__nota {
  font-size: 14px;
  color: var(--muted);
  border-left: 3px solid var(--primary);
  padding-left: 14px;
  margin: 20px 0 28px;
}
.portada__figura {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: var(--sombra-airbnb);
}
.portada__figura img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Secciones y franjas editoriales ─────────────────────── */
.seccion {
  padding: 64px 0;
}
.seccion--crema {
  background: var(--surface-soft);
}
.seccion--menta {
  background: #ffffff;
  border-bottom: 1px solid var(--hairline);
}
.seccion__titulo {
  text-align: center;
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.seccion__intro {
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  max-width: 56ch;
  margin: 0 auto 40px;
}

/* ── Categorías (Airbnb Category Strip & Cards) ───────────── */
.categorias {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.categoria {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: #ffffff;
  box-shadow: var(--sombra-airbnb);
  transition: transform .2s var(--suave), box-shadow .2s;
}
.categoria:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-hover);
}
.categoria img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--suave);
}
.categoria:hover img {
  transform: scale(1.04);
}
.categoria__velo {
  position: relative;
  width: 100%;
  padding: 24px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.15) 100%);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.categoria__velo h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.categoria__velo p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.categoria__icono-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.categoria--nueva {
  min-height: 280px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--fuente);
  font-size: 15px;
  font-weight: 500;
  transition: border-color .2s, color .2s;
}
.categoria--nueva:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ── Hero de categoría ───────────────────────────────────── */
.categoria-hero {
  position: relative;
  min-height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  margin-bottom: 32px;
  box-shadow: var(--sombra-airbnb);
}
.categoria-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.categoria-hero__velo {
  position: relative;
  width: 100%;
  padding: 36px 32px 28px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}
.categoria-hero__titulo {
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 8px;
}
.categoria-hero__tagline {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  margin: 0 0 16px;
  max-width: 600px;
}
.categoria-hero__raya {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.categoria-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.categoria-hero__stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
}
.categoria-hero__stat svg { width: 18px; height: 18px; color: var(--primary); }

/* ── Ficha de producto (Airbnb Listing Detail) ─────────────── */
.ficha {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  padding: 32px 0 64px;
  align-items: start;
}
.galeria__principal {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  box-shadow: var(--sombra-airbnb);
}
.galeria__principal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.galeria__tiras {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.galeria__tiras button {
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--surface-soft);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s;
}
.galeria__tiras button[aria-current="true"] {
  border-color: var(--ink);
}
.galeria__tiras button:hover {
  transform: translateY(-2px);
}
.galeria__tiras img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ficha__titulo {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  margin: 6px 0 10px;
}
.ficha__precio {
  font-family: var(--fuente);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 20px;
  font-variant-numeric: tabular-nums;
}
.ficha__bloque {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.ficha__bloque:last-child {
  border-bottom: none;
}
.ficha__etiqueta {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.ficha__descripcion {
  color: var(--body);
  font-size: 15px;
  line-height: 1.65;
}

/* Variantes pill selectors */
.variantes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.variante {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: #ffffff;
  cursor: pointer;
  font-family: var(--fuente);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color .15s, background .15s, transform .1s;
}
.variante:hover:not(:disabled) {
  border-color: var(--ink);
}
.variante:active:not(:disabled) {
  transform: scale(0.96);
}
.variante[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}
.variante[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.8); }
.variante:disabled {
  opacity: .4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Cantidad stepper pill */
.cantidad {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: #ffffff;
  height: 48px;
}
.cantidad button {
  width: 44px;
  height: 46px;
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
  display: grid;
  place-items: center;
  transition: background .12s;
}
.cantidad button:hover {
  background: var(--surface-soft);
  border-radius: 50%;
}
.cantidad span {
  min-width: 40px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.ficha .btn--agregar {
  flex: 1;
  min-width: 200px;
  height: 48px;
  border-radius: var(--radius-sm);
  font-size: 16px;
}
#fav-producto {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}

/* Reseñas (Airbnb rating-display-card) */
.seccion--resenas {
  background: var(--surface-soft);
  border-top: 1px solid var(--hairline);
}
#lista-resenas > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}

/* ── Carrito lateral (Airbnb Drawer) ─────────────────────── */
.panel-lateral {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  background: #ffffff;
  box-shadow: -8px 0 36px rgba(0, 0, 0, 0.16);
  z-index: 90;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s var(--suave);
  visibility: hidden;
}
.panel-lateral.abierto {
  transform: translateX(0);
  visibility: visible;
}
.panel-lateral__cabeza {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--hairline);
}
.panel-lateral__cuerpo {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.panel-lateral__pie {
  padding: 20px 24px;
  border-top: 1px solid var(--hairline);
  background: #ffffff;
}
.velo {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 80;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.velo.abierto {
  opacity: 1;
  visibility: visible;
}

.linea-carrito {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.linea-carrito img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
}
.linea-carrito__datos { flex: 1; min-width: 0; }
.linea-carrito__nombre { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.linea-carrito__variante { font-size: 13px; color: var(--muted); margin-top: 2px; }
.linea-carrito__quitar {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  text-decoration: underline;
  margin-top: 4px;
}
.linea-carrito__quitar:hover { color: var(--primary); }

.totales {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--body);
}
.totales--grande {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin: 16px 0 20px;
  font-variant-numeric: tabular-nums;
}

.ayuda-carrito {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}
.ayuda-carrito p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}

/* ── Formularios (Airbnb Text Input) ─────────────────────── */
.campo { margin-bottom: 20px; }
.campo label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.campo input, .campo select, .campo textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--fuente);
  font-size: 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s;
}
.campo input:focus, .campo textarea:focus, .campo select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}
.campo textarea {
  min-height: 100px;
  resize: vertical;
}

/* ── Checkout (Airbnb Reservation Card Pattern) ──────────── */
.tarjeta-resumen-pedido {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--sombra-airbnb);
  padding: 24px;
  position: sticky;
  top: 100px;
}
.tarjeta-resumen-pedido h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

/* ── Avisos y Toasts ─────────────────────────────────────── */
.aviso {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 18px;
}
.aviso--error {
  background: #fff0f3;
  color: #c13515;
  border: 1px solid #ffccd5;
}
.aviso--ok {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

#avisos {
  position: fixed;
  top: 88px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(440px, calc(100vw - 32px));
  pointer-events: none;
}
.aviso--flotante {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  pointer-events: auto;
  box-shadow: var(--sombra-dropdown);
  backdrop-filter: blur(8px);
  animation: aviso-entra .25s var(--suave);
}
.aviso--flotante.aviso--error { background: #ffffff; border-left: 4px solid #c13515; }
.aviso--flotante.aviso--ok { background: #ffffff; border-left: 4px solid #166534; }
.aviso__icono { flex-shrink: 0; display: grid; place-items: center; margin-top: 1px; }
.aviso__texto { flex: 1; font-size: 14px; color: var(--ink); }
.aviso__cerrar {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.aviso__cerrar:hover { background: var(--surface-soft); color: var(--ink); }
.aviso--saliendo { opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s; }
@keyframes aviso-entra { from { opacity: 0; transform: translateY(-10px); } }

/* ── WhatsApp Flotante ───────────────────────────────────── */
.wa-flotante {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: transform .15s ease, box-shadow .15s;
}
.wa-flotante:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
.wa-flotante:active { transform: scale(0.94); }

/* ── Pie (Airbnb Light Footer) ───────────────────────────── */
.pie {
  background: var(--surface-soft);
  color: var(--ink);
  border-top: 1px solid var(--hairline);
  padding: 48px 0 28px;
  margin-top: 64px;
}
.pie__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.pie h3 {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.pie p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.pie a {
  color: var(--body);
  font-size: 14px;
  display: block;
  padding: 5px 0;
  transition: color .15s;
}
.pie a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.pie__legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Ventajas, Pasos y Preguntas ─────────────────────────── */
.pasos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
.paso {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--sombra-airbnb);
}
.paso__numero {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.paso h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.paso p { font-size: 14px; color: var(--muted); margin: 0; }

.ventajas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.ventaja {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--sombra-airbnb);
  transition: transform .2s ease;
}
.ventaja:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-hover);
}
.ventaja h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.ventaja p { font-size: 14px; color: var(--muted); margin: 0; }

.preguntas { max-width: 780px; margin: 0 auto; }
.pregunta { border-bottom: 1px solid var(--hairline); }
.pregunta summary {
  cursor: pointer;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--ink);
  line-height: 1;
}
.pregunta[open] summary::after { content: '−'; }
.pregunta p {
  padding-bottom: 20px;
  margin: 0;
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Paginación ──────────────────────────────────────────── */
.paginacion {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
  align-items: center;
}
.paginacion .btn {
  border-radius: var(--radius-full);
}

/* ── Chips y Pestañas de Cuenta (Airbnb Product Tabs) ─────── */
.tabs-cuenta {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  border-bottom: 1px solid var(--hairline);
}
.tabs-cuenta a {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color .15s;
}
.tabs-cuenta a[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 600;
}
.tabs-cuenta a:hover {
  color: var(--ink);
}

.chip-estado {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  color: var(--ink);
}
.chip-estado--ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.chip-estado--espera { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.chip-estado--error { background: #fff1f2; border-color: #fecdd3; color: #be123c; }

.pedido-card {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--sombra-airbnb);
  transition: transform .2s var(--suave), box-shadow .2s;
}
.pedido-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-hover);
}
.pedido-card__cabeza {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pedido-card__pie {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}

/* ── Saludo personal ─────────────────────────────────────── */
.saludo-personal {
  background: var(--surface-soft);
  border-bottom: 1px solid var(--hairline);
}
.saludo-personal__accesos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.saludo-personal__acceso {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--sombra-airbnb);
  transition: transform .15s ease, box-shadow .15s;
}
.saludo-personal__acceso:hover {
  transform: translateY(-2px);
  box-shadow: var(--sombra-hover);
}
.saludo-personal__acceso svg { color: var(--primary); }

/* ── Chips listas y popovers ─────────────────────────────── */
.chips-listas { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 20px; }
.chip-lista {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  background: #ffffff;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.chip-lista:hover { border-color: var(--ink); }
.chip-lista--activa {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}
.chip-lista--activa small { color: rgba(255, 255, 255, 0.8); }

.popover-guardar {
  position: absolute; width: 240px; z-index: 90;
  background: #ffffff; border: 1px solid var(--hairline); border-radius: var(--radius-md);
  box-shadow: var(--sombra-dropdown); padding: 12px;
}
.popover-guardar__fila {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 10px; border-radius: var(--radius-sm); border: 0; background: none; cursor: pointer;
  font-family: var(--fuente); font-size: 14px; color: var(--ink);
}
.popover-guardar__fila:hover { background: var(--surface-soft); }
.popover-guardar__fila[aria-pressed="true"] svg { color: var(--primary); }

/* ── Tarjeta de autenticación (Airbnb modal/card) ─────────── */
.caja-auth {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  box-shadow: var(--sombra-airbnb);
  padding: 36px 32px;
  margin: 20px auto;
}
.caja-auth h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

/* ── Estados vacíos y carga ──────────────────────────────── */
.vacio {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.vacio h2 {
  color: var(--ink);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.esqueleto {
  background: linear-gradient(90deg, #f2f2f2 25%, #e6e6e6 50%, #f2f2f2 75%);
  background-size: 200% 100%;
  animation: brillo 1.4s infinite;
  border-radius: var(--radius-md);
}
@keyframes brillo { to { background-position: -200% 0; } }

/* ── Responsivo ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .portada__grid, .ficha, .checkout-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .portada__figura { max-width: 380px; margin: 0 auto; }
  .pie__grid { grid-template-columns: 1fr; gap: 32px; }

  .cabecera__fila { padding: 12px 16px; }
  .menu-movil {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
  }

  .menu { display: none; }
  .menu.abierto {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--hairline);
    padding: 12px 0;
    gap: 0;
    margin: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  }
  .menu.abierto a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--hairline-soft);
    font-size: 16px;
    width: 100%;
  }
  .menu.abierto a::after { display: none; }
}

@media (max-width: 640px) {
  .contenedor { padding: 0 16px; }
  .cabecera__fila { padding: 8px 12px; height: 64px; gap: 6px; }
  .logo img { height: 26px; }
  .logo span { font-size: 1.05rem; }
  .acciones { gap: 2px; }
  .acciones .icono-btn { width: 34px; height: 34px; }
  #btn-modo-edicion { font-size: 11px; padding: 4px 8px; height: 30px; }
  .contador { top: -2px; right: -2px; min-width: 16px; height: 16px; font-size: 10px; line-height: 16px; }
  .rejilla { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .tarjeta__cuerpo { padding: 10px 0 4px; }
  .tarjeta__nombre { font-size: 14px; }
  .tarjeta__precio { font-size: 14px; }

  .barra-listado { flex-direction: column; align-items: stretch; gap: 12px; }
  .buscador { max-width: none; }
  .selector { width: 100%; }

  .ficha { padding: 16px 0 40px; }
  .campo input, .campo select, .campo textarea { font-size: 16px; }

  .desprendible--notificaciones {
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    min-width: 0;
    max-width: none;
  }
}

/* ── Aparición progresiva al hacer scroll ────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--suave), transform .5s var(--suave);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Seguimiento de pedido (Airbnb 5 etapas) ──────────────── */
.seguimiento {
  display: flex; gap: 4px; margin-top: 14px; padding-top: 4px;
}
.seguimiento__paso {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px;
  text-align: center; position: relative;
}
.seguimiento__paso::before {
  content: ''; position: absolute; top: 8px; left: -50%; width: 100%; height: 2px;
  background: var(--hairline); z-index: 0;
  transition: background .3s var(--suave);
}
.seguimiento__paso:first-child::before { display: none; }
.seguimiento__paso--hecho::before { background: var(--ink); }
.seguimiento__punto {
  width: 18px; height: 18px; border-radius: 50%; background: #ffffff;
  border: 2px solid var(--border-strong); z-index: 1; display: grid; place-items: center;
  color: #ffffff; box-sizing: border-box;
  transition: background .25s var(--suave), border-color .25s;
}
.seguimiento__punto svg { width: 10px; height: 10px; }
.seguimiento__paso--hecho .seguimiento__punto { background: var(--ink); border-color: var(--ink); }
.seguimiento__paso--actual .seguimiento__punto {
  background: var(--primary); border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(196, 19, 128, .15);
}
.seguimiento__texto { font-size: 12px; color: var(--muted); line-height: 1.3; }
.seguimiento__paso--hecho .seguimiento__texto { color: var(--ink); font-weight: 500; }
.seguimiento--grande .seguimiento__punto { width: 24px; height: 24px; border-width: 3px; }
.seguimiento--grande .seguimiento__paso::before { top: 11px; }
.seguimiento--grande .seguimiento__texto { font-size: 13px; }

/* ── Tarjetas de pedido y garantía ────────────────────────── */
.pedido-hero { text-align: center; padding: 12px 0 28px; }
.pedido-hero__icono {
  width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--ink); color: #ffffff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}
.pedido-hero__icono svg { width: 32px; height: 32px; }
.pedido-hero--cancelado .pedido-hero__icono { background: var(--primary); }
.pedido-hero__meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

.tarjeta-pedido {
  background: #ffffff; border: 1px solid var(--hairline); border-radius: var(--radius-md);
  padding: 24px; margin-bottom: 16px; box-shadow: var(--sombra-airbnb);
}
.tarjeta-pedido__titulo {
  font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 16px;
}
.tarjeta-pedido--wa {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: #f0fdf4; border-color: #bbf7d0;
}

.pedido-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.pedido-item + .pedido-item { border-top: 1px solid var(--hairline); }
.pedido-item img, .pedido-item__sinfoto {
  width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover;
  background: var(--surface-soft); flex-shrink: 0; border: 1px solid var(--hairline);
}
.pedido-item__datos { flex: 1; min-width: 0; }
.pedido-item__datos a { font-weight: 600; color: var(--ink); }
.pedido-item__datos small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

.garantia-estado { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.garantia-mensaje {
  margin-top: 14px; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--surface-soft); border-left: 3px solid var(--dorado);
}
.aviso-garantia {
  background: var(--surface-soft); border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 14px; color: var(--ink); margin-bottom: 18px; line-height: 1.5;
}

/* ── Visor de fotos a pantalla completa ───────────────────── */
.visor-fotos {
  position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, 0.9);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.visor-fotos.abierto { display: flex; }
.visor-fotos img {
  max-width: min(92vw, 960px); max-height: 86vh; object-fit: contain;
  border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.visor-fotos__cerrar {
  position: absolute; top: 20px; right: 24px; width: 44px; height: 44px;
  border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.15); color: #ffffff;
  font-size: 1.3rem; cursor: pointer; display: grid; place-items: center;
}
.visor-fotos__cerrar:hover { background: rgba(255, 255, 255, 0.25); }
.visor-fotos__flecha {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px;
  border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.15); color: #ffffff;
  font-size: 2rem; cursor: pointer; display: grid; place-items: center;
}
.visor-fotos__flecha:hover { background: rgba(255, 255, 255, 0.25); }
.visor-fotos__flecha--izq { left: 20px; }
.visor-fotos__flecha--der { right: 20px; }

/* ── Editor en línea y admin mode ─────────────────────────── */
.barra-edicion {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 16px 0; padding: 8px 16px; background: var(--surface-soft);
  border: 1px solid var(--border-strong); border-radius: var(--radius-full);
}
.barra-edicion__etiqueta { font-size: 13px; font-weight: 600; color: var(--ink); }
.barra-edicion__divisor { width: 1px; height: 20px; background: var(--border-strong); margin: 0 4px; }
.pildora {
  padding: 6px 14px; border-radius: var(--radius-full); border: 1px solid var(--border-strong);
  background: #ffffff; font-family: var(--fuente); font-size: 13px; font-weight: 500;
  cursor: pointer; color: var(--muted); transition: background .12s, color .12s, border-color .12s;
}
.pildora:hover { border-color: var(--ink); color: var(--ink); }
.pildora[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #ffffff; }

.editable { border-radius: var(--radius-xs); outline: none; transition: box-shadow .15s ease; }
.editable:hover { box-shadow: 0 0 0 2px var(--border-strong); }
.editable:focus { box-shadow: 0 0 0 2px var(--ink); }
.editable--descripcion:empty::before { content: 'Agrega una descripción…'; color: var(--muted); }

.editor-toolbar-texto {
  display: flex; gap: 4px; margin-bottom: 8px; align-items: center; flex-wrap: wrap;
  padding: 6px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #ffffff;
}
.editor-toolbar-texto button {
  width: 32px; height: 32px; border: 1px solid var(--border-strong); border-radius: var(--radius-xs);
  background: #ffffff; cursor: pointer; font-size: 13px;
}
.editor-toolbar-texto button:hover { background: var(--surface-soft); }
.editor-toolbar-texto select {
  padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-xs);
  font-size: 13px; background: #ffffff; cursor: pointer;
}

.campo-agotado { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 16px; cursor: pointer; }
.resena-estrellas { display: flex; gap: 4px; }
.resena-estrellas button {
  border: 0; background: none; cursor: pointer; font-size: 1.6rem; color: var(--dorado); padding: 0;
}
.campo--precio-edicion { max-width: 220px; margin-top: -8px; }
.editable-foto { position: relative; }
.miniatura-editable { position: relative; }
.miniatura-editable__controles { position: absolute; top: 2px; right: 2px; display: flex; gap: 2px; }
.miniatura-editable__controles button {
  width: 20px; height: 20px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0,0,0,0.75); color: #ffffff; font-size: 11px; display: grid; place-items: center;
}

.variante-chip { position: relative; display: inline-flex; align-items: center; }
.variante-chip__quitar {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); color: #ffffff; border: 2px solid #ffffff; font-size: 11px;
  cursor: pointer; display: grid; place-items: center;
}
.variante-chip__mover {
  position: absolute; top: -6px; width: 18px; height: 18px; border-radius: 50%;
  background: #ffffff; color: var(--ink); border: 1px solid var(--border-strong);
  font-size: 10px; cursor: pointer; display: grid; place-items: center;
}
.variante-chip__mover[data-dir="-1"] { left: -6px; }
.variante-chip__mover[data-dir="1"] { left: 14px; }
.variante-chip__mover:disabled { opacity: .3; cursor: not-allowed; }
.variante__etiqueta-default { color: var(--primary); font-weight: 600; }
.variante--nueva { border-style: dashed; color: var(--muted); }

.popover-variante {
  margin-top: 14px; padding: 18px; border: 1px solid var(--hairline); border-radius: var(--radius-md);
  background: #ffffff; box-shadow: var(--sombra-dropdown); max-width: 440px;
}
.popover-variante__cabeza { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.popover-variante__cabeza strong { font-size: 15px; font-weight: 600; }
.popover-variante__cabeza button { border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }

.editar-flotante {
  position: absolute; bottom: 8px; right: 8px; z-index: 4;
  padding: 6px 14px; font-size: 12px; font-weight: 600; border-radius: var(--radius-full);
  background: var(--ink); color: #ffffff; border: 0; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.editor-fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.miniaturas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.miniatura { position: relative; width: 84px; height: 84px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--hairline); }
.miniatura img { width: 100%; height: 100%; object-fit: cover; }
.miniatura button {
  position: absolute; top: 3px; right: 3px; width: 22px; height: 22px;
  border: 0; border-radius: 50%; background: rgba(0,0,0,0.7); color: #fff; cursor: pointer; font-size: 11px;
}

.imagen-editable { position: relative; }
.imagen-editable__boton {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  padding: 8px 16px; border-radius: var(--radius-full); border: 0; cursor: pointer;
  background: rgba(0, 0, 0, 0.85); color: #ffffff; font-family: var(--fuente);
  font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.imagen-editable__boton:hover { background: var(--ink); }
#logo-figura .imagen-editable__boton {
  bottom: -6px; right: -6px; padding: 0; width: 24px; height: 24px;
  border-radius: 50%; font-size: 0;
}
#logo-figura .imagen-editable__boton::before { content: '✎'; font-size: 12px; }

.categoria--editando { position: relative; display: block; cursor: default; }
.categoria--editando .categoria__velo { pointer-events: none; }
.categoria--editando .categoria__velo .editable,
.categoria--editando .categoria__velo .categoria__enlace,
.categoria--editando .categoria__velo .barra-flotante-editor { pointer-events: auto; }
.categoria__enlace { display: inline-block; margin-top: 10px; font-size: 13px; color: #ffffff; text-decoration: underline; }

.barra-flotante-editor {
  display: flex; z-index: 5; gap: 6px; align-items: center; pointer-events: auto;
  padding: 8px 12px; margin: 8px 0; background: #ffffff; border: 1px solid var(--border-strong);
  border-radius: var(--radius-full); box-shadow: var(--sombra-dropdown); flex-wrap: wrap; width: fit-content;
}
.barra-flotante-editor.oculta { display: none; }
.barra-flotante-editor button[data-cmd] {
  width: 30px; height: 30px; border: 1px solid var(--border-strong); border-radius: var(--radius-xs);
  background: #ffffff; cursor: pointer; font-size: 13px;
}
.barra-flotante-editor button[data-cmd]:hover { background: var(--surface-soft); }
.barra-flotante-editor select {
  padding: 5px 8px; border: 1px solid var(--border-strong); border-radius: var(--radius-xs);
  font-size: 12px; background: #ffffff; cursor: pointer;
}
.barra-flotante-editor input[type="color"] {
  width: 30px; height: 30px; padding: 2px; border: 1px solid var(--border-strong); border-radius: var(--radius-xs);
}

.chip-edicion {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 150; display: flex; align-items: center; gap: 12px;
  padding: 10px 18px; border-radius: var(--radius-full);
  background: var(--ink); color: #ffffff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); font-size: 14px; font-weight: 600;
}
.chip-edicion__punto {
  width: 9px; height: 9px; border-radius: 50%; background: #4ADE80;
}
.chip-edicion button {
  border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: #ffffff;
  padding: 5px 14px; border-radius: var(--radius-full); font-size: 13px; font-weight: 500;
  cursor: pointer;
}
.chip-edicion button:hover { background: rgba(255, 255, 255, 0.2); }

body.modo-edicion .editable {
  box-shadow: 0 0 0 1px var(--primary); border-radius: var(--radius-xs);
  cursor: text; position: relative;
}
body.modo-edicion .editable:hover { box-shadow: 0 0 0 2px var(--primary); }
body.modo-edicion .editable:focus { box-shadow: 0 0 0 2px var(--ink); background: var(--surface-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
