* {
  box-sizing: border-box;
}

/* =====================
   BASE
===================== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #FFF9F3;
  color: #111111;
}

/* =====================
   HERO – FLEXIBLE & PREMIUM (FIX CORTE)
===================== */
.hero {
  padding: 24px 0 28px;   /* 🔥 clave */
  background: linear-gradient(135deg, #0F1A17, #1B2A26);
}

.hero-overlay {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;             /* 🔥 ritmo vertical */
  padding: 0 16px;
}

/* =====================
   LOGO MEDALLION – CORREGIDO
===================== */
.logo-circle {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background: radial-gradient(
    circle at center,
    #111111 60%,
    #0c0c0c 100%
  );
  border: 2px solid #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 28px rgba(0,0,0,0.7),
    0 0 0 6px rgba(212,175,55,0.18);
  position: relative;
}

.logo-circle::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.55);
}

.logo-circle img {
  width: 100%;              /* 🔥 NO 100% */
  height: auto;
  object-fit: contain;
}

/* =====================
   HERO TEXT
===================== */
.hero h1 {
  font-size: 1.55rem;
  font-weight: 600;
  color: #ffffff;
  margin: 8px 0 0;
}

.hero p {
  font-size: 0.85rem;
  max-width: 420px;
  line-height: 1.45;
  margin: 0;
  color: #E6C76A;
  opacity: 0.95;
}

/* =====================
   CATEGORIES – GOLD PLATES
===================== */
.category-section {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 22px 16px;
}

.category-card {
  height: 68px;
  background: linear-gradient(135deg, #D4AF37, #E6C76A);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #111111;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(212,175,55,0.45);
}


/* =====================
   BOTON ATRAS
===================== */


.button-back {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  background: linear-gradient(135deg, #D4AF37, #E6C76A);
  color: #111;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(212,175,55,0.35);
}


/* =====================
   CATEGORY INFO
===================== */
.category-info {
  text-align: center;
  padding: 6px 16px 18px;
}

.category-info h2 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.category-info p {
  max-width: 500px;
  margin: 0 auto;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #555555;
}

/* =====================
   GALLERY
===================== */
.gallery {
  padding: 18px 16px 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,0.25);
  transition: transform .25s ease, box-shadow .25s ease;
}

.gallery img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 20px rgba(212,175,55,0.35);
}

/* =====================
   LIGHTBOX – FIX FLECHAS
===================== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* 🔥 más alto */
}

.lightbox.show {
  display: flex;
}

/* Imagen */
.lightbox img {
  max-width: 90%;
  max-height: 85%;
  border-radius: 14px;
  box-shadow: 0 0 0 2px #D4AF37;
  z-index: 1; /* 🔥 por debajo de controles */
}

/* Botón cerrar */
.lightbox .close {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 34px;
  color: #E6C76A;
  cursor: pointer;
  z-index: 2; /* 🔥 visible */
}

/* Flechas */
.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 38px;
  color: #E6C76A;
  cursor: pointer; 
  user-select: none;
  z-index: 2; /* 🔥 visible */
}

/* Flechas del lightbox — OCULTAS POR DEFECTO */
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 38px;
  color: #e6c76a;
  cursor: pointer;
  z-index: 10000;
}

.lightbox .prev { left: 15px; }
.lightbox .next { right: 15px; }


.lightbox .close:hover,
.lightbox .nav:hover {
  opacity: 0.8;
}


/* =====================
   FOOTER
===================== */
footer {
  text-align: center;
  padding: 28px 16px;
  font-size: 0.78rem;
  color: #777777;
}

/* =====================
   RESPONSIVE
===================== */
@media (min-width: 700px) {
  .category-section {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 380px) {
  .logo-circle {
    width: 112px;
    height: 112px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery img {
    height: 135px;
  }
}

/* =====================
   CONFETTI
===================== */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 998;
}

.confetti {
  position: absolute;
  width: 6px;
  height: 10px;
  animation: fall 1.8s ease-out forwards;
}

@keyframes fall {
  from { transform: translateY(-20px); opacity: 1; }
  to   { transform: translateY(100vh); opacity: 0; }
}

.skeleton {
  height: 150px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    #eee 25%,
    #f5f5f5 37%,
    #eee 63%
  );
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}


/* =====================
   WHATSAPP CTA (LIGHTBOX)
===================== */
/* === BOTÓN WHATSAPP SOBRE LA IMAGEN === */
.whatsapp-cta {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);

  background: linear-gradient(135deg, #D4AF37, #E6C76A);
  color: #000;
  font-weight: 600;
  font-size: 14px;

  padding: 12px 18px;
  border-radius: 999px;

  text-decoration: none;
  text-align: center;

  /* 🔥 CLAVE PARA QUE NO SE PARTA */
  white-space: nowrap;

  /* 🔥 SIEMPRE ENCIMA */
  z-index: 9999;

  /* UX */
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

/* Hover desktop */
.whatsapp-cta:hover {
  transform: translateX(-50%) scale(1.03);
}


/* Flechas */
.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 38px;
  color: #e6c76a;
  cursor: pointer;
  z-index: 10000;
}

.lightbox .prev { left: 15px; }
.lightbox .next { right: 15px; }

/* Cerrar */
.lightbox .close {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 26px;
  color: #e6c76a;
  cursor: pointer;
  z-index: 10002;
}
