:root {
  --cream: #FFF9F2;
  --sky: #E8F1FF;
  --line: #DCE5F3;
  --ink: #1E2A4A;
  --ink-soft: #57627E;
  --blue: #2F6FD6;
  --pink: #E8538C;
  --butter: #F6C94C;
  --radius: 24px;
  --display: 'Shrikhand', Georgia, cursive;
  --sans: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.6; font-size: 17px; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
em { font-style: normal; color: var(--pink); }

/* marcadores de datos pendientes */
.ph { background: #FFF0C7; color: #8A5A00; border: 1px dashed #E3B33C; border-radius: 6px; padding: 0 .35em; font-weight: 700; white-space: nowrap; }
.ph-img { position: absolute; top: 12px; left: 12px; background: rgba(30,42,74,.8); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }

/* navegación */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 5vw, 64px); background: rgba(255,249,242,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--display); font-size: 22px; text-decoration: none; line-height: 1; }
.logo .ph { font-family: var(--display); font-weight: 400; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.nav-links a:hover { color: var(--blue); }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 99px; font-weight: 800; font-size: 16px; text-decoration: none; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(47,111,214,.28); }
.btn-dark:hover { background: var(--pink); box-shadow: 0 8px 22px rgba(232,83,140,.3); }
.btn-ghost { border: 2px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--butter); }
.btn-ghost-light { border: 2px solid #fff; color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.link-dark { color: var(--ink); font-weight: 800; text-underline-offset: 4px; text-decoration-color: var(--pink); }

/* portada */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px; padding: clamp(36px, 6vw, 80px) clamp(16px, 5vw, 64px) 40px; max-width: 1240px; margin: 0 auto; }
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); font-weight: 800; margin-bottom: 14px; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(40px, 5.8vw, 72px); margin-bottom: 22px; }
h2 { font-size: clamp(32px, 4.2vw, 50px); margin-bottom: 14px; }
h3 { font-size: 19px; font-weight: 800; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 34em; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; font-weight: 700; color: var(--ink-soft); }
.badges li { display: flex; align-items: center; gap: 6px; }
.badges svg { width: 16px; height: 16px; color: var(--butter); }
.hero-art { max-width: 520px; justify-self: center; width: 100%; }

/* animación de la torta */
.tier { transform-box: fill-box; transform-origin: 50% 100%; animation: tierIn .9s cubic-bezier(.2,.9,.3,1.2) both; }
.tier2 { animation-delay: .35s; }
@keyframes tierIn { from { transform: translateY(-60px) scaleY(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-svg .ros { transform-box: fill-box; transform-origin: center; animation: pop .45s cubic-bezier(.2,.9,.3,1.6) both; animation-delay: calc(1s + var(--d)); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.topper { transform-box: fill-box; transform-origin: 50% 100%; animation: rise .7s cubic-bezier(.2,.9,.3,1.3) 2.6s both; }
@keyframes rise { from { transform: translateY(40px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .5s ease-in-out infinite alternate; }
.flame-in { animation-duration: .35s; }
@keyframes flicker { from { transform: scale(1, 1) rotate(-3deg); } to { transform: scale(.88, 1.12) rotate(3deg); } }
.bunting { transform-box: fill-box; transform-origin: 50% 0; animation: fadeIn .6s ease 3s both, swing 4s ease-in-out 3.6s infinite; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes swing { 50% { transform: rotate(1.5deg) translateY(2px); } }
.plaque { animation: fadeIn .6s ease 1.8s both; }
.bag { transform-box: fill-box; transform-origin: 0 100%; animation: bag 5s ease-in-out infinite; }
@keyframes bag { 0%, 100% { transform: rotate(0) translate(0, 0); } 50% { transform: rotate(-8deg) translate(-6px, 6px); } }
.tw { transform-box: fill-box; transform-origin: center; animation: twinkle 2.6s ease-in-out infinite; }
.tw2 { animation-delay: .8s; } .tw3 { animation-delay: 1.6s; }
@keyframes twinkle { 0%, 100% { opacity: .55; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
.cf { animation: fall 6s linear infinite; }
.cf2 { animation-delay: -1.2s; animation-duration: 7s; } .cf3 { animation-delay: -2.6s; } .cf4 { animation-delay: -3.4s; animation-duration: 6.5s; }
.cf5 { animation-delay: -4.2s; animation-duration: 7.5s; } .cf6 { animation-delay: -.6s; } .cf7 { animation-delay: -5s; animation-duration: 6.8s; }
@keyframes fall { from { transform: translateY(-20px) rotate(0); opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } to { transform: translateY(300px) rotate(320deg); opacity: 0; } }

/* secciones */
.section { padding: clamp(64px, 9vw, 110px) clamp(16px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
.section-sky { max-width: none; background: var(--sky); }
.section-sky > * { max-width: 1112px; margin-left: auto; margin-right: auto; }
.section-head { max-width: 660px; margin-bottom: 44px; }
.muted { color: var(--ink-soft); }
.center { text-align: center; margin-top: 34px; }

/* tarjetas de tortas */
.cards { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); border-top: 6px solid var(--c); display: flex; flex-direction: column; gap: 8px; transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(30,42,74,.09); }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card .price { margin-top: auto; padding-top: 8px; color: var(--ink); font-size: 14.5px; font-weight: 700; }
.card-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c); margin-bottom: 6px; }
.card-ico svg { width: 30px; height: 30px; }
.flavors { margin-top: 28px; padding: 22px 26px; border-radius: var(--radius); background: #FFF0F5; border: 1px dashed #F2A9C5; }
.flavors h3 { margin-bottom: 4px; }
.flavors .ph { white-space: normal; }

/* galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 14px 34px rgba(30,42,74,.08); }
.shot svg { width: 100%; height: auto; aspect-ratio: 1; }
.shot figcaption { padding: 14px 18px 16px; font-weight: 700; font-size: 15px; }
[data-ig] .ph { font-weight: 700; }

/* cómo encargar */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.steps p { color: var(--ink-soft); font-size: 15.5px; margin-top: 6px; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pink); color: #fff; font-family: var(--display); font-size: 21px; margin-bottom: 16px; }
.steps li:nth-child(2) .step-n { background: var(--blue); }
.steps li:nth-child(3) .step-n { background: var(--butter); color: var(--ink); }
.contact-box { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; background: var(--ink); color: #fff; border-radius: 30px; padding: clamp(28px, 4vw, 48px); }
.contact-box h3 { font-family: var(--display); font-weight: 400; font-size: 38px; margin-bottom: 6px; }
.contact-box .muted { color: #C3CBE0; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.contact-info { display: grid; gap: 16px; }
.contact-info div { border-top: 1px solid rgba(255,255,255,.16); padding-top: 12px; }
.contact-info dt { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--butter); margin-bottom: 2px; }
.contact-info .ph { white-space: normal; }

/* pie */
.footer { text-align: center; padding: 40px 16px 90px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.logo-foot { display: inline-block; margin-bottom: 10px; color: var(--ink); }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.22); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* aparición */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 400px; order: -1; }
  .steps { grid-template-columns: 1fr; }
  .contact-box { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .cards { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .hero-cta .btn, .contact-actions .btn { width: 100%; }
  .ph { white-space: normal; }
  .logo { font-size: 18px; }
  .logo .ph, .btn-sm { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
