/* ── VARIABLES ──────────────────────────────────────────── */
:root {
  --sky:       #B8E4F9;
  --sky-dark:  #7EC8E3;
  --cream:     #FFF8E7;
  --pink:      #FFB6C1;
  --pink-hot:  #FF4D8D;
  --cherry:    #DC143C;
  --choco:     #2D1B00;
  --gold:      #F5C518;
  --lavender:  #E8D5F5;
  --green:     #4CAF50;
  --white:     #FFFDF9;
  --shadow:    4px 4px 0 var(--choco);
  --shadow-sm: 2px 2px 0 var(--choco);
  --border:    3px solid var(--choco);
}

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--choco);
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect x='0' y='0' width='4' height='4' fill='%23FF4D8D'/%3E%3Crect x='4' y='4' width='4' height='4' fill='%23FF4D8D'/%3E%3Crect x='8' y='8' width='4' height='4' fill='%23FF4D8D'/%3E%3Crect x='4' y='0' width='4' height='12' fill='%23FFFDF9'/%3E%3Crect x='0' y='4' width='12' height='4' fill='%23FFFDF9'/%3E%3C/svg%3E") 2 2, crosshair;
}
a, button { cursor: pointer; }

/* ── BOTÓN FLOTANTE WA ──────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 20px; right: 18px;
  z-index: 999;
  background: #25D366;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  border: var(--border);
  box-shadow: var(--shadow);
  transition: transform .1s, box-shadow .1s;
  animation: pixel-bob 2s ease-in-out infinite;
}
.wa-float:hover  { transform: translate(2px, 2px); box-shadow: var(--shadow-sm); }
.wa-float:active { transform: translate(4px, 4px); box-shadow: none; }
.wa-float svg    { width: 28px; height: 28px; fill: #fff; }

@keyframes pixel-bob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}

/* ── PIXEL HELPERS ──────────────────────────────────────── */
.pixel-box    { border: var(--border); box-shadow: var(--shadow); }
.pixel-box-sm { border: var(--border); box-shadow: var(--shadow-sm); }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  background: linear-gradient(180deg, var(--sky) 0%, #D4EEFF 50%, var(--cream) 100%);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 32px);
  padding: 60px 12px 120px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

@media (max-width: 600px) {
  .hero {
    flex-direction: column;
    padding: 60px 16px 120px;
    gap: 0;
  }
}

/* estrellas pixel */
.pstar {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--gold);
  pointer-events: none;
  animation: star-blink 1.8s ease-in-out infinite;
}
.pstar::before, .pstar::after {
  content: '';
  position: absolute;
  background: var(--gold);
}
.pstar::before { width: 2px; height: 14px; top: -4px; left: 2px; }
.pstar::after  { width: 14px; height: 2px; top: 2px; left: -4px; }

@keyframes star-blink {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: .3; transform: scale(.7); }
}

/* cerezas decorativas */
.cherry-deco {
  position: absolute;
  font-size: 1.4rem;
  pointer-events: none;
  animation: pixel-bob 3s ease-in-out infinite;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,.2));
}

/* corona */
.crown {
  font-size: clamp(2rem, 6vw, 3.2rem);
  display: block;
  margin-bottom: 4px;
  filter: drop-shadow(2px 2px 0 var(--choco));
  opacity: 0;
  animation: fade-drop .5s .2s ease forwards;
}
@keyframes fade-drop {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* título principal */
.hero-title {
  font-family: 'Pixelify Sans', monospace;
  font-size: clamp(2.6rem, 11vw, 6rem);
  font-weight: 700;
  color: var(--pink-hot);
  line-height: 1;
  letter-spacing: 2px;
  text-shadow:
     3px  0   var(--choco),
    -3px  0   var(--choco),
     0    3px var(--choco),
     0   -3px var(--choco),
     3px  3px var(--choco),
    -3px  3px var(--choco),
     3px -3px var(--choco),
    -3px -3px var(--choco),
     6px  6px 0 rgba(45,27,0,.3);
  opacity: 0;
  animation: pixel-pop .7s .4s cubic-bezier(.34,1.56,.64,1) forwards;
  display: block;
}
@keyframes pixel-pop {
  from { opacity: 0; transform: scale(.7) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* goteos */
.drip-row {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 2px; margin-bottom: 4px;
}
.drip-drop {
  background: var(--pink-hot);
  border-left: 2px solid var(--choco);
  border-right: 2px solid var(--choco);
  border-bottom: 2px solid var(--choco);
  border-radius: 0 0 2px 2px;
  animation: drip-in .8s ease forwards;
  opacity: 0;
}
@keyframes drip-in {
  0%   { opacity: 0; height: 0; }
  60%  { opacity: 1; }
  100% { opacity: 1; }
}

/* subtítulo y tagline */
.hero-sub {
  font-family: 'Pixelify Sans', monospace;
  font-size: clamp(.82rem, 3vw, 1.05rem);
  color: var(--choco);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  opacity: 0;
  animation: fade-up .5s .9s ease forwards;
}
.hero-tagline {
  font-size: clamp(.95rem, 3.5vw, 1.1rem);
  color: #4A3020;
  font-weight: 700;
  max-width: 320px;
  line-height: 1.55;
  margin-bottom: 32px;
  opacity: 0;
  animation: fade-up .5s 1.1s ease forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* botón CTA hero */
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: #25D366;
  color: #fff;
  font-family: 'Pixelify Sans', monospace;
  font-size: 1.1rem;
  letter-spacing: 1px;
  padding: 16px 32px;
  text-decoration: none;
  border: var(--border);
  box-shadow: var(--shadow);
  transition: transform .1s, box-shadow .1s;
  opacity: 0;
  animation: fade-up .5s 1.3s ease forwards;
}
.hero-cta:hover  { transform: translate(2px,2px); box-shadow: var(--shadow-sm); }
.hero-cta:active { transform: translate(4px,4px); box-shadow: none; }
.hero-cta svg   { width: 20px; height: 20px; fill: #fff; }

/* suelo pixelado */
.hero-floor {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  height: 40px;
  background: repeating-linear-gradient(
    90deg,
    #A8D8A8 0px, #A8D8A8 8px,
    #8BC08B 8px, #8BC08B 16px
  );
  border-top: 3px solid var(--choco);
}
.hero-floor::before {
  content: '';
  position: absolute;
  top: -8px; left: 0; width: 100%; height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #C8E8C8 0px, #C8E8C8 8px,
    #A8D8A8 8px, #A8D8A8 16px
  );
  border-top: 2px solid var(--choco);
}

/* wrapper contenido hero */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

/* personaje pixel hero — en flujo normal (no absolute) */
.hero-character {
  width: clamp(160px, 22vw, 300px);
  flex-shrink: 0;
  filter: drop-shadow(3px 0 0 var(--choco))
          drop-shadow(-3px 0 0 var(--choco))
          drop-shadow(0 3px 0 var(--choco));
  animation: pixel-bob 3.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
  align-self: center;
}

.hero-character-top    { animation-delay: .2s; order: -1; } /* izquierda */
.hero-character-bottom { animation-delay: .6s; order:  1; } /* derecha */
.hero-content          { order: 0; }                        /* centro */

@media (max-width: 600px) {
  .hero-character { display: none; }
  .hero-character-top { display: block; width: 120px; align-self: center; }
}

/* marquee */
.marquee-wrap {
  position: absolute; bottom: 40px; left: 0; width: 100%;
  overflow: hidden;
  border-top: 2px solid var(--choco);
  border-bottom: 2px solid var(--choco);
  background: var(--pink-hot);
  padding: 6px 0;
}
.marquee-track {
  display: flex; gap: 0;
  animation: marquee-scroll 18s linear infinite;
  white-space: nowrap;
}
.marquee-track span {
  font-family: 'Pixelify Sans', monospace;
  font-size: .78rem; letter-spacing: 2px;
  color: #fff; padding: 0 24px;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── SECCIONES COMPARTIDAS ──────────────────────────────── */
.section-header { text-align: center; margin-bottom: 44px; position: relative; }

.section-pill {
  display: inline-block;
  background: var(--pink);
  color: var(--choco);
  font-family: 'Pixelify Sans', monospace;
  font-size: .8rem;
  letter-spacing: 2px;
  padding: 5px 16px;
  border: 2px solid var(--choco);
  box-shadow: 2px 2px 0 var(--choco);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Pixelify Sans', monospace;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  color: var(--pink-hot);
  text-shadow:
     2px  0   var(--choco), -2px  0   var(--choco),
     0    2px var(--choco),  0   -2px var(--choco),
     2px  2px var(--choco), -2px  2px var(--choco);
  line-height: 1.2;
  letter-spacing: 1px;
}

.section-sub {
  margin-top: 10px;
  color: #4A3020;
  font-size: .98rem;
  max-width: 420px;
  margin-inline: auto;
  line-height: 1.6;
  font-weight: 600;
}

/* ── SECCIÓN TARTAS ─────────────────────────────────────── */
.tartas-section {
  background: var(--cream);
  padding: 68px 20px 72px;
  position: relative;
}
.tartas-section::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,77,141,.12) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.tartas-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}
@media (max-width: 460px) {
  .tartas-grid { grid-template-columns: 1fr; max-width: 320px; }
}

/* cards */
.card {
  background: var(--white);
  padding: 24px 16px 20px;
  text-align: center;
  border: var(--border);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .1s, box-shadow .1s;
}
.card:hover  { transform: translate(2px, 2px); box-shadow: var(--shadow-sm); }
.card:active { transform: translate(4px, 4px); box-shadow: none; }

.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 5px;
}
.card.basica::before   { background: var(--pink); }
.card.estandar::before { background: var(--pink-hot); }
.card.premium::before  { background: var(--cherry); }
.card.boda::before     { background: var(--gold); }

.card-badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--gold);
  color: var(--choco);
  font-family: 'Pixelify Sans', monospace;
  font-size: .65rem; letter-spacing: 1px;
  padding: 2px 8px;
  border: 2px solid var(--choco);
  box-shadow: 1px 1px 0 var(--choco);
}

.card-emoji {
  font-size: 2.6rem; display: block; margin-bottom: 8px;
  filter: drop-shadow(2px 2px 0 rgba(0,0,0,.15));
}
.card-name {
  font-family: 'Pixelify Sans', monospace;
  font-size: 1.25rem; font-weight: 700;
  color: var(--choco); margin-bottom: 7px;
  letter-spacing: .5px;
}
.card-desc {
  font-size: .84rem; color: #4A3020;
  line-height: 1.5; margin-bottom: 14px;
  min-height: 50px;
}
.card-price {
  font-family: 'Poppins', sans-serif;
  font-size: 1.55rem; font-weight: 700;
  color: var(--pink-hot);
}
.card-price small {
  font-family: 'Poppins', sans-serif;
  font-size: .8rem; color: #6B4030; font-weight: 700;
}

.tartas-note {
  text-align: center; margin-top: 28px;
  color: #4A3020; font-size: .88rem;
  font-weight: 700; line-height: 1.8;
}

/* ── GALERÍA ────────────────────────────────────────────── */
.galeria-section {
  background: var(--choco);
  padding: 68px 20px 72px;
  position: relative;
}

.galeria-section .section-title {
  background: linear-gradient(135deg, var(--pink), var(--pink-hot));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.galeria-section .section-sub  { color: rgba(255,255,255,.65); }
.galeria-section .section-pill { background: rgba(255,255,255,.1); color: var(--pink-light, #FFB6C1); }

/* carrusel */
.carrusel-wrapper {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  user-select: none;
}

.carrusel {
  overflow: hidden;
  border: var(--border);
  box-shadow: var(--shadow);
}

.carrusel-track {
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
}

.carrusel-slide {
  flex-shrink: 0;
  /* el ancho se asigna por JS */
}

.carrusel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.carrusel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* botones flecha */
.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--pink-hot);
  color: #fff;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  width: 42px; height: 42px;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .1s, box-shadow .1s;
  z-index: 10;
  font-family: monospace;
}
.carrusel-btn:hover  { transform: translateY(-50%) translate(1px,1px); box-shadow: 1px 1px 0 var(--choco); }
.carrusel-btn:active { transform: translateY(-50%) translate(2px,2px); box-shadow: none; }
.carrusel-btn.prev { left: -20px; }
.carrusel-btn.next { right: -25px; }

@media (max-width: 500px) {
  .carrusel-btn.prev { left: 10px; }
  .carrusel-btn.next { right: 8px; }
}

/* puntos indicadores */
.carrusel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.carrusel-dot {
  width: 10px; height: 10px;
  background: rgba(255,255,255,.3);
  border: 2px solid var(--pink);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.carrusel-dot.active {
  background: var(--pink-hot);
  border-color: var(--pink-hot);
  transform: scale(1.3);
}

/* ── CÓMO PEDIR ─────────────────────────────────────────── */
.steps-section {
  background: var(--lavender);
  border-top: 3px solid var(--choco);
  border-bottom: 3px solid var(--choco);
  padding: 68px 20px 72px;
  position: relative;
  overflow: hidden;
}
.steps-section::after {
  content: '🏰';
  position: absolute;
  bottom: -10px; right: -10px;
  font-size: 9rem;
  opacity: .06;
  pointer-events: none;
  transform: scaleX(-1);
}

.steps-section .section-title { color: #9B4DCA; }
.steps-section .section-sub   { color: #4A3020; }
.steps-section .section-pill  { background: #E0B0FF; }

.steps {
  display: flex; flex-direction: column;
  gap: 14px; max-width: 440px; margin: 0 auto;
}

.step {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 18px 16px;
  transition: transform .1s, box-shadow .1s;
}
.step:hover { transform: translate(2px, 2px); box-shadow: var(--shadow-sm); }

.step-num {
  flex-shrink: 0;
  width: 46px; height: 46px;
  background: var(--pink-hot);
  border: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Pixelify Sans', monospace;
  font-size: 1.35rem; font-weight: 700;
  color: #fff;
}
.step-body h3 {
  font-family: 'Pixelify Sans', monospace;
  font-size: 1rem; font-weight: 700;
  color: var(--choco); margin-bottom: 4px;
  letter-spacing: .5px;
}
.step-body p { font-size: .88rem; color: #4A3020; line-height: 1.5; }

/* ── CTA FINAL ──────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(160deg, #FFE0EC 0%, #FFF5F8 100%);
  padding: 72px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧';
  position: absolute; top: 16px; left: 0; right: 0;
  font-size: .75rem; letter-spacing: 12px;
  color: var(--pink); opacity: .5;
  pointer-events: none; white-space: nowrap; overflow: hidden;
}
.cta-section::after {
  content: '✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧ ✦ ✧';
  position: absolute; bottom: 16px; left: 0; right: 0;
  font-size: .75rem; letter-spacing: 12px;
  color: var(--pink); opacity: .5;
  pointer-events: none; white-space: nowrap; overflow: hidden;
}
.cta-section .section-sub { margin-bottom: 36px; font-size: 1rem; }

.handmade-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--choco);
  font-family: 'Pixelify Sans', monospace;
  font-size: .75rem; letter-spacing: 2px;
  padding: 6px 18px;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.wa-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #25D366;
  color: #fff;
  font-family: 'Pixelify Sans', monospace;
  font-size: 1.2rem; letter-spacing: 1px;
  padding: 18px 40px;
  text-decoration: none;
  border: var(--border);
  box-shadow: var(--shadow);
  transition: transform .1s, box-shadow .1s;
}
.wa-btn:hover  { transform: translate(2px,2px); box-shadow: var(--shadow-sm); }
.wa-btn:active { transform: translate(4px,4px); box-shadow: none; }
.wa-btn svg   { width: 24px; height: 24px; fill: #fff; }

.phone-line {
  margin-top: 22px;
  font-family: 'Pixelify Sans', monospace;
  font-size: 1rem; color: var(--choco);
  letter-spacing: 1px;
}

/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--choco);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 24px 20px;
  font-size: .82rem;
  line-height: 1.9;
  border-top: 3px solid var(--pink-hot);
}
.ft-name {
  font-family: 'Pixelify Sans', monospace;
  color: var(--pink); font-size: 1rem;
  display: block; letter-spacing: 2px;
}
.ft-hearts { color: var(--pink-hot); font-size: .9rem; }

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal    { opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .06s; }
.reveal-d2 { transition-delay: .14s; }
.reveal-d3 { transition-delay: .22s; }
.reveal-d4 { transition-delay: .30s; }
