/* ============================================================
   DALUNA - CSS FINAL (BASE + MEJORAS INTEGRADAS)
   ============================================================
   ✅ Minimalista + Futurista (sin perder simetría)
   ✅ Responsive real (sin solapes de texto)
   ✅ Móvil: descripción completa + botón pequeño a la derecha
   ✅ Header: no se rompe (wrap desktop, scroll links móvil)
   ============================================================ */

/* ============================================================
   1) VARIABLES
   ============================================================ */
:root {
  /* Paleta */
  --color-blanco: #FFFFFF;
  --color-arena: #EAE5DF;
  --color-beige: #D0C3BF;
  --color-malva: #957E84;
  --texto-titulo: #5E4B50;
  --texto-cuerpo: #83797A;

  /* Header */
  --header-bg: #F8F6F4;
  --header-bg-blur: rgba(248, 246, 244, 0.95);
  --header-bg-scrolled: rgba(248, 246, 244, 0.98);

  /* Tipos */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Lato', sans-serif;

  /* Alturas */
  --header-height-mobile: 70px;
  --header-height-desktop: 80px;

  /* Touch */
  --min-touch-target: 48px;

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* ===== Mejoras (fluido + futurista compatible) ===== */
  --fs-nav: clamp(0.65rem, 0.9vw, 0.78rem);
  --fs-h1: clamp(1.25rem, 2.2vw, 1.7rem);
  --fs-name: clamp(1.45rem, 2.2vw, 2.05rem);
  --fs-price: clamp(1.25rem, 1.8vw, 1.85rem);
  --fs-body: clamp(0.95rem, 1.1vw, 1.05rem);

  --sp-1: clamp(0.5rem, 1vw, 0.75rem);
  --sp-2: clamp(0.75rem, 1.4vw, 1rem);
  --sp-3: clamp(1rem, 2vw, 1.5rem);
  --sp-4: clamp(1.25rem, 2.4vw, 2rem);

  --neo-border: rgba(149,126,132,0.22);
  --neo-shadow: 0 16px 50px rgba(94,75,80,0.12);
  --neo-glow: 0 0 0 1px rgba(255,255,255,0.55) inset;

  --radius-xl: 28px;
}

/* ============================================================
   2) RESET / BASE
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background-color: var(--color-beige) !important;
  color: var(--texto-cuerpo);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   3) HEADER / NAV
   ============================================================ */
nav.glass {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;

  background: rgba(248,246,244,0.82) !important;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);

  box-shadow: 0 10px 40px rgba(94,75,80,0.10) !important;
  border-bottom: 1px solid rgba(149,126,132,0.18) !important;

  padding: var(--sp-2) var(--sp-4) !important;
  transition: all var(--transition-normal);
}

nav.glass.scrolled {
  box-shadow: 0 6px 28px rgba(94, 75, 80, 0.2),
              0 3px 12px rgba(94, 75, 80, 0.15) !important;
  background: var(--header-bg-scrolled) !important;
  border-bottom-color: rgba(149, 126, 132, 0.25) !important;
}

nav h1 {
  color: var(--color-malva) !important;
  font-family: var(--font-serif);
  font-size: var(--fs-h1) !important;
  font-style: italic;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(94, 75, 80, 0.1);
  margin: 0;
  white-space: nowrap;
}

/* Si existe .nav-right en tu HTML, esto ayuda; si no existe, no molesta */
.nav-right{
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  min-width: 0;
}

.nav-links {
  display: flex;
  gap: var(--sp-1);
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;

  flex-wrap: wrap;           /* evita solapes en pantallas medias */
  justify-content: flex-end;
  min-width: 0;
}

.nav-links a,
.nav-links button {
  min-height: var(--min-touch-target);
  padding: 0.55rem 0.6rem !important;

  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--texto-titulo);
  font-weight: 700;
  font-size: var(--fs-nav) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;

  border-radius: 10px;
  background: transparent;
  border: none;

  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;

  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links a:active,
.nav-links button:active {
  background: rgba(149, 126, 132, 0.2);
  transform: scale(0.95);
}

.nav-links .admin-link {
  background: linear-gradient(135deg, var(--color-malva) 0%, #7A656A 100%);
  color: white !important;
  padding: 0.625rem 0.75rem;
  font-size: 0.6875rem;
  box-shadow: 0 3px 10px rgba(149, 126, 132, 0.35);
}

.nav-links .admin-link:active {
  box-shadow: 0 2px 6px rgba(149, 126, 132, 0.3);
  background: linear-gradient(135deg, #7A656A 0%, #5E4B50 100%);
}

.cart-icon-wrapper {
  position: relative;
  padding: 0.625rem;
  min-width: var(--min-touch-target);
  min-height: var(--min-touch-target);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  transition: all var(--transition-fast);
  flex: 0 0 auto;
}

.cart-icon-wrapper:active {
  background: rgba(149, 126, 132, 0.2);
  transform: scale(0.9);
}

.cart-icon { width: 1.5rem; height: 1.5rem; color: var(--texto-titulo); }

#cart-bubble {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: var(--color-malva) !important;
  color: white;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(149, 126, 132, 0.5);
  border: 2px solid var(--header-bg);
  padding: 0 4px;
}

.user-avatar {
  min-width: var(--min-touch-target);
  min-height: var(--min-touch-target);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-malva), #7A656A);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(149, 126, 132, 0.3);
  transition: all var(--transition-fast);
  flex: 0 0 auto;
}

.user-avatar:active {
  transform: scale(0.9);
  border-color: var(--color-malva);
  box-shadow: 0 3px 12px rgba(149, 126, 132, 0.4);
}

/* ============================================================
   4) LAYOUT
   ============================================================ */
main {
  max-width: 1800px !important;
  padding: 2rem 3rem !important;
  padding-top: calc(var(--header-height-desktop) + 3.25rem) !important;
  margin: 0 auto;
  position: relative;
}

/* ============================================================
   5) CATÁLOGO
   ============================================================ */
#catalog {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(2rem, 3vw, 4rem) !important;
  row-gap: clamp(16rem, 18vw, 20rem) !important;
  padding: 0 !important;
  margin-top: clamp(10rem, 10vw, 14rem) !important;
  padding-top: 4rem !important;
}

/* ============================================================
   6) TARJETAS
   ============================================================ */
.cookie-card {
  background: transparent !important;
  border-radius: 24px;
  overflow: visible !important;
  box-shadow: none;
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
  z-index: 1;
}

.cookie-card:hover { transform: translateY(-10px); z-index: 2; }

/* ============================================================
   7) GALLETAS FLOTANTES (fix z-index)
   ============================================================ */
.floating-cookie {
  position: absolute;
  top: -22rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40rem;
  height: 40rem;

  z-index: 0 !important; /* antes -1: a veces desaparece */
  transition: all var(--transition-bounce);
  pointer-events: none;
}

.cookie-card:hover .floating-cookie {
  transform: translateX(-50%) scale(1.1) rotate(-4deg);
}

.floating-cookie-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.25));
  transition: filter var(--transition-normal);
}

.cookie-card:hover .floating-cookie-img {
  filter: drop-shadow(0 35px 70px rgba(0, 0, 0, 0.30));
}

/* ============================================================
   8) CONTENIDO TARJETA (glass + glow futurista)
   ============================================================ */
.cookie-content {
  padding: clamp(1.25rem, 2.4vw, 2.5rem) !important;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-height: 380px;
  position: relative;
  z-index: 2 !important;

  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.82)) !important;
  border-radius: var(--radius-xl) !important;
  border: 1px solid var(--neo-border);
  box-shadow: var(--neo-glow), var(--neo-shadow) !important;

  transition: all var(--transition-slow);
}

.cookie-card:hover .cookie-content {
  min-height: 380px !important;  /* evita saltos */
  transform: translateY(-2px);
}

.cookie-card.has-warning .cookie-content {
  box-shadow: 0 8px 32px rgba(239, 68, 68, 0.16) !important;
}

/* Header tarjeta */
.cookie-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-2) !important;
  margin-bottom: 0.5rem;
  flex-wrap: wrap; /* evita solapes nombre/precio */
}

.cookie-name {
  font-family: var(--font-serif);
  font-size: var(--fs-name) !important;
  font-weight: 600;
  font-style: italic;
  color: var(--texto-titulo);
  line-height: 1.2;
  flex: 1 1 16rem;
  min-width: 12rem;
}

.cookie-price {
  font-family: var(--font-serif);
  font-size: var(--fs-price) !important;
  font-weight: 700;
  color: var(--color-malva);
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ============================================================
   9) DESCRIPCIÓN
   ============================================================ */
.cookie-desc {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--texto-cuerpo);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  margin-bottom: 0.5rem;
  transition: all var(--transition-normal);
  position: relative;
  flex: 1;
  min-height: 60px;
}

.cookie-desc::after {
  content: '... Ver más';
  position: absolute;
  bottom: 0;
  right: 0;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.92) 20%, rgba(255,255,255,0.92));
  padding-left: 2.5rem;
  color: var(--color-malva);
  font-weight: 600;
  font-size: 0.9375rem;
}

.cookie-desc.no-overflow::after { display: none; }

.cookie-desc.expanded { -webkit-line-clamp: unset; display: block; }

.cookie-desc.expanded::after {
  content: 'Ver menos';
  position: static;
  display: inline-block;
  margin-top: 0.75rem;
  padding-left: 0;
  background: none;
}

/* ============================================================
   10) ALÉRGENOS
   ============================================================ */
.allergen-warning-subtle {
  background: linear-gradient(135deg, #FEF9F9 0%, #FEF2F2 100%);
  border-left: 2px solid #FCA5A5;
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #B91C1C;
  display: inline-block;
  margin: 0;
  opacity: 0.90;
  align-self: flex-start;
}

.allergens-compact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 0.875rem;
  background: #FAFAF9;
  border-radius: 10px;
  font-size: 0.75rem;
  margin-top: auto;
}

.allergen-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.allergen-label {
  font-weight: 700;
  text-transform: uppercase;
  color: #991B1B;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  min-width: 70px;
}

.allergen-label-small { display: none !important; }
.pill-trace { display: none !important; }

.allergen-pills { display: flex; flex-wrap: wrap; gap: 0.375rem; flex: 1; }

.pill {
  display: inline-block;
  padding: 0.3rem 0.625rem;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill-contains { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }

.pill-danger {
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  color: white;
  border: 1px solid #991B1B;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.3);
}

/* ============================================================
   11) BOTÓN AÑADIR
   ============================================================ */
.add-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--color-malva), #6F5A60) !important;
  color: white;
  border: none;
  border-radius: 18px;
  padding: 1.25rem 1.75rem;
  font-size: 1.0625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;

  transition: all var(--transition-slow);
  box-shadow: 0 10px 24px rgba(149,126,132,0.28) !important;

  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;

  /* Desktop: oculto hasta hover */
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  max-height: 0;
  padding: 0;
  margin: 0;
}

.cookie-card:hover .add-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  max-height: 100px;
  padding: 1.25rem 1.75rem;
  margin-top: 1rem;
}

.add-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(149, 126, 132, 0.35) !important;
  background: linear-gradient(135deg, #7A656A 0%, #5E4B50 100%) !important;
}

.add-btn.has-allergen {
  border: 2px solid #FCA5A5;
  box-shadow: 0 6px 16px rgba(252, 165, 165, 0.35);
}

.btn-icon-left { width: 1.5rem; height: 1.5rem; }

.add-btn::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.add-btn:active::before { width: 300px; height: 300px; }

/* ============================================================
   12) ANIMACIONES
   ============================================================ */
.flying-cookie-animation {
  transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 99999 !important;
  position: fixed;
}

.flying-cookie-animation.fly-active {
  transform: translate(calc(-50% + var(--fly-x)), calc(-50% + var(--fly-y))) scale(0.15) !important;
  opacity: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes cartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); background-color: #7A656A; }
}
.cart-pulse { animation: cartPulse 0.5s ease-in-out; }

/* ============================================================
   13) MODAL CARRITO
   ============================================================ */
#cart-modal {
  margin-top: calc(var(--header-height-desktop) + 1rem) !important;
}
#cart-modal > div {
  background-color: white !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16) !important;
  border-radius: 12px;
}
#cart-title, #cart-subtotal {
  color: var(--color-malva) !important;
  font-family: var(--font-serif);
}
#btn-next {
  background-color: var(--color-malva) !important;
  min-height: var(--min-touch-target);
  border-radius: 12px;
  font-weight: 700;
  transition: all var(--transition-fast);
}
#btn-next:hover {
  background-color: #7A656A !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(149, 126, 132, 0.3);
}

/* ============================================================
   14) FOOTER
   ============================================================ */
footer {
  background-color: var(--color-arena) !important;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: 4rem;
  color: var(--texto-cuerpo);
}

/* ============================================================
   15) RESPONSIVE TABLET
   ============================================================ */
@media (max-width: 1400px) {
  #catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    row-gap: clamp(14rem, 18vw, 18rem) !important;
  }
}

/* ============================================================
   16) RESPONSIVE MÓVIL (lo que pediste)
   ============================================================ */
@media (max-width: 900px) {
  nav.glass { padding: 0.875rem 1rem !important; }

  main {
    padding: 1rem !important;
    padding-top: calc(var(--header-height-mobile) + 1.25rem) !important;
  }

  /* NAV: sin solapes -> scroll horizontal de links */
  .nav-links{
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem !important;
    max-width: 58vw;
    padding-bottom: 0.25rem;
  }
  .nav-links a, .nav-links button{ flex: 0 0 auto; }

  #catalog {
    grid-template-columns: 1fr !important;
    row-gap: 14rem !important;
    margin-top: 10rem !important;
  }

  .cookie-content {
    padding: 1.25rem !important;
    min-height: auto !important; /* deja crecer para mostrar todo */
    gap: 0.75rem !important;
  }

  .floating-cookie {
    width: 26rem;
    height: 26rem;
    top: -14rem;
  }

  .cookie-name { font-size: clamp(1.35rem, 5vw, 1.7rem) !important; }
  .cookie-price { font-size: clamp(1.15rem, 4.2vw, 1.45rem) !important; }

  /* DESCRIPCIÓN COMPLETA en móvil */
  .cookie-desc{
    display: block !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
    overflow: visible !important;
    min-height: auto !important;
    font-size: 0.98rem;
  }
  .cookie-desc::after{ content: "" !important; display: none !important; }

  /* BOTÓN PEQUEÑO A LA DERECHA */
  .add-btn{
    opacity: 1 !important;
    transform: none !important;
    pointer-events: all !important;
    max-height: none !important;

    width: auto !important;
    min-height: 44px !important;
    padding: 0.6rem 0.85rem !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.08em !important;

    align-self: flex-end !important;
    margin-left: auto !important;
    margin-top: 0.75rem !important;
  }

  .btn-icon-left{ width: 1.15rem !important; height: 1.15rem !important; }

  #cart-modal {
    margin-top: calc(var(--header-height-mobile) + 0.5rem) !important;
  }
}

/* ============================================================
   17) MÓVILES PEQUEÑOS
   ============================================================ */
@media (max-width: 360px) {
  .floating-cookie { width: 22rem; height: 22rem; top: -12rem; }

  #catalog { row-gap: 12rem !important; margin-top: 8rem !important; }

  .cookie-content { padding: 1.1rem !important; }

  .cookie-name { font-size: 1.35rem !important; }
  .cookie-price { font-size: 1.2rem !important; }
}

/* ============================================================
   ACCESIBILIDAD: reduce motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *{
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}




/* ============================================================
   MEJORAS v2 — ANIMACIONES, HERO, SKELETON, COOKIES BANNER
   ============================================================ */

/* ─── HERO SECTION ─────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #EAE5DF 0%, #D0C3BF 50%, #C4B4B0 100%);
  margin-bottom: 3rem;
  border-radius: 0 0 40px 40px;
  padding: 4rem 2rem;
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--texto-titulo);
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--texto-cuerpo);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.hero-cta {
  display: inline-block;
  background: var(--color-malva);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(149,126,132,0.4);
}

.hero-cta:hover {
  background: var(--color-malva-dark, #7A656A);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(149,126,132,0.5);
}

/* Floating cookie emojis in hero */
.hero-float {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.25;
  pointer-events: none;
  animation: heroFloat 6s ease-in-out infinite;
}
.hero-float:nth-child(2) { animation-delay: -2s; }
.hero-float:nth-child(3) { animation-delay: -4s; }
.hero-float:nth-child(4) { animation-delay: -1s; font-size: 1.8rem; }
.hero-float:nth-child(5) { animation-delay: -3s; font-size: 3rem; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-18px) rotate(8deg); }
}

/* ─── SCROLL REVEAL ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SKELETON LOADERS ──────────────────────────────────── */
.skeleton-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(94,75,80,0.06);
}

.skeleton-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  background: linear-gradient(90deg, #EAE5DF 25%, #D0C3BF 50%, #EAE5DF 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.4s ease infinite;
}

.skeleton-line {
  height: 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, #EAE5DF 25%, #D0C3BF 50%, #EAE5DF 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.4s ease infinite;
  margin-bottom: 10px;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }
.skeleton-line.full { width: 100%; }
.skeleton-line.btn { width: 100%; height: 42px; border-radius: 50px; margin-top: 1rem; }

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

/* ─── CART BUBBLE ANIMATION ─────────────────────────────── */
@keyframes cartBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.5); }
  60%  { transform: scale(0.9); }
  80%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.cart-bubble-animate {
  animation: cartBounce 0.5s cubic-bezier(0.4,0,0.2,1);
}

/* ─── CHECKOUT STEP TRANSITION ──────────────────────────── */
@keyframes stepSlideIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes stepSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-20px); }
}

.step-entering {
  animation: stepSlideIn 0.35s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* ─── CONFETTI CANVAS ───────────────────────────────────── */
#confetti-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 99999;
}

/* ─── COOKIE CONSENT BANNER ─────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 99000;
  background: rgba(30, 22, 24, 0.97);
  color: #EAE5DF;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  border-top: 2px solid var(--color-malva);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}

#cookie-banner.show {
  transform: translateY(0);
}

#cookie-banner p {
  font-size: 0.8rem;
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
  color: #C4B4B0;
}

#cookie-banner a {
  color: var(--color-malva);
  text-decoration: underline;
}

.cookie-btn-accept {
  background: var(--color-malva);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.cookie-btn-accept:hover {
  background: #7A656A;
}

.cookie-btn-reject {
  background: transparent;
  color: #C4B4B0;
  border: 1px solid #5E4B50;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cookie-btn-reject:hover {
  border-color: var(--color-malva);
  color: var(--color-malva);
}

/* ─── IVA BADGE EN PRECIOS ──────────────────────────────── */
.iva-badge {
  font-size: 0.6rem;
  color: var(--texto-cuerpo);
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

/* ─── ALLERGEN ICONS EN TARJETAS ────────────────────────── */
.allergen-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}

.allergen-icon-chip {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 20px;
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.allergen-icon-chip.trace {
  background: #FFFBEB;
  color: #92400E;
  border-color: #FDE68A;
}

/* ─── HERO BADGE ────────────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(149,126,132,0.15);
  border: 1px solid rgba(149,126,132,0.3);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--texto-titulo);
  margin-bottom: 1rem;
}

/* ─── CATALOG SECTION HEADER ────────────────────────────── */
.catalog-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-top: 1rem;
}

.catalog-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-style: italic;
  color: var(--texto-titulo);
  margin-bottom: 0.5rem;
}

.catalog-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--texto-cuerpo);
}

/* ─── ADD TO CART BUTTON PULSE ──────────────────────────── */
@keyframes addPulse {
  0%   { box-shadow: 0 0 0 0 rgba(149,126,132,0.4); }
  70%  { box-shadow: 0 0 0 10px rgba(149,126,132,0); }
  100% { box-shadow: 0 0 0 0 rgba(149,126,132,0); }
}
.add-btn.added {
  animation: addPulse 0.5s ease;
}

/* ─── FOOTER MEJORAS ────────────────────────────────────── */
.footer-icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.2s;
}

.footer-icon-link:hover {
  color: black;
}
