/* =========================================================
   LA CRIPTA · hoja de estilos
   Morgue de noche: azulejo verde-azulado, hueso, sangre y una vela.
   ========================================================= */
@font-face { font-family: 'Grenze Gotisch'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/grenze-gotisch-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Grenze Gotisch'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/grenze-gotisch-latin-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/archivo-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/archivo-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/archivo-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/archivo-latin-700-normal.woff2) format('woff2'); }

:root {
  --tumba: #0E1716;      /* fondo: azulejo de morgue a oscuras */
  --tumba-2: #142220;    /* superficies elevadas */
  --losa: #22332F;       /* bordes, campos */
  --formol: #7F9A8E;     /* texto secundario */
  --hueso: #E6DFCC;      /* texto principal, paneles claros */
  --hueso-2: #F3EFE5;    /* fondo de fotos */
  --sangre: #B1141E;     /* precio y compra */
  --sangre-viva: #D11A26;
  --vela: #F0A33A;       /* cuenta regresiva y foco */
  --gotica: 'Grenze Gotisch', 'Times New Roman', serif;
  --texto: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ancho: 1320px;
  --lado: clamp(16px, 4vw, 40px);
  --r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--tumba); color: var(--hueso);
  font: 400 16px/1.55 var(--texto); -webkit-font-smoothing: antialiased;
  /* azulejo casi invisible */
  background-image:
    linear-gradient(rgba(127,154,142,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,154,142,.035) 1px, transparent 1px);
  background-size: 56px 56px;
}
html, body { overflow-x: clip; }
body.sin-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--vela); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 700; }
h1, h2 { font-family: var(--gotica); letter-spacing: .005em; }
p { margin: 0; }
.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--vela); color: #1b1203; padding: 10px 14px; border-radius: var(--r); font-weight: 600; }
.saltar:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--r); border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-compra { background: var(--sangre); color: var(--hueso); }
.btn-compra:hover { background: var(--sangre-viva); }
.btn-sec { background: transparent; border-color: rgba(230,223,204,.45); color: var(--hueso); }
.btn-sec:hover { border-color: var(--hueso); background: rgba(230,223,204,.06); }
.btn-ancho { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-icono {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; border-radius: var(--r); cursor: pointer; position: relative; color: var(--hueso);
}
.btn-icono:hover { background: rgba(230,223,204,.07); }
.btn-icono svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.enlace-sutil { background: none; border: 0; padding: 0; color: var(--formol); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.enlace-sutil:hover { color: var(--hueso); }

/* ---------- Aviso y cabecera ---------- */
.aviso {
  position: relative; z-index: 41;
  display: flex; justify-content: center; gap: 28px; padding: 9px var(--lado) 7px;
  font-size: 13.5px; font-weight: 500; color: var(--hueso); background: #6E0A12; text-align: center;
}
.aviso .vela { color: #FFC56B; }
.aviso strong { font-weight: 600; }
.vela { color: var(--vela); }
.aviso-2 { display: none; }
@media (min-width: 900px) { .aviso-2 { display: inline; } .aviso-2::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: rgba(230,223,204,.5); margin: 0 18px 3px 0; } }

.barra { position: sticky; top: 0; z-index: 40; background: rgba(14,23,22,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--losa); }
.barra-in { max-width: var(--ancho); margin: 0 auto; padding: 8px var(--lado); display: flex; align-items: center; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--gotica); font-weight: 800; font-size: 30px; line-height: 1; color: var(--hueso); }
.ataud { width: 18px; height: 24px; fill: none; stroke: var(--sangre-viva); stroke-width: 1.8; stroke-linejoin: round; }
.menu { display: flex; gap: 4px; margin-left: 18px; }
.menu a { padding: 10px 12px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--formol); border-radius: var(--r); }
.menu a:hover { color: var(--hueso); }
.buscar { margin-left: auto; display: flex; align-items: center; background: var(--tumba-2); border: 1px solid var(--losa); border-radius: 999px; padding-left: 16px; width: min(320px, 34vw); }
.buscar:focus-within { border-color: var(--formol); }
.buscar input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 9px 0; font-size: 15px; }
.buscar input::placeholder { color: var(--formol); opacity: .8; }
.contador { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sangre); color: var(--hueso); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.contador[hidden] { display: none; }
.menu-abrir { display: none; }

@media (max-width: 900px) {
  .menu-abrir { display: inline-grid; margin-left: -10px; }
  .logo { font-size: 26px; }
  .menu {
    position: fixed; inset: 0 auto 0 0; width: min(82vw, 320px); z-index: 60; margin: 0; padding: 88px 20px 20px;
    flex-direction: column; gap: 0; background: var(--tumba-2); border-right: 1px solid var(--losa);
    transform: translateX(-102%); transition: transform .25s ease;
  }
  .menu.abierto { transform: none; box-shadow: 0 0 0 100vmax rgba(3,6,5,.7); }
  .menu a { font-family: var(--gotica); font-size: 30px; color: var(--hueso); padding: 10px 4px; border-bottom: 1px solid var(--losa); border-radius: 0; }
  .buscar { order: 5; width: 100%; margin: 4px 0 2px; }
  .barra-in { flex-wrap: wrap; }
  .carrito-abrir { margin-left: auto; }
}

/* ---------- Portada: la cripta y la linterna ---------- */
.cripta {
  --x: 50%; --y: 45%;
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(88vh, 780px); display: flex; align-items: flex-end;
  background: #050908; cursor: crosshair; touch-action: pan-y;
}
.cripta-mosaico {
  position: absolute; inset: -2%; z-index: -2;
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; gap: 6px;
  transform: rotate(-3deg) scale(1.08);
}
.cripta-mosaico img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1; filter: saturate(.85) contrast(1.05); border-radius: 3px; background: var(--hueso-2); }
.cripta-sombra {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle at var(--x) var(--y), rgba(240,163,58,.10) 0, rgba(240,163,58,0) 180px),
    radial-gradient(circle at var(--x) var(--y), rgba(5,9,8,0) 0, rgba(5,9,8,0) 90px, rgba(5,9,8,.78) 210px, rgba(5,9,8,.92) 340px);
}
.cripta.quieta .cripta-sombra { background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(5,9,8,.25), rgba(5,9,8,.95)); }
.cripta-texto {
  position: relative; width: 100%; max-width: var(--ancho); margin: 0 auto;
  padding: 120px var(--lado) clamp(32px, 6vw, 72px); pointer-events: none;
  background: linear-gradient(to top, rgba(5,9,8,.95) 30%, rgba(5,9,8,0));
}
.cripta-texto a { pointer-events: auto; }
.cripta h1 { font-size: clamp(54px, 9.5vw, 132px); line-height: .86; max-width: 11ch; font-weight: 800; text-wrap: balance; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.cripta-texto > p { margin-top: 18px; font-size: clamp(16px, 1.6vw, 19px); color: #cfc8b5; max-width: 44ch; }
.cripta-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (max-width: 700px) {
  .cripta { min-height: 82vh; }
  .cripta-mosaico { grid-template-columns: repeat(4, 1fr); }
  .cripta-sombra { background:
    radial-gradient(circle at var(--x) var(--y), rgba(240,163,58,.10) 0, rgba(240,163,58,0) 130px),
    radial-gradient(circle at var(--x) var(--y), rgba(5,9,8,0) 0, rgba(5,9,8,0) 60px, rgba(5,9,8,.85) 150px, rgba(5,9,8,.97) 240px); }
  .cripta-acciones .btn { flex: 1; }
  .inicio .cripta-texto { padding-bottom: 84px; }
}

/* ---------- Secciones ---------- */
.seccion { max-width: var(--ancho); margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--lado) 0; }
.seccion-cab { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.seccion-cab h2 { font-size: clamp(36px, 4.6vw, 60px); }

/* Lápidas: los estilos */
.lapidas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.lapida {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 14px 12px 16px; text-decoration: none;
  background: linear-gradient(170deg, #2A3B37, #1A2825 60%, #15211F);
  border: 1px solid #33463F; border-bottom-width: 4px; border-bottom-color: #0A1110;
  border-radius: 999px 999px 8px 8px / 120px 120px 8px 8px;
  transition: transform .2s ease, border-color .2s;
}
.lapida img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 999px 999px 4px 4px / 110px 110px 4px 4px; background: var(--hueso-2); filter: grayscale(.35); transition: filter .2s; }
.lapida-nombre { margin-top: 12px; font-family: var(--gotica); font-size: 23px; line-height: 1; color: #d9d2bf; text-shadow: 0 -1px 0 rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.07); }
.lapida-n { margin-top: 6px; font-size: 12.5px; color: var(--formol); }
.lapida:hover { transform: translateY(-4px); border-color: #4b6158; }
.lapida:hover img { filter: none; }
@media (max-width: 1000px) {
  .lapidas { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin: 0 calc(var(--lado) * -1); padding-inline: var(--lado); scrollbar-width: none; }
  .lapidas::-webkit-scrollbar { display: none; }
  .lapida { flex: 0 0 42%; scroll-snap-align: start; }
}
@media (min-width: 560px) and (max-width: 1000px) { .lapida { flex-basis: 27%; } }

/* ---------- Grilla de productos ---------- */
.grilla { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 1000px) { .grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }
.tarjeta { display: flex; flex-direction: column; min-width: 0; }
.tarjeta-img { position: relative; display: block; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--hueso-2); }
.tarjeta-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: opacity .25s; }
.tarjeta-img img.alt { opacity: 0; }
/* La segunda foto solo se muestra si existe y ya cargó; la principal nunca queda en blanco */
.tarjeta-img img.alt { background: var(--hueso-2); }
@media (hover: hover) {
  .tarjeta-img:hover img.alt.ok { opacity: 1; }
  .tarjeta-img:has(img.alt.ok):hover img:not(.alt) { opacity: 0; }
}
.sello {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px 4px; transform: rotate(-4deg);
  font-family: var(--gotica); font-size: 19px; line-height: 1; font-weight: 700;
  color: var(--sangre); border: 2px solid var(--sangre); border-radius: 3px; background: rgba(243,239,229,.85);
}
.sello-linea { position: static; display: inline-block; vertical-align: middle; margin-left: 6px; transform: rotate(-3deg); background: transparent; color: #ff5a63; border-color: #ff5a63; }
.tarjeta-info { padding: 12px 2px 0; flex: 1; }
.tarjeta h3 { font-family: var(--texto); font-size: 15px; font-weight: 500; line-height: 1.35; }
.tarjeta h3 a { text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tarjeta h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.precio { margin-top: 6px; font-size: 16px; }
.precio strong { font-weight: 700; color: var(--hueso); }
.precio s { color: var(--formol); font-size: .88em; margin-left: 4px; }
.tarjeta-add {
  margin-top: 10px; min-height: 40px; padding: 8px; border-radius: var(--r); cursor: pointer; text-align: center; text-decoration: none;
  font-size: 14px; font-weight: 600; background: transparent; color: var(--hueso); border: 1.5px solid var(--losa);
  transition: border-color .15s, background-color .15s;
}
.tarjeta-add:hover { border-color: var(--sangre); background: var(--sangre); }

/* ---------- Puertas de categoría (paneles de hueso) ---------- */
.dupla { max-width: var(--ancho); margin: clamp(56px, 8vw, 100px) auto 0; padding: 0 var(--lado); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.puerta {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 340px; overflow: hidden;
  background: var(--hueso); color: #1a1512; text-decoration: none; border-radius: var(--r);
}
.puerta img { order: 2; width: 100%; height: 100%; max-height: 380px; object-fit: contain; padding: 18px; mix-blend-mode: multiply; transition: transform .35s ease; }
.puerta:hover img { transform: scale(1.04) rotate(-1deg); }
.puerta-texto { padding: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.puerta-titulo { font-family: var(--gotica); font-size: clamp(44px, 5vw, 72px); line-height: .9; font-weight: 800; }
.puerta-sub { font-size: 15px; color: #4a4239; max-width: 30ch; }
.puerta .btn-sec { color: #1a1512; border-color: rgba(26,21,18,.45); min-height: 44px; margin-top: 6px; }
.puerta:hover .btn-sec { background: #1a1512; color: var(--hueso); border-color: #1a1512; }
@media (max-width: 900px) { .dupla { grid-template-columns: 1fr; } .puerta { min-height: 260px; } }
@media (max-width: 480px) { .puerta { grid-template-columns: 1fr; } .puerta img { order: 0; max-height: 220px; } .puerta-texto { padding: 4px 22px 26px; } }

/* ---------- Garantías y grupo ---------- */
.garantias { max-width: var(--ancho); margin: clamp(56px, 8vw, 100px) auto 0; padding: 0 var(--lado); display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.garantias > div { border-top: 1px solid var(--losa); padding-top: 18px; }
.garantias h3 { font-size: 17px; font-weight: 600; font-family: var(--texto); }
.garantias p { margin-top: 6px; color: var(--formol); font-size: 15px; }
@media (max-width: 760px) { .garantias { grid-template-columns: 1fr; gap: 0; } .garantias > div { padding: 16px 0; } }
.contagio { max-width: 760px; margin: clamp(64px, 9vw, 112px) auto 0; padding: 0 var(--lado); text-align: center; }
.contagio h2 { font-size: clamp(40px, 5.4vw, 68px); }
.contagio p { margin: 12px auto 22px; color: var(--formol); max-width: 46ch; }

/* ---------- Listado ---------- */
.listado { max-width: var(--ancho); margin: 0 auto; padding: 28px var(--lado) 0; }
.migas { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--formol); }
.migas a { text-decoration: none; } .migas a:hover { color: var(--hueso); text-decoration: underline; }
.listado-cab h1 { margin-top: 10px; font-size: clamp(44px, 6vw, 80px); text-wrap: balance; }
.listado-n { margin-top: 6px; color: var(--formol); }
.filtros { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--losa); }
.segmentos { display: inline-flex; background: var(--tumba-2); border: 1px solid var(--losa); border-radius: 999px; padding: 4px; }
.segmentos a { padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 14.5px; color: var(--formol); }
.segmentos a[aria-current] { background: var(--hueso); color: var(--tumba); }
.ordenar { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--formol); }
.ordenar select { background: var(--tumba-2); border: 1px solid var(--losa); border-radius: var(--r); padding: 9px 12px; color: var(--hueso); }
.chips { display: flex; gap: 8px; margin: 16px 0 28px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--losa); text-decoration: none; font-size: 14px; color: #cdc6b3; white-space: nowrap; }
.chip:hover { border-color: var(--formol); color: var(--hueso); }
.chip-on { background: var(--hueso); color: var(--tumba); border-color: var(--hueso); font-weight: 600; }
.chip-on:hover { color: var(--tumba); }
.mas { text-align: center; margin-top: 40px; }
.mas-n { margin-top: 10px; color: var(--formol); font-size: 14px; }
.vacio { text-align: center; padding: 60px 20px; max-width: 560px; margin: 0 auto; }
.vacio h1, .vacio h2 { font-size: clamp(34px, 4vw, 48px); }
.vacio p { color: var(--formol); margin: 12px 0 22px; }
.vacio-alto { padding: 100px 20px; }

/* ---------- Producto ---------- */
.producto { max-width: var(--ancho); margin: 0 auto; padding: 20px var(--lado) 0; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px clamp(28px, 4vw, 64px); }
.producto > .migas { grid-column: 1 / -1; }
.galeria { min-width: 0; }
.galeria-principal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r); background: var(--hueso-2); scrollbar-width: none; }
.galeria-principal::-webkit-scrollbar { display: none; }
.galeria-principal figure { flex: 0 0 100%; margin: 0; aspect-ratio: 1; scroll-snap-align: start; display: grid; place-items: center; }
.galeria-principal img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.galeria-n { margin-top: 8px; font-size: 13px; color: var(--formol); text-align: right; }
.miniaturas { display: flex; gap: 8px; margin-top: 6px; overflow-x: auto; padding: 4px 2px; scrollbar-width: thin; }
.miniaturas button { flex: 0 0 72px; height: 72px; padding: 0; border-radius: 4px; overflow: hidden; border: 2px solid transparent; background: var(--hueso-2); cursor: pointer; opacity: .65; transition: opacity .15s, border-color .15s; }
.miniaturas button img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.miniaturas button[aria-selected="true"] { border-color: var(--vela); opacity: 1; }
.miniaturas button:hover { opacity: 1; }
.ficha { min-width: 0; }
@media (min-width: 901px) { .ficha { position: sticky; top: 90px; align-self: start; } }
.ficha h1 { font-size: clamp(38px, 4vw, 58px); text-wrap: balance; }
.precio-grande { margin-top: 14px; font-size: 26px; }
.precio-grande s { font-size: 18px; }
.intro { margin-top: 16px; color: #cfc8b5; font-size: 16.5px; max-width: 54ch; }
.compra { margin-top: 24px; display: grid; gap: 14px; }
.opcion { border: 0; padding: 0; margin: 0; }
.opcion legend { font-weight: 600; font-size: 14.5px; margin-bottom: 10px; padding: 0; }
.opcion-elegida { font-weight: 400; color: var(--formol); }
.opcion-valores { display: flex; flex-wrap: wrap; gap: 8px; }
.opcion-valores label { position: relative; }
.opcion-valores input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opcion-valores span { display: inline-flex; align-items: center; min-height: 44px; min-width: 52px; justify-content: center; padding: 8px 14px; border: 1.5px solid var(--losa); border-radius: var(--r); font-size: 14.5px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.opcion-valores input:hover + span { border-color: var(--formol); }
.opcion-valores input:checked + span { border-color: var(--hueso); background: var(--hueso); color: var(--tumba); font-weight: 600; }
.opcion-valores input:focus-visible + span { outline: 2px solid var(--vela); outline-offset: 2px; }
.opcion.falta .opcion-valores span { border-color: #ff5a63; }
.error-form { color: #ff7a81; font-size: 14.5px; font-weight: 500; }
.compra-fila { display: flex; gap: 10px; }
.btn-crece { flex: 1; }
.cantidad { display: inline-flex; align-items: center; border: 1.5px solid var(--losa); border-radius: var(--r); }
.cantidad button { width: 42px; height: 46px; background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--hueso); }
.cantidad button:hover { color: var(--vela); }
.cantidad input { width: 38px; text-align: center; background: none; border: 0; font-weight: 600; -moz-appearance: textfield; }
.cantidad input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cantidad-mini { margin-top: 8px; align-self: flex-start; }
.cantidad-mini button { width: 32px; height: 32px; font-size: 17px; }
.cantidad-mini span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.beneficios { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: 14.5px; color: #cfc8b5; }
.beneficios li { padding-left: 22px; position: relative; }
.beneficios li::before { content: ''; position: absolute; left: 3px; top: .5em; width: 8px; height: 8px; border: 1.5px solid var(--vela); transform: rotate(45deg); }
.plegable { border-top: 1px solid var(--losa); margin-top: 22px; }
.plegable + .plegable { margin-top: 0; }
.plegable summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.plegable summary::-webkit-details-marker { display: none; }
.plegable summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--formol); transition: transform .2s; }
.plegable[open] summary::after { transform: rotate(45deg); }
.plegable > p, .plegable > div, .plegable > ul { padding-bottom: 18px; color: #cfc8b5; font-size: 15px; }
.detalles { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.original { font-size: 14px !important; color: var(--formol) !important; max-height: 320px; overflow: auto; }
.compartir { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 0 0; border-top: 1px solid var(--losa); font-size: 14px; color: var(--formol); }
.compartir a { color: var(--hueso); text-underline-offset: 3px; }
.barra-compra {
  position: fixed; left: 0; right: 0; bottom: var(--vv-abajo, 0px); z-index: 60; display: flex; align-items: center; gap: 12px;
  padding: 12px var(--lado) calc(14px + env(safe-area-inset-bottom)); background: rgba(20,34,32,.98); box-shadow: 0 -10px 30px rgba(0,0,0,.45); border-top: 1px solid var(--losa);
  transform: translateY(110%); transition: transform .25s ease;
}
.barra-compra.visible { transform: none; }
.barra-compra img { width: 48px; height: 48px; border-radius: 4px; background: var(--hueso-2); object-fit: contain; }
.barra-compra-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.barra-compra-txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--formol); }
.barra-compra .btn { min-height: 44px; }
@media (min-width: 901px) { .barra-compra { display: none; } }
@media (max-width: 900px) { .producto { grid-template-columns: 1fr; }  }

/* ---------- Cajón del carrito ---------- */
.velo { position: fixed; inset: 0; z-index: 50; background: rgba(3,6,5,.7); opacity: 0; transition: opacity .25s; }
.velo.visible { opacity: 1; }
.cajon {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(440px, 100vw);
  display: flex; flex-direction: column; background: var(--tumba-2); border-left: 1px solid var(--losa);
  transform: translateX(102%); transition: transform .28s cubic-bezier(.2,.8,.2,1); visibility: hidden;
}
.cajon.abierto { transform: none; visibility: visible; box-shadow: -30px 0 80px rgba(0,0,0,.55); }
.cajon-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 10px 22px; }
.cajon-top h2 { font-size: 34px; }
.cajon-lista { list-style: none; margin: 0; padding: 0 22px; overflow-y: auto; flex: 1; }
.cajon-vacio { padding: 30px 22px; text-align: center; color: var(--formol); display: grid; gap: 18px; justify-items: center; }
.cajon-vacio[hidden], [data-pie][hidden], [data-checkout][hidden] { display: none !important; }
.cajon-pie { padding: 16px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--losa); display: grid; gap: 12px; justify-items: center; }
.linea { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--losa); align-items: flex-start; }
.linea img { width: 64px; height: 64px; border-radius: 4px; object-fit: contain; background: var(--hueso-2); padding: 3px; }
.linea-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.linea-nombre { font-weight: 500; font-size: 14.5px; line-height: 1.3; text-decoration: none; }
.linea-var { font-size: 13px; color: var(--formol); }
.linea-der { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 15px; }
.envio-meta { padding: 0 22px 12px; font-size: 14px; color: #cfc8b5; }
.envio-meta:empty { display: none; }
.meta-barra { margin-top: 8px; height: 6px; border-radius: 3px; background: var(--losa); overflow: hidden; }
.meta-barra span { display: block; height: 100%; background: var(--vela); border-radius: 3px; transition: width .4s ease; }
.fila-total { display: flex; justify-content: space-between; width: 100%; padding: 4px 0; font-size: 15px; }
.fila-grande { font-size: 19px; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--losa); }

/* ---------- Carrito y checkout ---------- */
.carrito-pagina, .checkout, .gracias { max-width: 1120px; margin: 0 auto; padding: 32px var(--lado) 0; }
.carrito-pagina h1, .checkout h1 { font-size: clamp(44px, 6vw, 72px); margin-bottom: 24px; }
.carrito-grid, .checkout-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.lista-grande, .lista-mini { padding: 0; }
.lista-grande .envio-meta, .carrito-grid .envio-meta { padding: 0 0 12px; }
.resumen { background: var(--tumba-2); border: 1px solid var(--losa); border-radius: var(--r); padding: 22px; display: grid; gap: 8px; justify-items: center; }
.resumen h2 { font-size: 32px; justify-self: start; margin-bottom: 6px; }
.resumen .btn { margin-top: 10px; }
.resumen-checkout { position: sticky; top: 92px; }
.resumen-checkout .lista-mini { width: 100%; max-height: 46vh; overflow: auto; margin-bottom: 8px; }
.lista-mini .linea img { width: 52px; height: 52px; }
.checkout-form { display: grid; gap: 26px; }
.checkout-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.checkout-form legend { font-family: var(--gotica); font-size: 30px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.campo { display: grid; gap: 6px; }
.campo label { font-size: 14px; font-weight: 500; color: #cfc8b5; }
.campo input, .campo select, .campo textarea { width: 100%; background: var(--tumba-2); border: 1.5px solid var(--losa); border-radius: var(--r); padding: 12px 14px; font-size: 16px; color: var(--hueso); }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: 0; border-color: var(--vela); }
.campo small { font-size: 12.5px; color: var(--formol); }
.campo-error input, .campo-error select { border-color: #ff5a63; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metodos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.metodo { position: relative; cursor: pointer; }
.metodo input { position: absolute; opacity: 0; }
.metodo span { display: grid; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--losa); border-radius: var(--r); transition: border-color .15s, background-color .15s; }
.metodo small { color: var(--formol); font-size: 13px; }
.metodo input:checked + span { border-color: var(--hueso); background: rgba(230,223,204,.06); }
.metodo input:focus-visible + span { outline: 2px solid var(--vela); outline-offset: 2px; }
.pasarela:empty { display: none; }
.pasarela { padding: 16px; border: 1px dashed var(--formol); border-radius: var(--r); }
.seguro { font-size: 13px; color: var(--formol); }
.btn-pagar { min-height: 56px; font-size: 17px; }
.legal-mini { font-size: 12.5px; color: var(--formol); text-align: center; margin-top: -12px; }
@media (max-width: 900px) {
  .carrito-grid, .checkout-grid { grid-template-columns: 1fr; }
  .resumen-checkout { position: static; order: -1; }
}
@media (max-width: 340px) { .dos { grid-template-columns: 1fr; } }

/* ---------- Gracias ---------- */
.gracias { max-width: 680px; text-align: center; padding-top: 56px; }
.gracias-sello .ataud { width: 44px; height: 58px; margin: 0 auto 18px; }
.gracias h1 { font-size: clamp(40px, 5vw, 60px); text-wrap: balance; }
.gracias-sub { margin-top: 14px; color: #cfc8b5; }
.estado-pendiente { display: inline-block; margin-top: 14px; padding: 6px 12px; border: 1px solid var(--vela); color: var(--vela); border-radius: 999px; font-size: 14px; }
.gracias .lista-mini { text-align: left; margin-top: 26px; }
.resumen-plano { background: none; border: 0; padding: 12px 0 0; }
.gracias .cripta-acciones { justify-content: center; }

/* ---------- Pie ---------- */
.pie { margin-top: clamp(72px, 10vw, 128px); border-top: 1px solid var(--losa); background: #0A1110; }
.pie-in { max-width: var(--ancho); margin: 0 auto; padding: 48px var(--lado) 28px; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.pie-marca p { margin-top: 12px; color: var(--formol); max-width: 36ch; font-size: 15px; }
.pie nav { display: grid; gap: 8px; align-content: start; }
.pie nav h2 { font-family: var(--texto); font-size: 14px; font-weight: 600; color: var(--hueso); margin-bottom: 4px; }
.pie nav a { color: var(--formol); text-decoration: none; font-size: 14.5px; }
.pie nav a:hover { color: var(--hueso); text-decoration: underline; }
.pie-legal { max-width: var(--ancho); margin: 0 auto; padding: 18px var(--lado) 28px; font-size: 13px; color: var(--formol); border-top: 1px solid var(--losa); }
@media (max-width: 760px) { .pie-in { grid-template-columns: 1fr 1fr; } .pie-marca { grid-column: 1 / -1; } }

/* ---------- Flotantes ---------- */
.wa-flotante { position: fixed; right: 18px; bottom: calc(18px + var(--vv-abajo, 0px) + env(safe-area-inset-bottom)); z-index: 25; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #1f7a4a; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.45); transition: transform .15s; }
.wa-flotante:hover { transform: scale(1.06); }
.wa-flotante svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.tostada { position: fixed; left: 50%; bottom: 28px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--hueso); color: var(--tumba); font-weight: 600; padding: 12px 20px; border-radius: 999px; transition: opacity .2s, transform .2s; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.tostada.visible { opacity: 1; transform: translate(-50%, 0); }

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

/* ===== Promoción, combo y envío ===== */
.precio-ref { margin-top: 2px; font-size: 13px; color: var(--formol); }
.precio-ref s { text-decoration-thickness: 1px; }
.precio-ref-grande { font-size: 14.5px; margin-top: 4px; }
.promesa { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 14px; }
.promesa span::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 8px 2px 0; border: 1.5px solid var(--vela); transform: rotate(45deg); }
.combo { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--losa); border-left: 3px solid var(--vela); border-radius: var(--r); background: var(--tumba-2); }
.combo-tit { font-family: var(--gotica); font-size: 22px; line-height: 1.1; }
.combo-tit span { font-family: var(--texto); font-size: 13px; color: var(--formol); margin-left: 6px; }
.combo-escala { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.combo-escala li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 4px; background: var(--tumba); font-size: 12.5px; color: var(--formol); }
.combo-escala strong { color: var(--hueso); font-size: 15px; }
.combo-escala li:last-child strong { color: var(--vela); }
.combo-nota, .nota-envio { margin-top: 8px; font-size: 13px; color: var(--formol); }
.combo-pasos { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; font-size: 12.5px; }
.combo-pasos li { padding-top: 6px; border-top: 3px solid var(--losa); color: var(--formol); }
.combo-pasos li.on { border-color: var(--vela); color: var(--hueso); }
.envio-ok { margin-top: 10px; font-size: 13px; color: var(--formol); }
.fila-ahorro span:last-child { color: var(--vela); font-weight: 600; }
.ahorro-eeuu { font-size: 13px; color: var(--formol); text-align: center; margin-top: 8px; }
.compartir .btn { min-height: 44px; }

/* ===== "Deja que la cripta escoja" ===== */
.pista-btn { margin-top: 14px; min-height: 44px; padding: 0; background: none; border: 0; font: inherit; font-size: 15px; color: var(--vela); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; pointer-events: auto; text-align: left; }
.revelado { position: absolute; z-index: 2; right: var(--lado); bottom: clamp(32px, 6vw, 72px); width: min(340px, calc(100% - 2 * var(--lado))); padding: 18px; display: grid; grid-template-columns: 72px 1fr; gap: 4px 14px; background: rgba(14,23,22,.95); border: 1px solid var(--losa); border-top: 3px solid var(--vela); border-radius: var(--r); }
.revelado[hidden] { display: none; }
.revelado-msg { grid-column: 1 / -1; font-family: var(--gotica); font-size: 24px; line-height: 1.05; padding-right: 40px; margin-bottom: 6px; }
.revelado img { grid-row: span 2; width: 72px; height: 72px; object-fit: contain; background: var(--hueso-2); border-radius: 4px; }
.revelado-nombre { font-size: 15px; line-height: 1.3; }
.revelado .precio { margin-top: 0; }
.revelado-acc { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 12px; }
.revelado-acc .btn { flex: 1; padding-inline: 10px; }
.revelado-cerrar { position: absolute; top: 8px; right: 8px; }
.cripta-mosaico img.elegida { filter: none; }
@media (max-width: 700px) { .cripta.revelando .cripta-texto { visibility: hidden; } .revelado { left: var(--lado); right: var(--lado); width: auto; bottom: 24px; } }
@media (prefers-reduced-motion: no-preference) { .revelado:not([hidden]) { animation: emerge .35s ease-out; } }
@keyframes emerge { from { opacity: 0; transform: translateY(12px); } }

/* ===== Checkout corto ===== */
.resumen-checkout summary { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; list-style: none; cursor: pointer; font-family: var(--gotica); font-size: 26px; }
.resumen-checkout summary::-webkit-details-marker { display: none; }
.resumen-checkout summary strong { font-family: var(--texto); font-size: 17px; margin-left: auto; }
.resumen-checkout[open] summary { margin-bottom: 10px; }
@media (max-width: 900px) { .resumen-checkout summary::after { content: 'Ver'; font: 500 14px var(--texto); color: var(--formol); text-decoration: underline; } .resumen-checkout[open] summary::after { content: 'Ocultar'; } }
.mas-campos summary { min-height: 44px; display: flex; align-items: center; color: var(--formol); text-decoration: underline; cursor: pointer; }
.promesa-pago { margin: 6px 0 -12px; font-size: 14px; color: #cfc8b5; }
.promesa-pago small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--formol); }
.legal-mini a { color: var(--hueso); }
.pagina-checkout .wa-flotante { display: none; }
.resumen-checkout { display: block; text-align: center; }
.resumen-checkout > * { text-align: left; }
.resumen-checkout > .enlace-sutil { display: inline-block; margin-top: 10px; }


/* =========================================================
   CAPA MACABRA: sangre, grano de película, cinta policial y etiquetas de morgue
   ========================================================= */
/* Sangre que escurre bajo la banda de promoción */

/* Grano de película antigua sobre todo el sitio (estático, no afecta clics) */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Viñeta roja en la cripta y título que parpadea como bombillo dañado (una sola vez) */
.cripta::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; box-shadow: inset 0 0 160px 40px rgba(110,10,18,.55); }
.cripta h1 { text-shadow: 0 0 1px rgba(230,223,204,.4), 0 4px 30px rgba(0,0,0,.6), 0 0 42px rgba(177,20,30,.35); }
@media (prefers-reduced-motion: no-preference) {
  .cripta h1 { animation: bombillo 1.6s steps(1, end) .25s both; }
}
@keyframes bombillo {
  0% { opacity: 0; } 8% { opacity: 1; } 12% { opacity: .15; } 18% { opacity: 1; } 36% { opacity: 1; }
  38% { opacity: .3; } 41% { opacity: 1; } 70% { opacity: 1; } 72% { opacity: .55; } 74%, 100% { opacity: 1; }
}

/* Cinta de escena del crimen con las promociones */
.cinta { position: relative; z-index: 3; margin: -26px -2vw 0; transform: rotate(-2.2deg); background: #F2C230; color: #120d07; border-block: 3px solid #120d07; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.cinta-pista { display: flex; width: max-content; }
.cinta-grupo { display: flex; flex: none; }
.cinta-grupo span { padding: 11px 26px; font-weight: 700; font-size: 15px; letter-spacing: .02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 26px; }
.cinta-grupo span::after { content: ''; width: 9px; height: 9px; background: #120d07; transform: rotate(45deg); flex: none; }
@media (prefers-reduced-motion: no-preference) { .cinta-pista { animation: cinta 38s linear infinite; } .cinta:hover .cinta-pista { animation-play-state: paused; } }
@keyframes cinta { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cinta-pista { flex-wrap: wrap; width: auto; } .cinta-grupo[aria-hidden] { display: none; } }

/* Etiqueta de dedo (morgue) con el precio sobre cada foto */
.etiqueta-dedo {
  position: absolute; left: 10px; bottom: 12px; z-index: 2; display: inline-flex; align-items: baseline; gap: 5px;
  padding: 6px 12px 6px 24px; background: var(--hueso); color: #1a1512; transform: rotate(-3deg); transform-origin: left center;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
  box-shadow: 0 3px 10px rgba(0,0,0,.25); transition: transform .2s ease;
}
.etiqueta-dedo::before { content: ''; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--tumba); box-shadow: inset 0 0 0 1.5px #8d8471; }
.etiqueta-dedo strong { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.etiqueta-dedo small { font-size: 11px; font-weight: 600; color: #6b6255; }
.tarjeta-img:hover .etiqueta-dedo { transform: rotate(2deg) translateY(-2px); }
.tarjeta-info { padding-top: 10px; }
.tarjeta .precio-ref { margin-top: 4px; }
.tarjeta-img { box-shadow: 0 0 0 1px rgba(110,10,18,0); transition: box-shadow .2s; }
@media (hover: hover) { .tarjeta-img:hover { box-shadow: 0 0 0 2px var(--sangre), 0 10px 40px rgba(177,20,30,.35); } }
.lapida:hover { box-shadow: 0 -10px 40px rgba(240,163,58,.18); }

/* Moneda visible */
.moneda { font-size: .55em; font-weight: 600; color: var(--formol); letter-spacing: .04em; vertical-align: .25em; }
.fila-grande .moneda { font-size: 12px; vertical-align: .15em; }
.revelado .moneda { font-size: 11px; }

/* Encabezado compacto al bajar (móvil) */
@media (max-width: 900px) {
  html { overflow-anchor: none; }   /* evita que el navegador "corrija" el scroll al encoger el encabezado */
  .barra .buscar { transition: margin .25s ease, max-height .25s ease, opacity .2s; max-height: 60px; }
  .barra.compacta .buscar { max-height: 0; margin: 0; opacity: 0; overflow: hidden; border-width: 0; pointer-events: none; }
}

/* Títulos de sección con un hilo de sangre debajo */
.seccion-cab h2 { position: relative; padding-bottom: 10px; }
.seccion-cab h2::after { content: ''; position: absolute; left: 2px; bottom: 0; width: 64px; height: 3px; background: var(--sangre); border-radius: 2px; }
.seccion-cab h2::before { content: ''; position: absolute; left: 38px; bottom: -9px; width: 3px; height: 10px; background: var(--sangre); border-radius: 0 0 3px 3px; }

.tarjeta-promo { margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--vela); }

.seccion-sub { margin: -8px 0 22px; color: var(--formol); max-width: 60ch; }
.seccion-latex { position: relative; }
.seccion-latex::before { content: ''; position: absolute; inset: 20px 0 auto; height: 70%; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 20% 40%, rgba(110,10,18,.35), transparent 60%); }

/* ---------- Términos y políticas ---------- */
.politicas { max-width: 820px; margin: 0 auto; padding: 32px var(--lado) 0; }
.politicas h1 { font-size: clamp(44px, 6vw, 72px); }
.politicas-act { color: var(--formol); margin-top: 8px; font-size: 14px; }
.politicas-indice { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.politicas-indice a { padding: 7px 13px; border: 1px solid var(--losa); border-radius: 999px; text-decoration: none; font-size: 14px; color: #cdc6b3; }
.politicas-indice a:hover { border-color: var(--formol); color: var(--hueso); }
.politicas article { padding-top: 36px; border-bottom: 1px solid var(--losa); padding-bottom: 28px; }
.politicas h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 12px; }
.politicas h3 { font-family: var(--texto); font-size: 17px; font-weight: 600; margin: 18px 0 8px; }
.politicas p, .politicas li { color: #cfc8b5; font-size: 15.5px; line-height: 1.65; }
.politicas ul { padding-left: 20px; margin: 8px 0; display: grid; gap: 6px; }
.politicas a { color: var(--hueso); }
.legal-mini a { color: var(--hueso); }
body.sin-scroll .barra-compra { transform: translateY(110%); }

/* ---------- HOT ---------- */
.nav-hot { display: inline-flex !important; align-items: center; gap: 5px; color: #FFC56B !important; font-weight: 700 !important; }
.nav-hot svg { width: 16px; height: 16px; fill: var(--sangre-viva); stroke: #FFC56B; stroke-width: 1.2; }
@media (max-width: 900px) { .nav-hot svg { width: 24px; height: 24px; } }
.sello-hot { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 9px 3px; background: var(--sangre); color: var(--hueso); font-weight: 800; font-size: 13px; letter-spacing: .06em; border-radius: 3px; transform: rotate(3deg); box-shadow: 0 0 0 2px rgba(243,239,229,.85), 0 4px 14px rgba(177,20,30,.5); }
.seccion-hot h2 { display: flex; align-items: center; gap: 10px; }
.hot-llama { width: .85em; height: .85em; flex: none; }
@media (prefers-reduced-motion: no-preference) { .hot-llama { animation: llama 1.4s ease-in-out infinite alternate; transform-origin: 50% 100%; } }
@keyframes llama { from { transform: scaleY(1) rotate(-2deg); } to { transform: scaleY(1.08) rotate(2deg); } }


/* =========================================================
   ARREGLOS MÓVIL (iOS Safari / navegadores con barra flotante)
   ========================================================= */
@media (max-width: 900px) {
  /* El desenfoque convertía al encabezado en contenedor del menú fijo: el menú quedaba recortado y transparente */
  .barra { background: #0E1716; backdrop-filter: none; -webkit-backdrop-filter: none; }
  body.menu-abierto .barra { z-index: 75; }
  .menu { height: 100vh; height: 100dvh; overflow-y: auto; padding-top: calc(88px + env(safe-area-inset-top)); background: #142220; }

  /* Barra de compra arriba: abajo la tapan las barras flotantes de Safari y de Instagram/TikTok */
  .barra-compra {
    top: 0; bottom: auto !important; z-index: 72;
    padding: calc(10px + env(safe-area-inset-top)) var(--lado) 10px;
    border-top: 0; border-bottom: 1px solid var(--losa); box-shadow: 0 10px 30px rgba(0,0,0,.5);
    transform: translateY(-110%);
  }
  .barra-compra.visible { transform: none; }
  body.sin-scroll .barra-compra { transform: translateY(-110%); }

  /* Botón de WhatsApp por encima de la barra flotante del navegador */
  .wa-flotante { bottom: calc(24px + var(--vv-abajo, 0px) + env(safe-area-inset-bottom)); width: 50px; height: 50px; }
}

.menu-cerrar { display: none; }
@media (max-width: 900px) { .menu-cerrar { display: inline-grid; position: absolute; top: calc(18px + env(safe-area-inset-top)); right: 14px; } }


/* =========================================================
   ARREGLOS QA (informe del agente)
   ========================================================= */
/* 2. Píldora de categorías desplazable en móvil */
.segmentos { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmentos::-webkit-scrollbar { display: none; }
.segmentos a { flex: none; white-space: nowrap; }
/* 3. Evitar zoom de iOS en campos */
.buscar input, .ordenar select, .campo input, .campo select, .campo textarea { font-size: 16px; }
/* 4. Tostada visible y sin tapar botones */
.tostada { bottom: calc(28px + env(safe-area-inset-bottom) + var(--vv-abajo, 0px)); max-width: calc(100vw - 32px); text-align: center; }
@media (max-width: 900px) {
  .tostada { top: calc(12px + env(safe-area-inset-top)); bottom: auto; transform: translate(-50%, -20px); }
  .tostada.visible { transform: translate(-50%, 0); }
}
/* 5. Barra de compra y encabezado no se apilan */
@media (max-width: 900px) {
  .barra-compra { background: #142220; }
  body.compra-visible .barra { visibility: hidden; }
}
/* 7. Menú cerrado fuera del orden de tabulación */
@media (max-width: 900px) {
  .menu { visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
  .menu.abierto { visibility: visible; transition: transform .25s ease; }
  body.menu-abierto .barra-in > :not(.menu) { pointer-events: none; }
}
/* 9. Bloqueo de scroll en iOS */
html:has(body.sin-scroll) { overflow: hidden; }
.menu, .cajon-lista { overscroll-behavior: contain; }
/* 10. Altura del héroe con barras de Safari */
.cripta { min-height: min(88svh, 780px); }
@media (max-width: 700px) { .cripta { min-height: 82vh; min-height: 82svh; } }
/* 11. Pantallas muy angostas (Fold) */
@media (max-width: 360px) {
  .etiqueta-dedo { left: 6px; padding: 5px 8px 5px 20px; }
  .etiqueta-dedo strong { font-size: 15px; }
  .etiqueta-dedo small { display: none; }
  .revelado-acc { flex-direction: column; }
}
body.revelando .wa-flotante { display: none; }
/* 12. Cinta sin desborde horizontal en iOS < 16 */
.cinta-marco { position: relative; z-index: 3; overflow: hidden; margin-top: -56px; padding: 30px 0; margin-bottom: -30px; pointer-events: none; }
.cinta-marco .cinta { margin: 0 -2vw; pointer-events: auto; }
/* 14. Hover pegajoso en pantallas táctiles: se anulan los efectos */
@media (hover: none) {
  .tarjeta-add:hover { border-color: var(--losa); background: transparent; }
  .lapida:hover { transform: none; border-color: #33463F; box-shadow: none; }
  .lapida:hover img { filter: grayscale(.35); }
  .puerta:hover img { transform: none; }
  .puerta:hover .btn-sec { background: transparent; color: #1a1512; border-color: rgba(26,21,18,.45); }
  .btn-compra:hover { background: var(--sangre); }
  .btn-sec:hover { background: transparent; border-color: rgba(230,223,204,.45); }
  .tarjeta-img:hover .etiqueta-dedo { transform: rotate(-3deg); }
}
/* 15. Áreas táctiles de 44px */
.cantidad-mini button { width: 44px; height: 44px; }
.linea-der .enlace-sutil, .compartir .enlace-sutil, .seccion-cab .enlace-sutil { min-height: 44px; display: inline-flex; align-items: center; }
.segmentos a, .chip, .politicas-indice a { min-height: 44px; display: inline-flex; align-items: center; }
/* Menores */
.puerta img { aspect-ratio: 1; }
.campo-error input:focus, .campo-error select:focus { border-color: #ff5a63; }
/* Grano de película: más liviano en móvil para evitar parpadeos en iOS */
@media (max-width: 900px) { body::after { display: none; } }
[hidden] { display: none !important; }

/* ---------- Pie: datos de la empresa y aviso de cookies ---------- */
.pie-empresa { margin-top: 14px; font-style: normal; font-size: 13.5px; line-height: 1.6; color: var(--formol); max-width: 46ch; }
.pie-empresa a { color: #cfc8b5; }
.cookies { position: fixed; left: 16px; right: 16px; bottom: calc(16px + var(--vv-abajo, 0px) + env(safe-area-inset-bottom)); z-index: 90; max-width: 560px; margin: 0 auto; padding: 16px; display: grid; gap: 12px; background: #142220; border: 1px solid var(--losa); border-radius: var(--r); box-shadow: 0 20px 50px rgba(0,0,0,.6); font-size: 14px; color: #cfc8b5; }
.cookies a { color: var(--hueso); }
.cookies div { display: flex; gap: 8px; justify-content: flex-end; }
.cookies .btn { min-height: 44px; padding: 10px 16px; }
.seo-texto { max-width: 70ch; margin: 48px 0 0; color: var(--formol); font-size: 15px; line-height: 1.7; }
.seo-texto h2 { font-size: clamp(26px, 3vw, 34px); color: var(--hueso); margin-bottom: 10px; }
.seo-texto p + p { margin-top: 10px; }

/* Redes sociales en el pie */
.redes { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; }
.redes a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid currentColor; border-radius: 999px; color: inherit; text-decoration: none; font-weight: 600; font-size: .9rem; opacity: .9; transition: background .2s, color .2s, opacity .2s; }
.redes a:hover, .redes a:focus-visible { opacity: 1; background: var(--sangre, #D11A26); border-color: var(--sangre, #D11A26); color: #fff; }
.redes svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.redes svg .lleno { fill: currentColor; stroke: none; }

/* ---------- Barra superior: sangre chorreando ---------- */
.aviso { background: linear-gradient(180deg, #93101C 0%, #7E0B13 70%, #76090F 100%); box-shadow: inset 0 1px 0 rgba(255,140,140,.22); }
.goteo { --h: 58px; position: relative; z-index: 41; height: var(--h); margin: -1px 0 -14px; pointer-events: none; overflow: hidden;
  background: linear-gradient(#0E1716, #0E1716) 0 0 / 100% calc(var(--h) - 14px) no-repeat; }
.goteo-svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
@media (max-width: 700px) { .goteo { --h: 44px; margin-bottom: -10px; background-size: 100% calc(var(--h) - 10px); } }

/* ---------- Tallas ---------- */
.guia-enlace { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--formol); text-decoration: underline; text-underline-offset: 3px; }
.guia-enlace:hover { color: var(--hueso); }
.opcion legend { display: flex; align-items: baseline; gap: 6px; width: 100%; }
.talla-info { margin: 4px 0 14px; padding: 10px 12px; border-left: 3px solid var(--sangre-viva); background: rgba(209,26,38,.08); border-radius: 0 var(--r) var(--r) 0; font-size: 14px; line-height: 1.5; color: var(--hueso); }
.tabla-tallas-marco { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0; }
.tabla-tallas { width: 100%; min-width: 360px; border-collapse: collapse; font-size: 14px; }
.tabla-tallas th, .tabla-tallas td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--losa); white-space: nowrap; }
.tabla-tallas thead th { color: var(--formol); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.tabla-tallas tbody th { color: var(--hueso); font-weight: 600; }
.guia-nota { font-size: 13.5px; color: var(--formol); }
.tabla-tallas td:last-child { white-space: normal; min-width: 90px; }
@media (max-width: 520px) { .tabla-tallas { min-width: 0; font-size: 13px; } .tabla-tallas th, .tabla-tallas td { padding: 8px 5px; } .tabla-tallas thead th { font-size: 11px; letter-spacing: 0; } }
