/* BUBIKA · bubika.com.mx · retro-pop editorial crema */

:root {
  --mango: #FFA226;
  --mango-deep: #F0891F;
  --fresa: #E8503A;
  --fresa-deep: #C93A26;
  --crema: #FFF3E2;
  --cacao: #3A1F16;
  --cacao-soft: #7A5A4C;
  --radius: 22px;
  --border: 3px solid var(--cacao);
  --shadow: 6px 6px 0 var(--cacao);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--crema);
  color: var(--cacao);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, .brand, .splash-mark, .foot-brand {
  font-family: 'Baloo 2', 'Archivo', sans-serif;
}

img { max-width: 100%; display: block; }

/* ---------- splash ---------- */
#splash {
  position: fixed; inset: 0; z-index: 90;
  background: var(--fresa);
  display: flex; align-items: center; justify-content: center;
  animation: splashOut 0.6s ease 1.4s forwards;
}
.splash-mark {
  font-weight: 800; font-size: clamp(48px, 9vw, 96px);
  color: var(--crema);
  animation: splashPop 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes splashPop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
#splash.done { opacity: 0; visibility: hidden; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: var(--crema);
  border-bottom: var(--border);
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 28px; color: var(--fresa);
  text-decoration: none; line-height: 1;
}
.brand-pearl { width: 20px; height: 20px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a {
  color: var(--cacao); text-decoration: none;
  font-weight: 600; font-size: 15px;
}
.site-nav a:hover { color: var(--fresa); }

/* ---------- botones ---------- */
.btn {
  display: inline-block;
  background: var(--fresa); color: var(--crema);
  font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 18px;
  padding: 12px 28px; border-radius: 999px;
  border: var(--border); box-shadow: var(--shadow);
  text-decoration: none; line-height: 1.3;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--cacao); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--cacao); }
.btn-small { font-size: 15px; padding: 8px 20px; box-shadow: 4px 4px 0 var(--cacao); }
.btn-ghost { background: transparent; color: var(--cacao); }
.btn-cream { background: var(--crema); color: var(--fresa); }
.btn-ghost-cream { background: transparent; color: var(--crema); border-color: var(--crema); box-shadow: 6px 6px 0 rgba(58, 31, 22, 0.35); }

/* ---------- hero ---------- */
.hero {
  display: flex; align-items: center; gap: 24px;
  padding: clamp(40px, 8vh, 90px) clamp(18px, 4vw, 48px) 60px;
  max-width: 1200px; margin: 0 auto;
  min-height: 72vh;
}
.hero-inner { flex: 1.2; }
.hero-eyebrow {
  display: inline-block;
  background: var(--mango); border: var(--border); border-radius: 999px;
  font-weight: 600; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px; margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(40px, 6.2vw, 78px);
  font-weight: 800; line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal; color: var(--fresa);
  text-decoration: underline wavy var(--mango) 6px;
  text-underline-offset: 10px;
}
.hero-sub { max-width: 480px; font-size: 18px; color: var(--cacao-soft); margin-bottom: 30px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-art { flex: 0.8; position: relative; display: flex; justify-content: center; }
.hero-cup {
  width: min(320px, 70vw);
  animation: floaty 4.5s ease-in-out infinite;
  filter: drop-shadow(10px 12px 0 rgba(58, 31, 22, 0.12));
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(-16px) rotate(-2deg); }
}
.pearl {
  position: absolute; border-radius: 50%;
  background: var(--fresa); border: 3px solid var(--cacao);
  animation: floaty 4s ease-in-out infinite;
}
.pearl-1 { width: 26px; height: 26px; top: 6%; left: 4%; background: var(--mango); animation-delay: 0.3s; }
.pearl-2 { width: 16px; height: 16px; top: 24%; right: 4%; animation-delay: 0.9s; }
.pearl-3 { width: 34px; height: 34px; bottom: 12%; left: 0; animation-delay: 1.5s; }
.pearl-4 { width: 14px; height: 14px; bottom: 4%; right: 14%; background: var(--cacao); animation-delay: 0.6s; }
.pearl-5 { width: 20px; height: 20px; top: 55%; right: 0; background: var(--mango); animation-delay: 2s; }

/* ---------- marquee ---------- */
.marquee {
  background: var(--cacao); color: var(--crema);
  overflow: hidden; white-space: nowrap;
  border-top: var(--border); border-bottom: var(--border);
  padding: 12px 0;
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 26px;
  animation: slide 26s linear infinite;
}
.marquee-track span {
  font-family: 'Baloo 2', sans-serif; font-weight: 700;
  font-size: 20px; text-transform: uppercase; letter-spacing: 0.06em;
}
.marquee-track i { color: var(--mango); font-style: normal; font-size: 14px; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-33.33%); } }

/* ---------- secciones ---------- */
.section {
  padding: clamp(60px, 10vh, 110px) clamp(18px, 4vw, 48px);
  max-width: 1200px; margin: 0 auto;
}
.section-head { margin-bottom: 46px; }
.eyebrow {
  font-weight: 600; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fresa); margin-bottom: 10px;
}
.eyebrow-dark { color: var(--cacao); }
.section h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 800; line-height: 1.08;
}

/* productos */
.cards {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.card {
  background: #FFFFFF; border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translate(-2px, -4px) rotate(-1deg); box-shadow: 9px 10px 0 var(--cacao); }
.card-icon { width: 64px; height: 64px; margin-bottom: 16px; }
.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14.5px; color: var(--cacao-soft); }

/* por qué (banda mango) */
.section-mango {
  max-width: none; position: relative;
  background: var(--mango);
  margin: 40px 0;
  padding-top: clamp(70px, 11vh, 120px);
  padding-bottom: clamp(70px, 11vh, 120px);
}
.section-mango .section-head, .benefits { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-mango .section-head { padding: 0 clamp(18px, 4vw, 48px); margin-bottom: 40px; }
.wave { position: absolute; left: 0; width: 100%; height: 42px; }
.wave-top { top: -40px; }
.wave-bottom { bottom: -40px; }
.benefits {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; padding: 0 clamp(18px, 4vw, 48px);
}
.benefit {
  background: var(--crema); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px 20px;
}
.benefit-num {
  display: inline-block;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 15px;
  background: var(--fresa); color: var(--crema);
  border-radius: 999px; padding: 3px 12px; margin-bottom: 12px;
}
.benefit h3 { font-size: 19px; margin-bottom: 6px; }
.benefit p { font-size: 14px; color: var(--cacao-soft); }

/* pasos */
.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px; counter-reset: paso;
}
.step {
  border: var(--border); border-radius: var(--radius);
  background: #FFFFFF; box-shadow: var(--shadow);
  padding: 28px 24px; position: relative;
}
.step-num {
  position: absolute; top: -20px; left: 22px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--mango); border: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 20px;
}
.step h3 { font-size: 20px; margin: 10px 0 8px; }
.step p { font-size: 14.5px; color: var(--cacao-soft); }

/* cta final */
.cta-band {
  background: var(--fresa); color: var(--crema);
  border-top: var(--border);
  padding: clamp(70px, 12vh, 130px) clamp(18px, 4vw, 48px);
  text-align: center;
}
.cta-inner { max-width: 720px; margin: 0 auto; }
.mascot-slot { margin-bottom: 18px; }
.mascot-slot img {
  width: 180px; margin: 0 auto;
  border-radius: 24px;
  animation: floaty 4.5s ease-in-out infinite;
}
.mascot-slot.empty { display: none; }
.cta-band h2 {
  font-size: clamp(34px, 5vw, 60px); font-weight: 800; line-height: 1.08;
  margin-bottom: 12px;
}
.cta-band > .cta-inner > p { font-size: 19px; margin-bottom: 28px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-note { font-size: 13.5px; opacity: 0.85; margin-top: 26px; }

/* footer */
.site-footer {
  background: var(--cacao); color: var(--crema);
  text-align: center;
  padding: 46px 20px 38px;
}
.foot-brand { font-weight: 800; font-size: 34px; color: var(--mango); }
.foot-brand span { font-size: 14px; vertical-align: super; }
.site-footer p { font-size: 14px; margin-top: 6px; opacity: 0.9; }
.foot-fine { opacity: 0.6; }

/* ---------- reveals ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .cards, .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .step { margin-top: 14px; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .hero { flex-direction: column-reverse; text-align: center; min-height: 0; padding-top: 30px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-cup { width: min(230px, 60vw); }
  .hero-art { width: 100%; }
}
@media (max-width: 560px) {
  .cards, .benefits { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
