@font-face {
  font-family: "JunkyTitle";
  src: url("../fonts/alice-in-wonderland.ttf") format("truetype");
}

/* ===============================
   COLOR BASE (evita textos oscuros)
=============================== */

body {
  font-family: 'Cormorant Garamond', serif;
  color: #e6e0c8;   /* ← texto claro global */
}

/* títulos siempre visibles */
h1, h2, h3, h4 {
  color: var(--accent);
}

/* ===============================
   HEADER
=============================== */

.simple-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  text-align: left;
}

.simple-header a {
  color: #e6d37a !important;
  font-family: "JunkyTitle", serif;
  font-size: 1.6rem;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: bold;
  text-shadow:
    0 0 6px rgba(0,0,0,0.9),
    0 0 12px rgba(0,0,0,0.9),
    0 0 14px rgba(230,211,122,0.6);
  transition: 0.25s ease;
}

.simple-header a:hover {
  color: #fff1a8 !important;
  text-shadow:
    0 0 10px rgba(230,211,122,0.9),
    0 0 20px rgba(230,211,122,0.9);
}

/* ===============================
   HERO / HOME
=============================== */

.logo-principal {
  display: block;
  width: 400px;   /* tamaño del logo */
  max-width: 80vw; /* adaptable a móviles */
  height: auto;

  margin: 0 auto 18px auto;
  position: relative;
  
  filter: drop-shadow(0 0 18px rgba(212,191,99,0.35));
}

.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ===============================
   FONDOS
=============================== */

.home {
  background:
    linear-gradient(rgba(0,0,0,0.40), rgba(0,0,0,0.60)),
    url("../images/fondo-home.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.catalogo {
  background:
    linear-gradient(rgba(0,0,0,0.50), rgba(0,0,0,0.70)),
    url("../images/fondo-catalogo.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ===============================
   CATEGORÍAS
=============================== */

.categoria-card span {
  font-family: "JunkyTitle", serif;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

/* ===============================
   PRODUCTOS (FORMATO TIENDA)
=============================== */

/* GRID horizontal */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto 80px;
}

/* tarjeta */
.producto-card {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(184,162,74,0.25);
  padding: 16px;
  text-align: center;
  transition: 0.3s ease;
  box-shadow: 0 0 14px rgba(0,0,0,0.6);
  
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);

transform: translateZ(0);
}

.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 24px rgba(184,162,74,0.35);
}

.producto-card-link {
  cursor: pointer;
}

.producto-card-link:focus-visible {
  outline: 2px solid #d7be4f;
  outline-offset: 4px;
}


/* imagen más compacta */
.producto-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 10px;
  transition: transform .4s ease;
}

/* nombre */
.producto-card h3 {
  font-family: "JunkyTitle";
  font-size: 1.5rem;
  margin: 10px 0 6px;
  color: var(--accent);
}

/* precio */
.precio {
  font-size: 1.3rem;
  color: #e6d37a;
  margin-bottom: 10px;
}

/* descripción */
.descripcion {
  color: #e6e0c8;
  font-size: 1.40rem;   /* 👈 más grande en PC */
  line-height: 1.6;
  margin-bottom: 14px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 0 4px rgba(0,0,0,0.8);
}

/* botón */
.btn-comprar {
  border: 2px solid var(--accent);
  background: rgba(0,0,0,0.35);
  color: var(--accent);

  padding: 16px 34px;   /* 👈 botón mucho más grande */
  font-size: 2.2rem;    /* 👈 texto más visible */
  letter-spacing: 2px;
  font-family: "JunkyTitle", serif;

  cursor: pointer;
  transition: 0.25s ease;

  display: inline-block;
  margin-top: 12px;
  
  text-shadow:
    0 0 6px rgba(0,0,0,0.9),
    0 0 12px rgba(0,0,0,0.9);
}

/* efecto hover elegante */
.btn-comprar:hover {
  background: var(--accent);
  color: #120c09;
  transform: scale(1.05);
}

/* efecto presión real */
.btn-comprar:active {
  transform: scale(0.96);
}

.btn-comprar:hover {
  background: var(--accent);
  color: #120c09;
}

/* hover elegante */
.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 30px rgba(0,0,0,0.55);
}

.producto-card:hover img {
  transform: scale(1.06);
}

/* ===============================
   LINK TARJETA (clickable)
=============================== */

.producto-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.producto-detalle {
  max-width: 500px;
  margin: auto;
  text-align: center;
}

.producto-detalle img {
  width: 100%;
  margin-bottom: 20px;
}
/* BOTÓN CARRITO FLOTANTE */
.carrito-float {
  /* Debe quedar anclado al viewport, incluso en Safari/iOS. */
  position: fixed !important;
  bottom: 25px;
  right: 25px;
  background: #b8a24a;
  color: #120c09;
  font-size: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2147483647;
}

.carrito-float:hover {
  transform: scale(1.1);
  box-shadow: 0 0 35px rgba(184,162,74,0.8);
}

/* contador */
#contador-carrito {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #120c09;
  color: #e6d37a;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 50%;
  font-weight: bold;
}

@keyframes carritoPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.carrito-animado {
  animation: carritoPulse 0.35s ease;
}
.cantidad-control {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}

.cantidad-control button {
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s ease;
}

.cantidad-control button:hover {
  background: var(--accent);
  color: #0f0a08;
}

.cantidad-control span {
  min-width: 22px;
  text-align: center;
  font-weight: bold;
}
@media (max-width: 600px) {

  .carrito-float {
    width: 64px;
    height: 64px;
    font-size: 26px;
    bottom: 18px;
    right: 18px;
  }

  #contador-carrito {
    font-size: 14px;
    padding: 4px 8px;
  }

}
.pagina-oscura {
  background: #0f0a08;
  color: #d8cfb0;
  font-family: 'Cormorant Garamond', serif;
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  text-align: center;
}

/* header fijo arriba */
.header-simple {
  position: absolute;
  top: 25px;
  left: 30px;
}

/* botón volver */
.volver {
  color: #e6d37a;
  font-family: "JunkyTitle";
  font-size: 1.4rem;
  text-decoration: none;
  letter-spacing: 2px;

  text-shadow:
    0 0 6px rgba(0,0,0,0.9),
    0 0 12px rgba(230,211,122,0.6);

  transition: .25s;
}

.volver:hover {
  color: #fff1a8;
  text-shadow:
    0 0 10px rgba(230,211,122,1),
    0 0 20px rgba(230,211,122,0.9);
}

.contacto-links {
  margin-top: 54px;
  display: flex;
  justify-content: center;
  gap: 48px; /* separación mayor */
  flex-wrap: wrap;
}

.contacto-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 2px solid var(--accent);
  padding: 18px 34px;
  color: var(--accent);
  text-decoration: none;
  font-family: "JunkyTitle", serif;
  font-size: 2rem;
  letter-spacing: 2.5px;
  transition: .3s;
}

.contacto-contenedor .intro,
.sobre-contenedor #about-page-body > p {
  font-family: "JunkyTitle", serif;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  font-size: 1.85rem;
  line-height: 1.55;
  letter-spacing: 0.5px;
}

.contacto-contenedor .titulo-seccion,
.sobre-contenedor .titulo-seccion {
  font-family: "JunkyTitle", serif;
  font-size: 2.8rem;
  letter-spacing: 1px;
}

.contacto-contenedor .titulo-seccion {
  margin-bottom: 24px;
  font-size: 4.2rem;
}

.sobre-contenedor {
  font-family: "JunkyTitle", serif;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 30px;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1.6;
}

.sobre-contenedor #about-page-body > p {
  margin: 0 auto 1.65rem;
}

.sobre-contenedor .titulo-seccion {
  margin-bottom: 30px;
  font-size: 4.2rem;
}

.contacto-btn:hover {
  background: var(--accent);
  color: #0f0a08;
}

.icono {
  font-size: 2.6rem;
}

.fa-whatsapp {
  color: #25D366;
}

.fa-instagram {
  color: #E1306C;
}
/* botón volver fijo arriba izquierda */
.simple-header {
  position: absolute;
  top: 25px;
  left: 25px;
  z-index: 10;
}
/* evita que títulos queden debajo del botón volver */
.catalogo h1,
.catalogo .titulo-catalogo,
.producto-detalle h1 {
  margin-top: 80px;
}


/* evita que el contenido lo tape */
.contacto-contenedor {
  padding-top: 100px;
}


/* 📱 PRODUCTOS EN MÓVIL */
@media screen and (max-width: 700px) {

  .contacto-links {
    margin-top: 30px;
    gap: 18px;
  }

  .contacto-btn {
    gap: 9px;
    padding: 13px 18px;
    font-size: 1.3rem;
    letter-spacing: 1px;
  }

  .contacto-contenedor .intro,
  .sobre-contenedor #about-page-body > p {
    max-width: 34rem;
    padding: 0 20px;
    font-size: 1.15rem;
  }

  .contacto-contenedor .titulo-seccion {
    margin-bottom: 16px;
    font-size: 2.5rem;
  }

  .sobre-contenedor {
    max-width: 34rem;
    padding: 0 20px;
  }

  .sobre-contenedor .titulo-seccion {
    margin-bottom: 16px;
    font-size: 2.5rem;
  }

  .icono {
    font-size: 1.7rem;
  }

  .productos-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }

  .producto-card {
    width: 92vw;
    max-width: 420px;
  }

  .producto-card img {
    height: auto;
    max-height: 55vh;
    object-fit: cover;
  }

}
/* centrar títulos de catálogo y especies */
.catalogo h1,
.titulo-catalogo,
.producto-detalle h1 {
  text-align: center;
  width: 100%;
}

/* =========================
   📱 MÓVIL OPTIMIZADO TOTAL
========================= */
@media screen and (max-width: 700px) {

  body {
    font-size: 18px;
  }

  /* títulos de familias */
  .titulo-catalogo {
    font-size: 2.8rem;
    text-align: center;
  }

  /* nombres especies */
  .producto-card h3 {
    font-size: 2rem;
    margin-top: 12px;
  }

  /* precio */
  .precio {
    font-size: 1.9rem;
    margin: 12px 0;
  }

  /* descripción */
  .descripcion {
    font-size: 1.25rem;
    line-height: 1.7;
    padding: 0 12px;
  }

  /* botón comprar */
  .btn-comprar {
    font-size: 1.35rem;
    padding: 18px;
    width: 100%;
    margin-top: 10px;
  }

  /* productos uno por pantalla */
  .productos-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 55px;
  }

  .producto-card {
    width: 94vw;
    max-width: 430px;
  }

  .producto-card img {
    height: auto;
    max-height: 60vh;
    object-fit: cover;
  }

  /* carrito más cómodo */
  .carrito-float {
    width: 70px;
    height: 70px;
    font-size: 28px;
    /* Deja margen real sobre la barra inferior y la isla dinámica de iPhone. */
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
    right: max(20px, env(safe-area-inset-right));
  }

}

/* =========================
   📱 DETALLE PRODUCTO + CARRITO
========================= */
@media screen and (max-width: 700px) {

  /* página detalle producto */
  .producto-detalle {
    padding: 20px;
  }

  .producto-detalle img {
    width: 95%;
    max-width: 420px;
    margin-bottom: 20px;
  }

  .producto-detalle h1 {
    font-size: 2.4rem;
  }

  .producto-detalle .precio {
    font-size: 2rem;
    margin: 15px 0;
  }

  .producto-detalle p {
    font-size: 1.25rem;
    line-height: 1.7;
  }

  .producto-detalle button {
    width: 100%;
    padding: 20px;
    font-size: 1.3rem;
  }

  /* controles + - */
  .cantidad-control button {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }

  .cantidad-control span {
    font-size: 1.4rem;
  }

  /* carrito */
  #carrito-contenido {
    padding: 15px;
  }

  #carrito-contenido .producto-card h3 {
    font-size: 1.6rem;
  }

  #carrito-contenido .precio {
    font-size: 1.5rem;
  }

  #total {
    font-size: 2rem;
    margin-top: 20px;
  }

  /* botón pagar */
  .btn-pagar {
    width: 100%;
    padding: 20px;
    font-size: 1.3rem;
  }

}

#pagarMP{
  display:block;
  margin:40px auto;
  font-size:1.3rem;
  padding:18px 30px;
}

/* ===============================
   CATEGORÍAS (RESTAURAR ESTILO)
=============================== */

.categoria-card {
  border: 1px solid rgba(184,162,74,0.25);
  transition: 0.35s ease;
}

.categoria-card span {
  font-family: "JunkyTitle";
  font-size: 1.2rem;
  color: #e6d37a;
  letter-spacing: 2px;
  text-shadow:
    0 0 8px rgba(0,0,0,0.9),
    0 0 14px rgba(230,211,122,0.6);
}

/* glow al pasar el mouse */
.categoria-card:hover {
  box-shadow: 0 0 25px rgba(230,211,122,0.35);
  transform: translateY(-6px);
}

.categoria-card:hover span {
  color: #fff1a8;
  text-shadow:
    0 0 10px rgba(230,211,122,0.9),
    0 0 25px rgba(230,211,122,0.9);
}

.titulo-catalogo {
  font-family: "JunkyTitle";
  color: #e6d37a;
  letter-spacing: 3px;
  text-align: center;

  text-shadow:
    0 0 6px rgba(0,0,0,0.9),
    0 0 14px rgba(230,211,122,0.6),
    0 0 22px rgba(230,211,122,0.35);
}

/* ===============================
   BOTÓN COMPRAR — EFECTO PREMIUM
=============================== */

/* glow dorado base */
.btn-comprar {
  border: 2px solid var(--accent);
  background: rgba(0,0,0,0.45);
  color: var(--accent);

  text-shadow:
    0 0 6px rgba(0,0,0,0.9),
    0 0 12px rgba(0,0,0,0.9),
    0 0 10px rgba(212,191,99,0.6);

  box-shadow: 0 0 12px rgba(212,191,99,0.25);

  transition: all .25s ease;
}

/* ✨ glow pulsante suave */
@keyframes glowBoton {
  0%   { box-shadow: 0 0 8px rgba(212,191,99,0.25); }
  50%  { box-shadow: 0 0 22px rgba(212,191,99,0.55); }
  100% { box-shadow: 0 0 8px rgba(212,191,99,0.25); }
}

.btn-comprar {
  animation: glowBoton 3.5s ease-in-out infinite;
}

/* hover PC */
.btn-comprar:hover {
  background: var(--accent);
  color: #120c09;
  transform: scale(1.06);
  box-shadow: 0 0 26px rgba(212,191,99,0.65);
}


/* ===============================
   FIX BOTÓN OSCURO EN MÓVIL
=============================== */

/* elimina overlay gris táctil */
.btn-comprar {
  -webkit-tap-highlight-color: transparent;
}


/* elimina estados persistentes en iOS */
.btn-comprar:focus-visible {
  outline: none;
  
}

/* ===============================
   BOTÓN COMPRAR — FIX MÓVIL FINAL
=============================== */

.btn-comprar {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* efecto presión SIN cambiar color */
.btn-comprar:active {
  transform: scale(0.96);
}

/* evita estado pegado en iOS */
.btn-comprar:focus,
.btn-comprar:focus-visible {
  outline: none;
}

/* ===============================
   SAFARI iOS — ELIMINAR OSCURECIDO TÁCTIL
=============================== */

button,
.btn-comprar,
input,
a {
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.btn-comprar {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* elimina capa oscura que iOS aplica */
.btn-comprar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

/* evita sombreado al tocar */
@supports (-webkit-touch-callout: none) {
  .btn-comprar {
    background-clip: padding-box;
  }
}

.btn-comprar {
  transform: translateZ(0);
}

/* =========================================
   FIX DEFINITIVO BOTÓN OSCURO iOS / SAFARI
========================================= */

/* evita overlay gris del sistema */
button,
.btn-comprar {
  -webkit-tap-highlight-color: transparent !important;
}

/* elimina estado táctil persistente */
.btn-comprar:focus,
.btn-comprar:active,
.btn-comprar:focus-visible {
  outline: none !important;
  box-shadow: 0 0 12px rgba(212,191,99,0.25) !important;
  background: rgba(0,0,0,0.45) !important;
  color: var(--accent) !important;
}

/* evita que Safari “oscurezca” el botón */
@supports (-webkit-touch-callout: none) {
  .btn-comprar {
    -webkit-appearance: none;
    appearance: none;
  }
}

/* fuerza renderizado correcto en iOS */
.btn-comprar {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* elimina bug causado por backdrop-filter */
.producto-card {
  isolation: isolate;
}

/* =========================================
   SAFARI iOS FIX — OSCURECIMIENTO AL TOCAR
========================================= */

/* evita oscurecimiento por blur/transparencias */
.producto-card,
.producto-detalle,
.btn-comprar {
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* crea capa independiente (clave) */
.producto-card {
  isolation: isolate;
  position: relative;
}

/* evita overlay oscuro de Safari */
.producto-card:active,
.producto-card:focus-within {
  background: rgba(0,0,0,0.45);
}

/* evita highlight táctil */
* {
  -webkit-tap-highlight-color: transparent;
}

/* evita que Safari oscurezca elementos interactivos */
button,
a {
  -webkit-touch-callout: none;
}

/* ===============================
   ESPACIADO DETALLE PRODUCTO (PC)
=============================== */
@media screen and (min-width: 701px) {

  /* espacio superior */
  .producto-detalle {
    margin-top: 80px;
  }

  /* espacio inferior elegante */
  .producto-detalle {
    margin-bottom: 120px;
  }

}

.campo{
  width: 80%;
  max-width: 400px;
  padding: 12px;
  border: 1px solid var(--accent);
  background: rgba(0,0,0,0.4);
  color: #e6e0c8;
  font-size: 1rem;
}

/* Galería de producto: controles laterales de fantasía oscura */
.slider {
  position: relative;
  width: min(100%, 500px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(212, 191, 99, 0.72);
  background: rgba(7, 6, 4, 0.76);
  box-shadow:
    0 0 0 3px rgba(18, 12, 9, 0.92),
    0 0 20px rgba(0, 0, 0, 0.78),
    inset 0 0 18px rgba(0, 0, 0, 0.72);
}

.slider #slide-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  object-fit: contain;
  background: #080704;
}

.producto-detalle .slider-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 48px;
  height: 66px;
  min-width: 0;
  padding: 0;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid #c6a952;
  border-radius: 2px;
  background:
    linear-gradient(90deg, rgba(9, 7, 4, 0.95), rgba(58, 40, 18, 0.9)),
    #171008;
  color: #f4dfa0;
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 0 7px #000, 0 0 12px rgba(245, 211, 111, 0.6);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.72), 0 4px 12px rgba(0, 0, 0, 0.75);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.producto-detalle .slider-btn[hidden] {
  display: none;
}

.producto-detalle .slider-btn.prev { left: 12px; }
.producto-detalle .slider-btn.next { right: 12px; }

.producto-detalle .slider-btn:hover,
.producto-detalle .slider-btn:focus-visible {
  color: #fff6c7;
  border-color: #fff0a3;
  outline: none;
  box-shadow: 0 0 0 2px #20150a, 0 0 18px rgba(234, 195, 77, 0.76);
}

.producto-detalle .slider-btn.prev:hover { transform: translate(-3px, -50%); }
.producto-detalle .slider-btn.next:hover { transform: translate(3px, -50%); }

.producto-detalle .slider-btn:active {
  background: linear-gradient(90deg, rgba(83, 57, 20, 0.96), rgba(18, 12, 7, 0.95));
}

@media screen and (max-width: 700px) {
  .producto-detalle .slider-btn {
    display: none;
  }

  .slider {
    touch-action: pan-y;
  }
}

/* Selector de tamaños: legible, táctil y con el marco de fantasía del catálogo */
.selector-tamano {
  max-width: 560px;
  margin: 16px auto 22px;
  padding: 12px;
  border: 1px solid rgba(198, 169, 82, 0.72);
  background: rgba(7, 6, 4, 0.68);
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.62);
}

.selector-tamano p {
  margin: 0 0 10px;
  color: #e2c96f;
  font-family: Georgia, serif;
  font-size: 1.06rem;
  letter-spacing: 0.04em;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.producto-detalle .size-option {
  width: auto;
  min-width: 88px;
  min-height: 44px;
  margin: 0;
  padding: 9px 14px;
  border: 1px solid #806b2c;
  background: linear-gradient(180deg, rgba(47, 34, 16, 0.97), rgba(12, 9, 5, 0.98));
  color: #eadb9f;
  font-family: Georgia, serif;
  font-size: 1rem;
  cursor: pointer;
}

.producto-detalle .size-option:hover,
.producto-detalle .size-option:focus-visible,
.producto-detalle .size-option[aria-pressed="true"] {
  border-color: #f3d66f;
  background: linear-gradient(180deg, rgba(103, 78, 29, 0.98), rgba(34, 22, 8, 0.99));
  color: #fff5c9;
  outline: none;
  box-shadow: 0 0 14px rgba(229, 190, 72, 0.44), inset 0 0 8px rgba(255, 232, 140, 0.18);
}

@media screen and (max-width: 700px) {
  .selector-tamano { margin: 14px 0 20px; }
  .producto-detalle .size-option { min-height: 48px; padding: 10px 16px; }
}

/* Compra: el texto conserva contraste al interactuar, sin perder el estilo RPG. */
.btn-comprar:hover,
.btn-comprar:focus-visible {
  background: rgba(0, 0, 0, 0.62);
  color: var(--accent);
  box-shadow: 0 0 24px rgba(212, 191, 99, 0.55);
}

/* En el listado las acciones son compactas; la ficha individual conserva su escala. */
.producto-card .btn-comprar {
  margin-top: 8px;
  padding: 10px 18px;
  font-size: 1.15rem;
  letter-spacing: 1px;
}

.producto-card .btn-comprar:disabled,
.producto-card .btn-comprar.is-out-of-stock {
  cursor: not-allowed;
  border-color: #9b4538;
  background: rgba(65, 20, 16, 0.7);
  color: #ff9b8c;
  box-shadow: none;
  opacity: 0.9;
}

.producto-card .btn-comprar:disabled:hover,
.producto-card .btn-comprar:disabled:focus-visible {
  background: rgba(65, 20, 16, 0.7);
  color: #ff9b8c;
  box-shadow: none;
}

.product-price-row del,
.product-card-discount del {
  color: #bcae95;
  font-size: 0.86em;
  margin-left: 8px;
}

.discount-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 7px;
  border: 1px solid #e0a343;
  background: rgba(116, 55, 12, 0.68);
  color: #ffe09a;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.discount-badge[hidden] {
  display: none;
}

.product-card-discount {
  margin: -2px 0 8px;
  color: #e6e0c8;
  font-size: 1rem;
}

.product-card-discount del {
  margin-left: 0;
}

.category-controls {
  width: min(100% - 32px, 720px);
  margin: 0 auto 28px;
  padding: 16px;
  border: 1px solid rgba(206, 178, 90, 0.45);
  background: rgba(12, 10, 7, 0.7);
}

.category-search-toggle {
  width: 100%;
  border: 1px solid #8d7336;
  padding: 10px 12px;
  background: rgba(26, 19, 10, 0.82);
  color: #f0dca3;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.category-search-toggle::after {
  content: '⌄';
  float: right;
  font-size: 1.2em;
}

.category-search-toggle[aria-expanded="true"]::after {
  content: '⌃';
}

.category-search-panel {
  margin-top: 12px;
}

.category-search-label {
  display: grid;
  gap: 7px;
  color: #f0dca3;
  font-size: 0.95rem;
}

.category-search-label input {
  width: 100%;
  border: 1px solid #987935;
  padding: 11px 12px;
  background: rgba(0, 0, 0, 0.58);
  color: #f5eed8;
  font: inherit;
}

.category-search-label input:focus-visible,
.category-filter-actions button:focus-visible {
  outline: 2px solid #f3d66f;
  outline-offset: 2px;
}

.category-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.category-filter-actions button {
  border: 1px solid #8d7336;
  padding: 7px 10px;
  background: rgba(26, 19, 10, 0.82);
  color: #e9d89c;
  font: inherit;
  font-size: 0.87rem;
  cursor: pointer;
}

.category-filter-actions button[aria-pressed="true"] {
  border-color: #f3d66f;
  background: rgba(121, 84, 19, 0.9);
  color: #fff6ca;
}

.category-sort {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: #f0dca3;
  font-size: 0.95rem;
}

.category-sort select {
  width: 100%;
  border: 1px solid #987935;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.58);
  color: #f5eed8;
  font: inherit;
}

.category-sort select:focus-visible {
  outline: 2px solid #f3d66f;
  outline-offset: 2px;
}

.category-results {
  margin: 12px 0 0;
  color: #c6b886;
  font-size: 0.9rem;
}

.producto-card {
  position: relative;
}

.product-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 10px;
}

.producto-card > .product-labels {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  justify-content: flex-start;
  z-index: 2;
  pointer-events: none;
}

.product-label {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid;
  background: rgba(16, 13, 9, 0.88);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.product-label.is-new { border-color: #72ae91; color: #a8ebc6; }
.product-label.is-sale { border-color: #e0a343; color: #ffe09a; }
.product-label.is-low-stock { border-color: #c4604f; color: #ffae9e; }

.cart-stock-note {
  margin: -4px 0 8px;
  color: #cfb878;
  font-size: 0.9rem;
}

.cantidad-control button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

#checkout-button:disabled {
  cursor: not-allowed;
  border-color: #665f4d;
  background: rgba(54, 48, 37, 0.72);
  color: #a9a18e;
  box-shadow: none;
  opacity: 0.7;
}

@media screen and (max-width: 700px) {
  .category-controls { width: min(100% - 24px, 560px); padding: 12px; }
  .category-filter-actions { gap: 6px; }
  .category-filter-actions button { padding: 7px 8px; font-size: 0.8rem; }
  .producto-card > .product-labels { top: 10px; left: 10px; right: 10px; }
  .product-label { padding: 3px 5px; font-size: 0.6rem; }
}

@media screen and (max-width: 700px) {
  .producto-card .btn-comprar {
    width: auto;
    min-height: 44px;
    padding: 11px 17px;
    font-size: 1.1rem;
  }
}

/* Catálogo móvil: dos productos por fila, sin alterar el escritorio ni la ficha. */
@media screen and (max-width: 700px) {
  .productos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 12px;
    width: min(calc(100% - 24px), 560px);
    margin: 0 auto 42px;
  }

  .producto-card {
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 9px;
  }

  .producto-card img {
    height: min(31vw, 128px);
    max-height: none;
    margin-bottom: 6px;
    object-fit: cover;
  }

  .producto-card h3 {
    margin: 7px 0 5px;
    font-size: 1.05rem;
    line-height: 1.1;
  }

  .producto-card .precio {
    margin: 0 0 7px;
    font-size: 1.05rem;
  }

  .producto-card .btn-comprar {
    min-height: 42px;
    margin-top: 4px;
    padding: 8px 7px;
    font-size: 0.94rem;
    line-height: 1.1;
    letter-spacing: 0.4px;
  }
}

/* En celular se usa la navegación propia del navegador; el regreso visual queda para escritorio. */
@media screen and (max-width: 700px) {
  .simple-header,
  .volver {
    display: none;
  }
}

/* Acceso rápido al inicio: solo móvil y fuera de la portada. */
.mobile-home-link { display: none; }

@media screen and (max-width: 700px) {
  .mobile-home-link {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    left: 12px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(216, 194, 97, 0.9);
    background: rgba(9, 12, 7, 0.84);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.65), inset 0 0 10px rgba(216, 194, 97, 0.1);
    color: #eadc91;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-decoration: none;
  }

  .mobile-home-link:active {
    transform: translateY(1px);
    background: rgba(42, 39, 17, 0.92);
  }
}

/* Safari/iOS no repinta de forma fiable los fondos `fixed` en una portada larga.
   En móvil el fondo se desplaza con la página y nunca deja franjas grises. */
@media screen and (max-width: 700px) {
  html,
  body.home {
    background-color: #110d09;
  }

  body.home {
    background-attachment: scroll;
    background-position: center top;
    background-repeat: repeat-y;
    background-size: auto 100vh;
  }

  /* El fondo se separa del contenido para conservar la imagen y la animación
     del catálogo sin que Safari/iPhone arrastre el carrito con el scroll. */
  body.catalogo {
    background: #110d09;
    isolation: isolate;
  }

  body.catalogo::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      linear-gradient(rgba(0, 0, 0, 0.40), rgba(0, 0, 0, 0.70)),
      url("../img/fondo-catalogo.webp") center / cover no-repeat;
  }

  body.catalogo > *:not(.carrito-float):not(.mobile-home-link) {
    position: relative;
    z-index: 1;
  }
}

/* Listados de categorías: nombres directos y legibles.
   La ficha individual continúa usando la tipografía ornamental. */
.productos-grid .producto-card h3 {
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.product-description p {
  margin: 0 0 1em;
}

.product-description p:last-child {
  margin-bottom: 0;
}

.product-detail-heading {
  display: block;
  margin-bottom: 0.42em;
  color: #dd8b37;
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Aviso de campaña: sólo se muestra cuando el CMS activa el descuento global. */
.global-discount-banner {
  width: min(92%, 760px);
  margin: 0 auto 26px;
  padding: 14px 20px;
  border: 1px solid rgba(244, 213, 105, .9);
  background: linear-gradient(90deg, rgba(58, 35, 9, .88), rgba(28, 17, 7, .92));
  color: #fff0a7;
  font-family: "JunkyTitle", serif;
  font-size: clamp(1.05rem, 2.3vw, 1.45rem);
  letter-spacing: .9px;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 0 12px rgba(235, 195, 77, .7);
  box-shadow: 0 0 22px rgba(203, 155, 39, .25), inset 0 0 18px rgba(255, 228, 126, .08);
}

.global-discount-banner[hidden] { display: none; }

.product-fun-fact p {
  margin: 0;
}

/* Preguntas frecuentes: conserva la estética oscura y permite contenido editable desde el CMS. */
.faq-contenedor {
  width: min(100%, 840px);
  padding: 130px 30px 80px;
  margin: 0 auto;
  text-align: center;
}

.pagina-sobre {
  background:
    linear-gradient(rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.70)),
    url("../images/fondo-quienes-somos.webp") center / cover fixed;
}

.pagina-faq {
  background:
    linear-gradient(rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.70)),
    url("../images/fondo-preguntas-frecuentes.webp?v=20260822") center / cover fixed;
}

.pagina-contacto {
  background:
    linear-gradient(rgba(0, 0, 0, 0.50), rgba(0, 0, 0, 0.70)),
    url("../images/fondo-contacto.webp") center / cover fixed;
}

/* Resultado de pago: la misma estética pública, sin exponer datos de Mercado Pago. */
.pagina-resultado-pago {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.76)),
    url("../images/fondo-home.webp") center / cover fixed;
}

.resultado-pago-contenedor {
  width: min(100%, 620px);
  text-align: center;
}

.resultado-pago-tarjeta {
  padding: clamp(32px, 7vw, 56px);
  border: 1px solid rgba(212, 191, 99, 0.56);
  background: rgba(7, 8, 6, 0.76);
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.6);
}

.resultado-pago-estado {
  margin: 0 0 14px;
  color: #d4bf63;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.resultado-pago-tarjeta h1 {
  margin: 0 0 20px;
  color: #f0dd9d;
  font-family: "JunkyTitle", serif;
  font-size: clamp(2.25rem, 7vw, 4.2rem);
  line-height: 1.05;
  text-shadow: 0 0 20px rgba(212, 191, 99, 0.45);
}

.resultado-pago-mensaje {
  max-width: 470px;
  margin: 0 auto;
  color: #efe5c3;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  line-height: 1.65;
}

.resultado-pago-referencia {
  margin: 24px 0 0;
  color: #d8c779;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.resultado-pago-enlace {
  display: inline-block;
  margin-top: 32px;
}

body[data-estado-pago="rejected"] .resultado-pago-estado,
body[data-estado-pago="rejected"] .resultado-pago-tarjeta h1 {
  color: #efaaa0;
  text-shadow: 0 0 20px rgba(183, 62, 48, 0.42);
}

.faq-contenedor .titulo-seccion {
  margin-bottom: 30px;
  font-family: "JunkyTitle", serif;
  font-size: 4.2rem;
}

.faq-lista {
  display: grid;
  gap: 14px;
  text-align: left;
}

.faq-lista details {
  padding: 0 24px;
  border: 1px solid rgba(184, 162, 74, 0.5);
  background: rgba(0, 0, 0, 0.38);
}

.faq-lista summary {
  padding: 20px 0;
  color: var(--accent);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.45;
}

.faq-lista p {
  margin: 0 0 22px;
  color: #f0ecd9;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.1875rem;
  line-height: 1.65;
}

@media screen and (max-width: 700px) {
  .pagina-faq {
    background-attachment: scroll;
    background-position: center top;
  }

  .faq-contenedor {
    padding: 105px 20px 50px;
  }

  .faq-contenedor .titulo-seccion {
    margin-bottom: 16px;
    font-size: 2.5rem;
  }

  .faq-lista details {
    padding: 0 16px;
  }

  .faq-lista summary {
    padding: 16px 0;
    font-size: 1.125rem;
  }

  .faq-lista p {
    margin-bottom: 18px;
    font-size: 1.0625rem;
    line-height: 1.6;
  }
}

@media screen and (max-width: 700px) {
  .pagina-sobre {
    background-attachment: scroll;
    background-position: center top;
  }
}
