/* ============================================================
   Bloopits — Estilos
   Paleta: Navy #112057 · Pink #E8437A · Blue #47C2E8 · Orange #F07820
   ============================================================ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: .2s; }
a:hover { opacity: .82; }
ul { list-style: none; }

/* ── Tipografía ── */
h1,h2,h3,h4,h5 { font-family: 'Fredoka One', sans-serif; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2rem,5vw,3.4rem); }
h2 { font-size: clamp(1.5rem,3vw,2.3rem); }
h3 { font-size: 1.35rem; }

/* ── Layout ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── Announcement bar ── */
.announcement-bar {
  padding: .45rem 1rem;
  text-align: center;
  font-size: .85rem;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
}
.ann-inner { display: inline-flex; animation: marquee 30s linear infinite; }
.ann-text   { padding: 0 2rem; }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── Role bar ── */
.role-bar {
  background: #EFF6FF;
  border-bottom: 1px solid #BFDBFE;
  text-align: center;
  font-size: .85rem;
  padding: .4rem 1rem;
  color: var(--navy);
}
.role-bar a { color: var(--primary); font-weight: 800; }

/* ── Navbar ── */
.navbar {
  background: var(--navy);
  box-shadow: 0 2px 20px rgba(17,32,87,.25);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}
.navbar-logo  { height: 46px; width: auto; }
.navbar-brand { display: flex; align-items: center; }

.navbar-menu { flex: 1; }
.nav-links { display: flex; gap: .15rem; align-items: center; }
.nav-links > li { position: relative; }
.nav-links a {
  padding: .45rem .85rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  transition: all .2s;
}
.nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; opacity: 1; }

/* Dropdown — controlado por JS con delay de cierre */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: .5rem;   /* zona de gracia: puente invisible entre trigger y menú */
}
.dropdown-right { left: auto; right: 0; }
.dropdown-inner {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(17,32,87,.2);
  min-width: 220px;
  padding: .5rem 0;
  border: 1px solid #E0E8F8;
}
.dropdown.open { display: block; }
.dropdown li a {
  display: block;
  padding: .6rem 1.25rem;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 700;
}
.dropdown li a:hover { background: #F0F5FF; color: var(--primary); opacity: 1; }

/* Mega-menú de categorías: varias columnas + scroll si hay muchas */
.dropdown-mega .dropdown-inner {
  width: 540px;
  max-width: 92vw;
  column-count: 3;
  column-gap: .4rem;
  max-height: 72vh;
  overflow-y: auto;
  padding: .6rem .75rem;
}
@media (max-width: 1000px) {
  .dropdown-mega .dropdown-inner { width: 380px; column-count: 2; }
}
.cat-group {
  break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
  display: block; margin-bottom: .35rem;
}
.cat-group .cat-head {
  display: block; padding: .4rem .6rem; color: var(--navy);
  font-size: .9rem; font-weight: 800; border-radius: 8px; text-decoration: none;
}
.cat-group .cat-head:hover { background: #F0F5FF; color: var(--primary); }
.cat-group .cat-sub {
  display: block; padding: .3rem .6rem .3rem 1.4rem; color: #7A8DB5;
  font-size: .82rem; font-weight: 600; border-radius: 8px; text-decoration: none;
}
.cat-group .cat-sub:hover { background: #F0F5FF; color: var(--primary); }

/* Dropdown en mobile (sin JS delay) */
@media (max-width: 768px) {
  .dropdown { padding-top: 0; }
  .dropdown-inner { box-shadow: none; border: none; border-radius: 0; background: rgba(255,255,255,.06); }
  .dropdown.open { display: block; }
  .dropdown li a { color: rgba(255,255,255,.75); padding: .5rem 1.5rem; }
  .dropdown li a:hover { background: rgba(255,255,255,.08); color: #fff; }
  /* Mega-menú en mobile: grilla de 2 columnas, fondo oscuro, texto blanco */
  .navbar-menu .dropdown-mega .dropdown-inner {
    width: auto; max-width: none;
    column-count: unset;
    display: grid; grid-template-columns: 1fr 1fr; gap: .1rem .35rem;
    align-content: start;
    max-height: 62vh; overflow-y: auto;
    background: rgba(0,0,0,.18); border-radius: 8px;
  }
  .navbar-menu .dropdown-mega .cat-group { break-inside: auto; margin-bottom: .15rem; }
  .navbar-menu .dropdown-mega .cat-head { color: #fff !important; padding: .35rem .5rem; }
  .navbar-menu .dropdown-mega .cat-sub  { color: rgba(255,255,255,.75) !important; padding: .25rem .5rem .25rem 1.2rem; }
  .navbar-menu .dropdown-mega .cat-head:hover,
  .navbar-menu .dropdown-mega .cat-sub:hover { background: rgba(255,255,255,.12); color: #fff !important; }
}
/* En pantallas muy chicas, una sola columna para no apretar */
@media (max-width: 400px) {
  .navbar-menu .dropdown-mega .dropdown-inner { grid-template-columns: 1fr; }
}

.navbar-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }

.btn-icon {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.9);
  font-weight: 800; font-size: .88rem;
  padding: .4rem .7rem;
  transition: .2s; font-family: inherit;
}
.btn-icon:hover { background: rgba(255,255,255,.18); color: #fff; }
.nav-label { font-family: 'Nunito', sans-serif; }

.cart-icon { position: relative; }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--primary); color: #fff;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: .68rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--navy);
}

.burger { display: none; flex-direction: column; gap: 5px; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2); border-radius: 8px; cursor: pointer; padding: .5rem; }
.burger span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }

/* Pack Fiesta y Empresarial — enlaces resaltados en navbar */
.nav-link-empresarial {
  background: var(--navy) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: .35rem 1rem !important;
  font-weight: 800 !important;
  font-size: .82rem !important;
  letter-spacing: .04em;
  transition: all .2s !important;
}
.nav-link-empresarial:hover {
  background: var(--accent) !important;
  transform: translateY(-1px);
}
.nav-link-fiesta {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: 50px !important;
  padding: .38rem 1rem !important;
  font-weight: 900 !important;
  font-size: .85rem !important;
  letter-spacing: .03em;
  box-shadow: 0 3px 12px rgba(232,67,122,.4);
  transition: all .2s !important;
}
.nav-link-fiesta:hover {
  background: #d13569 !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(232,67,122,.5);
  opacity: 1 !important;
}

/* ── Botones ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .65rem 1.5rem;
  border-radius: 50px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800; font-size: .92rem;
  cursor: pointer; border: 2px solid transparent;
  transition: all .22s; text-decoration: none; line-height: 1;
}
.btn-sm  { padding: .42rem 1rem; font-size: .82rem; }
.btn-lg  { padding: .85rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(232,67,122,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 22px rgba(232,67,122,.45); opacity: 1; }

.btn-secondary {
  background: var(--secondary); color: #fff; border-color: var(--secondary);
  box-shadow: 0 4px 16px rgba(71,194,232,.3);
}
.btn-secondary:hover { transform: translateY(-2px); opacity: 1; }

.btn-accent {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(240,120,32,.35);
}
.btn-accent:hover { transform: translateY(-2px); opacity: 1; }

.btn-navy {
  background: var(--navy); color: #fff; border-color: var(--navy);
  box-shadow: 0 4px 16px rgba(17,32,87,.3);
}
.btn-navy:hover { transform: translateY(-2px); opacity: 1; }

.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; opacity: 1; }

.btn-outline-white {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.6);
}
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: #fff; opacity: 1; }

.btn-ghost  { background: #F0F4FF; color: var(--navy); border-color: #E0E8FF; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); opacity: 1; }

.btn-whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.btn-danger   { background: #EF4444; color: #fff; border-color: #EF4444; }

.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(17,32,87,.07);
  overflow: hidden; transition: .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(17,32,87,.12); }
.card-body  { padding: 1.5rem; }

/* ── Formularios ── */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block; font-weight: 800; margin-bottom: .35rem;
  font-size: .88rem; color: var(--navy);
}
.form-control {
  width: 100%; padding: .7rem 1rem;
  border: 2px solid #DDE5F4; border-radius: 10px;
  font-family: 'Nunito', sans-serif; font-size: .95rem;
  background: #fff; color: var(--navy); transition: .2s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,67,122,.12); }
.form-control::placeholder { color: #A8BADA; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint  { font-size: .82rem; color: #7A8DB5; margin-top: .3rem; }
.form-error { color: #EF4444; font-size: .85rem; margin-top: .3rem; font-weight: 700; }

.error-list {
  background: #FEF2F2; border: 2px solid #FECACA;
  border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.2rem;
}
.error-list li { color: #DC2626; font-size: .9rem; padding: .2rem 0; }
.error-list li::before { content: '❌ '; }

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .75rem; border-radius: 50px;
  font-size: .78rem; font-weight: 800; white-space: nowrap;
}
.badge-primary { background: #FDE8EF; color: var(--primary); }
.badge-success { background: #DCFCE7; color: #16A34A; }
.badge-warning { background: #FEF9C3; color: #CA8A04; }
.badge-error   { background: #FEE2E2; color: #DC2626; }
.badge-info    { background: #EFF6FF; color: #2563EB; }
.badge-qty     { background: #DCFCE7; color: #16A34A; border: 1px dashed #86EFAC; }
.badge-navy    { background: #EEF2FF; color: var(--navy); }

/* ── HERO CARRUSEL ── */
.hero-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100svh;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}

.carousel-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  flex: 1;
}

.carousel-slide {
  position: relative;
  min-width: 100%;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.slide-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 1.25rem;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.slide-content { max-width: 560px; }
.slide-visual   { display: flex; align-items: center; justify-content: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.15); color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px; padding: .4rem 1.1rem;
  font-weight: 800; font-size: .82rem;
  margin-bottom: 1.4rem;
  backdrop-filter: blur(4px);
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat  { text-align: center; }
.hero-stat .stat-num   { font-family: 'Fredoka One'; font-size: 2rem; line-height: 1; }
.hero-stat .stat-label { font-size: .76rem; font-weight: 700; margin-top: .2rem; }

/* Flechas de navegación */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.carousel-arrow:hover { background: rgba(255,255,255,.32); transform: translateY(-50%) scale(1.08); }
.carousel-prev { left: 1.25rem; }
.carousel-next { right: 1.25rem; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .55rem;
  z-index: 10;
}
.cdot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.5);
  background: transparent;
  cursor: pointer;
  transition: .25s;
  padding: 0;
}
.cdot.active {
  background: #fff;
  border-color: #fff;
  width: 28px;
  border-radius: 5px;
}

@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }

/* Responsive carrusel */
@media (max-width: 768px) {
  .hero-carousel { height: 100svh; min-height: 480px; }
  .slide-inner { grid-template-columns: 1fr; padding: 3.5rem 1rem 4.5rem; }
  .slide-visual { display: none; }
  .carousel-arrow { width: 40px; height: 40px; font-size: 1.5rem; }
  .carousel-prev { left: .6rem; }
  .carousel-next { right: .6rem; }
}

/* ── Categorías ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px,1fr));
  gap: 1rem;
}
.category-card {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: 1.4rem .8rem;
  background: #fff;
  border-radius: 16px;
  text-align: center;
  border: 2px solid #EEF2FF;
  box-shadow: 0 2px 10px rgba(17,32,87,.06);
  transition: .25s;
  cursor: pointer;
  color: var(--navy); font-weight: 800; font-size: .88rem;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(17,32,87,.12);
  border-color: var(--cat-color, var(--primary));
  color: var(--cat-color, var(--primary));
  opacity: 1;
}
.category-card .cat-icon {
  font-size: 2rem;
  width: 56px; height: 56px;
  background: var(--cat-bg, #EEF2FF);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .2rem;
}

/* ── Hero compacto (inicio) ── */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.home-hero-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 1.75rem;
  color: #fff;
  text-decoration: none;
  transition: filter .2s;
}
.home-hero-card:hover { filter: brightness(1.08); }
.home-hero-card.hero-fiesta { background: linear-gradient(135deg,#C7226A 0%,#E8437A 60%,#F26699 100%); }
.home-hero-card.hero-empresa { background: linear-gradient(135deg,#0D1B2A 0%,#1E3A8A 60%,#112057 100%); }
.home-hero-emoji { font-size: 2.6rem; line-height: 1; flex-shrink: 0; }
.home-hero-card h2 { font-family: 'Fredoka One', sans-serif; font-size: 1.5rem; margin: 0 0 .2rem; color: #fff; line-height: 1.1; }
.home-hero-card p { font-size: .88rem; opacity: .9; margin: 0 0 .35rem; line-height: 1.35; }
.home-hero-cta { font-size: .85rem; font-weight: 900; letter-spacing: .02em; }
.hero-fiesta .home-hero-cta { color: #FFD6E7; }
.hero-empresa .home-hero-cta { color: #93C5FD; }
@media (max-width: 640px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-card { padding: 1.25rem 1.25rem; }
}

/* ── Grilla de productos ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(17,32,87,.07);
  transition: .25s;
  display: flex; flex-direction: column;
  border: 2px solid transparent;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(17,32,87,.14);
  border-color: var(--primary);
}
.product-img-wrap {
  position: relative; aspect-ratio: 1; overflow: hidden; background: #F7F9FF;
}
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover; transition: transform .35s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-badge-wrap { position: absolute; top: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .3rem; }
/* Indicador scroll hero */
.hero-scroll-hint {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: 1.5rem;
  animation: bounceDown 1.8s ease-in-out infinite;
  cursor: pointer; z-index: 10; line-height: 1;
}
@keyframes bounceDown {
  0%,100% { transform: translateX(-50%) translateY(0); opacity:.5; }
  50%      { transform: translateX(-50%) translateY(8px); opacity:1; }
}

.qty-discount-ribbon {
  position: absolute; bottom: .5rem; left: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: #fff;
  font-family: 'Fredoka One', sans-serif;
  font-size: .78rem;
  padding: .22rem .65rem .22rem .5rem;
  border-radius: 0 20px 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  letter-spacing: .01em;
  z-index: 2;
  pointer-events: none;
}

.product-img-wrap { cursor: zoom-in; }

/* Miniaturas de fotos extra en la tarjeta */
.card-thumbs { display: flex; gap: .35rem; padding: .5rem .85rem 0; flex-wrap: wrap; }
.card-thumb {
  width: 38px; height: 38px; padding: 0; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; background: #F7F9FF; cursor: pointer; transition: .15s;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-thumb.active, .card-thumb:hover { border-color: var(--primary); }

.product-body { padding: .75rem .85rem .5rem; flex: 1; display: flex; flex-direction: column; gap: .25rem; }

.product-cats { display: flex; flex-wrap: wrap; gap: .2rem; margin-bottom: .05rem; }
.product-cats a { font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.product-cat  { font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.product-name { font-weight: 800; font-size: .92rem; color: var(--navy); line-height: 1.25; display: block; }
.product-name:hover { color: var(--primary); opacity: 1; }

.product-pricing  { margin-top: .35rem; }
.price-main       { font-family: 'Fredoka One'; font-size: 1.3rem; color: var(--primary); }
.price-reseller   { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .15rem; }
.price-tag        { font-size: .72rem; font-weight: 800; padding: .15rem .5rem; border-radius: 50px; background: #EFF6FF; color: #2563EB; }
.price-tag.r2     { background: #FEF9C3; color: #B45309; }

.product-footer {
  padding: .55rem .85rem .8rem;
  border-top: 1px solid #F0F4FF;
  display: flex; gap: .4rem; align-items: center;
}

/* Lightbox */
.lb-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.lb-overlay img {
  max-width: min(90vw, 700px);
  max-height: 85vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
}
.lb-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; font-size: 1.4rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: .2s;
}
.lb-close:hover { background: rgba(255,255,255,.28); }
.lb-caption {
  position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 700;
  background: rgba(0,0,0,.4); padding: .35rem .9rem; border-radius: 50px;
  white-space: nowrap;
}

/* Toast AJAX */
.cart-toast {
  position: fixed; bottom: 5rem; right: 1.5rem; z-index: 999;
  background: var(--navy); color: #fff;
  padding: .75rem 1.25rem; border-radius: 50px;
  font-weight: 800; font-size: .9rem;
  box-shadow: 0 8px 24px rgba(17,32,87,.3);
  animation: toastIn .3s ease;
  pointer-events: none;
}
@keyframes toastIn { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }

/* ── Descuentos por cantidad ── */
.qty-discount-strip {
  display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; padding: 2rem 0;
}
.qty-tier {
  display: flex; flex-direction: column; align-items: center;
  background: #fff; border-radius: 16px; padding: 1.25rem 1.5rem;
  min-width: 130px;
  box-shadow: 0 2px 12px rgba(17,32,87,.07);
  border: 2px solid #EEF2FF; transition: .22s; text-align: center;
}
.qty-tier:hover { border-color: var(--tier-color, var(--primary)); transform: translateY(-3px); }
.qty-tier .tier-icon  { font-size: 1.8rem; margin-bottom: .4rem; }
.qty-tier .tier-qty   { font-size: .8rem; color: #7A8DB5; font-weight: 700; margin-bottom: .3rem; }
.qty-tier .tier-disc  { font-family: 'Fredoka One'; font-size: 1.65rem; color: var(--tier-color, var(--primary)); }
.qty-tier .tier-label { font-size: .8rem; font-weight: 800; color: var(--navy); margin-top: .2rem; }

/* ── Section headers ── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: .75rem; }
.section-header p  { color: #7A8DB5; font-size: 1.05rem; max-width: 520px; margin: 0 auto; }
.section-eyebrow {
  display: inline-block;
  background: var(--navy); color: #fff;
  border-radius: 50px; padding: .3rem 1rem;
  font-size: .8rem; font-weight: 800; margin-bottom: .85rem;
}

/* ── Why us ── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 1.5rem; }
.why-card {
  background: #fff; border-radius: 16px; padding: 2rem 1.5rem;
  text-align: center; box-shadow: 0 2px 12px rgba(17,32,87,.06); transition: .22s;
  border: 2px solid #EEF2FF;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(17,32,87,.11); border-color: var(--primary); }
.why-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.why-card h4 { color: var(--navy); font-size: 1.05rem; margin-bottom: .5rem; }
.why-card p  { font-size: .87rem; color: #7A8DB5; }

/* ── Package CTA ── */
.package-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #1E3A8A 100%);
  border-radius: 24px; padding: 3.5rem 2.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center;
  color: #fff;
}
.package-cta-img { border-radius: 16px; overflow: hidden; }
.package-cta-content h2 { color: #fff; margin-bottom: 1rem; }
.package-cta-content p  { color: rgba(255,255,255,.8); margin-bottom: 1.5rem; font-size: 1.05rem; }
.package-features       { margin-bottom: 1.5rem; }
.package-features li    { padding: .4rem 0; display: flex; gap: .6rem; align-items: center; font-weight: 700; color: rgba(255,255,255,.9); }
.package-features li::before { content: '✅'; font-size: .85rem; }

/* ── Producto detalle ── */
.product-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; padding: 3rem 0;
}
.product-gallery { position: sticky; top: 90px; }
.gallery-main {
  border-radius: 16px; overflow: hidden; aspect-ratio: 1;
  background: #F7F9FF; margin-bottom: 1rem; cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs   { display: flex; gap: .6rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 70px; height: 70px; border-radius: 10px; overflow: hidden;
  cursor: pointer; border: 2px solid transparent; transition: .2s;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--primary); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-breadcrumb { font-size: .85rem; color: #7A8DB5; margin-bottom: .75rem; }
.product-breadcrumb a { color: var(--primary); }

.product-price-box {
  background: #F7F9FF; border-radius: 14px; padding: 1.5rem; margin: 1.5rem 0;
  border: 2px solid #EEF2FF;
}
.product-price-main { font-family: 'Fredoka One'; font-size: 2.2rem; color: var(--primary); margin-bottom: .25rem; }
.product-price-note { font-size: .84rem; color: #7A8DB5; }

/* Qty selector */
.qty-selector { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.qty-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2px solid var(--primary); background: none;
  font-size: 1.2rem; font-weight: 900; cursor: pointer;
  color: var(--primary); display: flex; align-items: center; justify-content: center; transition: .2s;
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input {
  width: 72px; text-align: center; font-size: 1.1rem; font-weight: 800;
  border: 2px solid #DDE5F4; border-radius: 10px; padding: .4rem;
  font-family: 'Nunito', sans-serif;
}
.qty-discount-info {
  background: linear-gradient(135deg,#DCFCE7,#D1FAE5);
  border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1rem;
  font-size: .9rem; font-weight: 800; color: #15803D;
  border-left: 3px solid #22C55E;
}

/* ── Carrito ── */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.cart-items  { display: flex; flex-direction: column; gap: 1rem; }
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 1rem;
  background: #fff; border-radius: 16px; padding: 1rem;
  box-shadow: 0 2px 12px rgba(17,32,87,.06); align-items: center;
  border: 2px solid #EEF2FF;
}
.cart-item-img  { border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #F7F9FF; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name  { font-weight: 800; font-size: .95rem; margin-bottom: .25rem; color: var(--navy); }
.cart-item-price { font-family: 'Fredoka One'; font-size: 1.1rem; color: var(--primary); }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.cart-item-total   { font-family: 'Fredoka One'; font-size: 1.35rem; color: var(--primary); }

.cart-summary {
  background: #fff; border-radius: 16px; padding: 1.5rem;
  box-shadow: 0 2px 16px rgba(17,32,87,.09);
  border: 2px solid #EEF2FF; position: sticky; top: 90px;
}
.cart-summary h3 { color: var(--navy); margin-bottom: 1.25rem; }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .5rem 0; font-size: .95rem;
}
.summary-row.total {
  border-top: 2px solid #EEF2FF; margin-top: .75rem; padding-top: .75rem;
  font-weight: 800; font-size: 1.1rem;
}
.summary-row.total .sum-amount { font-family: 'Fredoka One'; font-size: 1.45rem; color: var(--primary); }

/* ── Checkout ── */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
.checkout-section {
  background: #fff; border-radius: 16px; padding: 1.75rem;
  margin-bottom: 1.25rem; box-shadow: 0 2px 12px rgba(17,32,87,.06);
  border: 2px solid #EEF2FF;
}
.checkout-section h3 { color: var(--primary); margin-bottom: 1.25rem; }

/* Agencias de envío */
.shipping-agencies { display: flex; flex-direction: column; gap: .6rem; }
.agency-option {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; border: 2px solid #DDE5F4; border-radius: 10px;
  cursor: pointer; transition: .2s; font-weight: 700; color: var(--navy);
}
.agency-option:has(input:checked) { border-color: var(--secondary); background: #F0FAFF; }
.agency-option input { accent-color: var(--secondary); width: 18px; height: 18px; flex-shrink:0; }
.agency-name  { flex: 1; font-size: .95rem; }
.agency-price { font-family:'Fredoka One'; font-size:1.1rem; color:var(--secondary); }

.payment-methods { display: flex; flex-direction: column; gap: .75rem; }
.payment-method {
  display: flex; align-items: center; gap: .75rem; padding: .85rem 1.1rem;
  border: 2px solid #DDE5F4; border-radius: 10px;
  cursor: pointer; transition: .2s; font-weight: 700; color: var(--navy);
}
.payment-method:has(input:checked) { border-color: var(--primary); background: #FDE8EF; }
.payment-method input { accent-color: var(--primary); width: 18px; height: 18px; }

/* ── Auth pages ── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: linear-gradient(135deg, #112057 0%, #1E3A8A 50%, #0F172A 100%);
}
.auth-card {
  background: #fff; border-radius: 24px; padding: 2.5rem;
  width: 100%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  text-align: center;
}
.auth-card .mascot { width: 80px; margin: 0 auto 1rem; }
.auth-card h2 { color: var(--navy); margin-bottom: .5rem; }
.auth-card .auth-sub { color: #7A8DB5; font-size: .95rem; margin-bottom: 1.75rem; }
.auth-card form { text-align: left; }
.auth-switch { margin-top: 1.5rem; font-size: .9rem; color: #7A8DB5; }

/* ── Paginación ── */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2.5rem; }
.page-btn {
  padding: .5rem .9rem; border-radius: 8px; border: 2px solid #DDE5F4;
  background: #fff; font-family: inherit; font-weight: 800; font-size: .88rem;
  cursor: pointer; color: var(--navy); transition: .2s;
}
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── Flash ── */
.flash-container { position: fixed; top: 80px; right: 1rem; z-index: 500; display: flex; flex-direction: column; gap: .5rem; }
.flash {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.25rem; border-radius: 10px;
  font-weight: 700; font-size: .92rem;
  box-shadow: 0 4px 20px rgba(17,32,87,.18);
  animation: slideIn .3s ease; max-width: 360px;
}
.flash-success { background: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; }
.flash-error   { background: #FEE2E2; color: #DC2626; border: 1px solid #FCA5A5; }
.flash-info    { background: #EFF6FF; color: #1D4ED8; border: 1px solid #93C5FD; }
.flash-close   { background: none; border: none; cursor: pointer; font-size: 1.2rem; margin-left: auto; opacity: .6; line-height: 1; }
@keyframes slideIn { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }

/* ── WhatsApp float ── */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 56px; height: 56px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45); z-index: 400; transition: .25s;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); opacity: 1; }

/* ── Admin ── */
.admin-wrap { display: flex; min-height: 100vh; background: #F1F5FF; }
.admin-sidebar {
  width: 240px; background: var(--navy); flex-shrink: 0;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
}
.admin-sidebar-logo {
  padding: 1.25rem 1rem; border-bottom: 1px solid rgba(255,255,255,.1);
}
.admin-sidebar-logo img { height: 36px; filter: brightness(0) invert(1); }
.admin-nav { padding: .75rem 0; flex: 1; }
.admin-nav-group {
  padding: 1rem .75rem .3rem;
  font-size: .7rem; font-weight: 900; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
}
.admin-nav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem 1rem; color: rgba(255,255,255,.75);
  font-size: .88rem; font-weight: 700;
  border-radius: 8px; margin: .1rem .5rem; transition: .2s;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(232,67,122,.2); color: #fff; opacity: 1;
}
.admin-main { flex: 1; padding: 2rem; overflow-x: auto; }
.admin-header {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem;
}
.admin-header h1 { font-size: 1.6rem; }
.admin-header .spacer { flex: 1; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
  background: #fff; border-radius: 14px; padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(17,32,87,.07);
  border-left: 4px solid var(--stat-color, var(--primary));
}
.stat-card .stat-num   { font-family: 'Fredoka One'; font-size: 2.2rem; color: var(--stat-color, var(--primary)); }
.stat-card .stat-label { font-size: .83rem; color: #7A8DB5; font-weight: 700; margin-top: .25rem; }

.admin-table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(17,32,87,.07); font-size: .9rem;
}
.admin-table th {
  background: #F1F5FF; padding: .8rem 1rem; text-align: left;
  font-weight: 900; font-size: .78rem; text-transform: uppercase;
  letter-spacing: .06em; color: #4A5A80;
}
.admin-table td { padding: .8rem 1rem; border-top: 1px solid #EEF2FF; vertical-align: middle; }
.admin-table tr:hover td { background: #FAFBFF; }

.admin-filters {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
  background: #fff; padding: 1rem; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(17,32,87,.05);
}

/* ── Tabs ── */
.tabs { display: flex; gap: .25rem; border-bottom: 2px solid #EEF2FF; margin-bottom: 2rem; }
.tab-btn {
  padding: .65rem 1.2rem; border: none; background: none;
  font-family: 'Nunito',sans-serif; font-weight: 800; font-size: .88rem;
  cursor: pointer; color: #7A8DB5; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: .2s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 4rem 2rem; color: #7A8DB5; }
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 1rem; display: block; }
.empty-state h3 { color: var(--navy); margin-bottom: .75rem; }
.empty-state p  { margin-bottom: 1.5rem; font-size: .95rem; }

/* ── Footer ── */
.footer {
  background: var(--navy); color: rgba(255,255,255,.8);
  padding: 4rem 0 0; margin-top: auto;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; padding-bottom: 3rem;
}
.footer-logo     { height: 44px; filter: brightness(0) invert(1); margin-bottom: .75rem; }
.footer-tagline  { font-family: 'Fredoka One'; font-size: 1.2rem; color: #fff; margin-bottom: .5rem; }
.footer-desc     { font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.6; }
.footer-social   { display: flex; gap: .75rem; margin-top: 1rem; }
.social-link     { font-size: 1.4rem; opacity: .7; transition: .2s; }
.social-link:hover { opacity: 1; transform: scale(1.15); }
.footer-col h4 {
  color: rgba(255,255,255,.45); font-size: .75rem; text-transform: uppercase;
  letter-spacing: .1em; margin-bottom: 1rem;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .9rem; transition: .2s; }
.footer-col ul li a:hover { color: var(--primary); opacity: 1; }
.footer-col ul li { font-size: .88rem; color: rgba(255,255,255,.6); }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: .9rem 2rem; font-size: .75rem; color: rgba(255,255,255,.45);
  text-align: center; line-height: 1.6;
}
.footer-legal strong { color: rgba(255,255,255,.6); }

/* ── Celebración de tier (bundle + carrito) ── */
.tier-celebration-overlay {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  pointer-events: all; cursor: pointer;
}
.tier-celebration-overlay.fading { animation: fadeOut .4s forwards; }
@keyframes fadeOut { to { opacity: 0; } }

.tier-cel-bg {
  position: absolute; inset: 0;
  background: rgba(17,32,87,.55); backdrop-filter: blur(3px);
}
.tier-cel-confetti, .tier-cel-emojis {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.tier-cel-card {
  position: relative; z-index: 2;
  background: #fff; border-radius: 24px;
  padding: 2rem 2.5rem; text-align: center;
  box-shadow: 0 24px 80px rgba(17,32,87,.35);
  animation: cardPop .45s cubic-bezier(.36,.07,.19,.97);
  min-width: 240px;
}
@keyframes cardPop {
  0%   { transform: scale(.6) rotate(-4deg); opacity: 0; }
  70%  { transform: scale(1.06) rotate(1deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.tier-cel-piñata  { font-size: 3.5rem; line-height: 1; margin-bottom: .4rem; }
.tier-cel-unlocked { font-size: .82rem; font-weight: 800; color: #7A8DB5; text-transform: uppercase; letter-spacing: .08em; }
.tier-cel-name     { font-family: 'Fredoka One'; font-size: 1.7rem; color: var(--navy); margin: .2rem 0; }
.tier-cel-disc     { font-family: 'Fredoka One'; font-size: 3rem; line-height: 1; }
.tier-cel-sub      { font-size: .8rem; color: #7A8DB5; margin-top: .3rem; }

@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}
@keyframes emojiRise {
  to { transform: translateY(-110vh); opacity: 0; }
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); text-align: center;
  padding: 1.25rem; font-size: .82rem; color: rgba(255,255,255,.3);
}

/* ── Utilidades ── */
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-muted    { color: #7A8DB5; }
.text-small    { font-size: .85rem; }
.fw-bold       { font-weight: 800; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap     { flex-wrap: wrap; }
.gap-1         { gap: .5rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .package-cta { grid-template-columns: 1fr; }
  .package-cta-img { display: none; }
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .products-grid { grid-template-columns: repeat(3,1fr); }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-mascot { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-menu {
    display: none; position: fixed; inset: 68px 0 0;
    background: var(--navy); z-index: 99; padding: 1rem; overflow-y: auto;
  }
  .navbar-menu.open { display: block; }
  .nav-links { flex-direction: column; }
  .nav-links > li > a { font-size: 1rem; padding: .65rem 1rem; border-radius: 8px; }
  .nav-link-fiesta { display: inline-block; margin: .3rem 1rem !important; }
  .dropdown { position: static; box-shadow: none; border: none; padding-left: 1rem; background: rgba(255,255,255,.05); }
  .dropdown li a { color: rgba(255,255,255,.75); }
  .burger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(auto-fill,minmax(110px,1fr)); }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .hero { min-height: 70vh; }
  .hero-btns { flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .admin-sidebar { width: 200px; }
  .admin-main { padding: 1rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 .85rem; }
  .section { padding: 3rem 0; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: .85rem; }
  .cart-item { grid-template-columns: 60px 1fr; }
  .cart-item-actions { flex-direction: row; grid-column: 1/-1; }
  .auth-card { padding: 1.75rem 1.25rem; border-radius: 20px; }
}
