/* ============================================
   chilita.mia — catalog.css
   Hero · Productos · Eventos · Instagram · Cómo pedir · Footer
   ============================================ */

/* ——— HERO — Product-in-text cinematic ——— */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #060201;
  /* All layers absolutely positioned — no flexbox needed */
}

/* Full-bleed background: very dark/blurred for cinematic depth */
.hero__bg {
  position: absolute;
  inset: -8% 0;
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
  filter: brightness(0.18) saturate(1.4);
  transition: background-image 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 42%, transparent 15%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

/* ——— CAPA 1: Título trasero ——— */
.hero__title-rear {
  position: absolute;
  bottom: clamp(90px, 16vh, 170px);
  left: 0; right: 0;
  text-align: center;
  z-index: 2;
  pointer-events: none;
}

.hero__title-rear-text {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.5rem, 5.8vw, 8rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

.hero__title-rear-text em {
  font-style: italic;
  color: var(--accent-warm);
}

/* ——— CAPA 2: Producto centrado ——— */
.hero__product-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(-2vh);
  width: clamp(260px, 40vw, 560px);
  height: clamp(260px, 40vw, 560px);
  z-index: 3;
  animation: orbit-float 6s ease-in-out infinite;
}

@keyframes orbit-float {
  0%, 100% { transform: translate(-50%, calc(-50% - 2vh)) translateY(0px); }
  40%       { transform: translate(-50%, calc(-50% - 2vh)) translateY(-18px); }
  70%       { transform: translate(-50%, calc(-50% - 2vh)) translateY(-10px); }
}

/* Disco circular con la foto */
.hero__product-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 3px rgba(255,255,255,0.12),
    0 0 0 8px rgba(255,255,255,0.04),
    0 70px 140px rgba(0,0,0,0.85),
    0 0 100px var(--accent-glow);
  transition: box-shadow 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero__product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero__product-disc:hover .hero__product-img {
  transform: scale(1.06);
}

/* Partículas flotantes */
.hero__particle {
  position: absolute;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
  animation: particle-drift 4s ease-in-out infinite;
  will-change: transform;
}

.hero__particle--1 { top:  5%;  left:  -22%; animation-delay: 0.0s; animation-duration: 4.8s; }
.hero__particle--2 { top:  18%; right: -24%; animation-delay: 0.7s; animation-duration: 5.2s; }
.hero__particle--3 { bottom: 14%; left: -14%; animation-delay: 1.3s; animation-duration: 4.0s; }
.hero__particle--4 { bottom: 4%;  right: -18%; animation-delay: 0.4s; animation-duration: 5.8s; }
.hero__particle--5 { top:  -10%; left:  35%;  animation-delay: 0.9s; animation-duration: 4.4s; }

@keyframes particle-drift {
  0%, 100% { transform: translateY(0px)   rotate(0deg)   scale(1.0); }
  50%       { transform: translateY(-18px) rotate(14deg)  scale(1.12); }
}

/* Badge flotante en el disco */
.hero__badge {
  position: absolute;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 12px;
  padding: 0.5rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.2);
  white-space: nowrap;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  z-index: 1; /* sobre el disco */
}

.hero__badge--tl {
  top: -8px;
  left: 12px;
}

.hero__badge .badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #25D366;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(37,211,102,0.8);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1;   box-shadow: 0 0 6px  rgba(37,211,102,0.8); }
  50%       { opacity: 0.7; box-shadow: 0 0 14px rgba(37,211,102,1.0); }
}

/* ——— CAPA 3: Título frontal "ANTOJITOS" ——— */
.hero__title-fore {
  position: absolute;
  top: clamp(68px, 9vh, 118px);
  left: 0; right: 0;
  text-align: center;
  z-index: 4;
  pointer-events: none;
}

.hero__title-main {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  /* ANTOJITOS = 9 chars. Syne 800 uppercase ≈ 0.72em width each.
     To fit in ~95vw: fs = 95vw / (9 × 0.72) ≈ 14.7vw → use 10vw for safe margin */
  font-size: clamp(4rem, 9vw, 13rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: #FFFFFF;
  text-transform: uppercase;
  text-shadow: 0 8px 80px rgba(0,0,0,0.4);
  white-space: nowrap;
}

/* ——— CAPA 4: HUD inferior ——— */
.hero__hud {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3.5rem);
  /* Right padding extra para no solapar el botón WhatsApp sticky (~213px desde el borde) */
  padding-right: max(clamp(1.5rem, 4vw, 3.5rem), 230px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.3) 55%, transparent 100%);
  z-index: 20;
}

.hero__hud-info {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.hero__hud-mode {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  width: fit-content;
  backdrop-filter: blur(8px);
}

.hero__subtitle {
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  color: rgba(255,255,255,0.58);
  line-height: 1.5;
  font-weight: 500;
}

.hero__mode-label {
  font-size: 0.64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.38);
}

.hero__mode-btns {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mode-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.35rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.mode-btn:hover {
  border-color: rgba(255,255,255,0.5);
  color: #FFFFFF;
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}

.mode-btn.active {
  background: var(--btn-bg);
  color: #FFFFFF;
  border-color: var(--btn-bg);
  box-shadow: 0 6px 28px var(--accent-glow), 0 0 0 1px var(--btn-bg);
}

.mode-btn .mode-icon {
  font-size: 1.05rem;
  line-height: 1;
}

/* ——— Scroll hint ——— */
.hero__scroll-hint {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.3);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scroll-bounce 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.3; }
  50%       { transform: translateX(-50%) translateY(5px); opacity: 0.6; }
}

/* ——— CATALOG SECTION ——— */
.catalog {
  background: var(--bg-primary);
}

.catalog__header {
  text-align: center;
  margin-bottom: 3rem;
}

/* Mode tabs */
.catalog__tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.catalog__tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid var(--border-color);
  background: transparent;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.catalog__tab:hover,
.catalog__tab.active {
  background: var(--btn-bg);
  color: #FFFFFF;
  border-color: var(--btn-bg);
}

/* Products grid — asymmetric bento magazine layout */
.products-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 1.25rem;
}

/* First card (featured) spans 2 rows — bolder visual hierarchy */
.products-grid .product-card:first-child {
  grid-row: span 2;
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .products-grid .product-card:first-child {
    grid-row: span 1;
    grid-column: span 2;
  }
}

/* Product card — full-bleed magazine style */
.product-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: pointer;
  background: #111;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 20px 48px rgba(0,0,0,0.28), var(--shadow-glow);
}

/* Full-bleed image */
.product-card__image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  filter: brightness(0.88);
}

.product-card:hover .product-card__image img {
  transform: scale(1.07);
}

/* Dark gradient overlay bottom */
.product-card__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(0,0,0,0.88) 0%,
      rgba(0,0,0,0.45) 45%,
      rgba(0,0,0,0.08) 100%);
  z-index: 1;
}

/* Text content at bottom */
.product-card__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  z-index: 2;
}

.product-card__tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(4px);
}

.product-card__name {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.8rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

/* Featured card gets bigger name */
.products-grid .product-card:first-child .product-card__name {
  font-size: 1.75rem;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-card__price {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.02em;
}

.product-card__price span {
  font-size: 0.7rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  vertical-align: middle;
}

.product-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  text-decoration: none;
}

.product-card__cta:hover {
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  transform: scale(1.05);
}

/* ——— EVENTOS SECTION ——— */
.eventos {
  background: var(--bg-section-alt);
}

.eventos__inner {
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eventos__content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.eventos__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.eventos__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.eventos__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  flex-shrink: 0;
}

.eventos__price-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--accent-pale);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  gap: 0.2rem;
  width: fit-content;
}

.eventos__price-badge .desde {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.eventos__price-badge .precio {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  color: var(--accent-main);
  line-height: 1;
}

.eventos__price-badge .precio-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.eventos__visual {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.event-chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-primary);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-card);
  transition: transform 0.2s;
}

.event-chip:hover {
  transform: translateX(4px);
}

.event-chip__icon {
  font-size: 1.6rem;
  line-height: 1;
}

.event-chip__text {
  display: flex;
  flex-direction: column;
}

.event-chip__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.event-chip__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ——— INSTAGRAM SOCIAL PROOF ——— */
.social-proof {
  background: var(--bg-primary);
  text-align: center;
}

.social-proof__header {
  margin-bottom: 2.5rem;
}

.social-proof__handle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  color: var(--accent-main);
  margin-bottom: 0.5rem;
}

.social-proof__stats {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.stat-item__number {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: var(--accent-main);
  line-height: 1;
}

.stat-item__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Post grid mockup */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.10);
}

.ig-post {
  aspect-ratio: 1;
  display: block;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-radius: 4px;
  background: #111;
  text-decoration: none;
}

.ig-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
  filter: brightness(0.92);
}

.ig-post:hover img {
  transform: scale(1.07);
  filter: brightness(1.05);
}

/* Hover overlay with label */
.ig-post__hover {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.ig-post__hover span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ig-post:hover .ig-post__hover {
  background: rgba(0,0,0,0.35);
}

.ig-post:hover .ig-post__hover span {
  opacity: 1;
  transform: translateY(0);
}

.social-proof__cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ——— CÓMO PEDIR ——— */
.how-to-order {
  background: var(--bg-section-alt);
}

.how-to-order__header {
  text-align: center;
  margin-bottom: 3rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.6% + 36px);
  right: calc(16.6% + 36px);
  height: 2px;
  background: var(--border-color);
  z-index: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.step-item__number {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-item:hover .step-item__number {
  transform: scale(1.1);
  box-shadow: var(--shadow-card-hover);
}

.step-item__title {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}

.step-item__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ——— FOOTER ——— */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer__logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.75rem;
  color: var(--accent-main);
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer__links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--accent-main);
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer__copy span {
  color: var(--accent-bright);
}

/* ——— RESPONSIVE ——— */
@media (max-width: 900px) {
  /* Hero responsive */
  .hero__product-orbit {
    width: clamp(220px, 60vw, 380px);
    height: clamp(220px, 60vw, 380px);
  }

  .hero__hud {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 5rem; /* room for scroll hint */
  }

  .hero__hud-mode {
    align-items: flex-start;
  }

  .hero__mode-btns {
    justify-content: flex-start;
  }

  .hero__title-main {
    font-size: clamp(3.5rem, 14vw, 8rem);
  }

  .hero__title-rear-text {
    font-size: clamp(2rem, 7.5vw, 5rem);
  }

  .eventos__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .steps-grid::before {
    display: none;
  }

  .instagram-grid {
    max-width: 480px;
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .product-card__body {
    padding: 1rem;
  }

  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
  }

  .social-proof__stats {
    gap: 1.5rem;
  }
}

@media (max-width: 400px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
