@font-face{ font-family:"Chunky Playful"; src: url("../fonts/Chunky_Playful.otf") format("opentype"); font-display: swap; }
@font-face{ font-family:"Sunny Spells"; src: url("../fonts/Sunny_Spells.ttf") format("truetype"); font-display: swap; }

:root{
  --purple: #B19CE8;
  --mint: #C0FDFB;
  --yellow: #FFF899;
  --pink: #F8B5D4;
  --magenta: #EB82ED;
  --cream: #FFFCF6;
  --ink: #4A2E44;
  --ink-soft: #7A5C72;
  --purple-tint: #F1ECFC;
  --mint-tint: #EAFFFE;
  --yellow-tint: #FFFCE3;
  --pink-tint: #FDF0F6;

  --script: "Chunky Playful", sans-serif;
  --display: "Chunky Playful", sans-serif;
  --body: "Sunny Spells", "Trebuchet MS", sans-serif;

  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-soft: cubic-bezier(.22,.61,.36,1);
}

*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
picture{ display:contents; }
a{ color:inherit; text-decoration:none; }
.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 28px; }
section{ padding: 90px 0; position:relative; }

/* ---------- utility type ---------- */
.eyebrow{
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  display:inline-flex;
  align-items:center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before{
  content:"";
  width: 26px; height: 3px;
  background: var(--magenta);
  border-radius: 3px;
  display:inline-block;
}
h1,h2,h3{ font-weight: normal; color: var(--ink); }
.script-heading{ font-family: var(--script); font-weight: normal; line-height: 1.15; color: var(--ink); }
.section-head{ max-width: 640px; margin: 0 auto 48px; text-align:center; }
.section-head p{ color: var(--ink-soft); margin-top: 14px; }

/* ---------- wavy piping divider ---------- */
.piping{ width:100%; height: 46px; display:block; margin-top:-1px; }

/* ---------- header ---------- */
header{
  position: sticky; top:0; z-index: 50;
  background: rgba(255,252,246,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(74,46,68,0.08);
  transition: box-shadow .35s var(--ease-soft), background .35s var(--ease-soft);
}
header.scrolled{ box-shadow: 0 8px 24px -18px rgba(74,46,68,0.35); background: rgba(255,252,246,0.97); }
.nav{ display:flex; align-items:center; justify-content: space-between; padding: 12px 28px; max-width: 1180px; margin:0 auto; }
.nav-logo{ display:flex; align-items:center; gap:10px; }
.nav-logo img{ height: 54px; width:auto; }
.nav-links{ display:flex; gap: 28px; font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; }
.nav-links a{ position:relative; padding: 6px 2px; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover{ color: var(--magenta); }
.nav-cta{
  font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--magenta); color: white; padding: 12px 22px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(235,130,237,0.35); white-space:nowrap;
  transition: transform .22s var(--ease-soft);
}
.nav-cta:hover{ transform: translateY(-2px); }
.nav-cta:active{ transform: translateY(0) scale(.96); }
.burger{
  display:none; flex-direction:column; justify-content:center; align-items:center; gap: 5px;
  width: 40px; height: 40px; border: none; background: transparent; cursor: pointer; padding: 0;
  transition: transform 160ms var(--ease-out);
}
.burger:active{ transform: scale(0.97); }
.burger span{ display:block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease-soft), opacity .3s ease; }
.burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
.mobile-nav{
  display:none; flex-direction:column; max-height:0; overflow:hidden; opacity:0;
  background: var(--cream); border-top: 1px solid rgba(74,46,68,0.08);
  transition: max-height .3s var(--ease-soft), opacity .25s ease;
}
.mobile-nav.open{ max-height: 320px; opacity:1; }
.mobile-nav a{
  font-family: var(--display); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-soft); padding: 16px 28px; border-bottom: 1px solid rgba(74,46,68,0.06);
  transition: color 200ms ease, background 150ms var(--ease-out);
}
.mobile-nav a:hover{ color: var(--magenta); }
.mobile-nav a:active{ background: rgba(235,130,237,0.08); }

/* ---------- intro ---------- */
.halloween-hero{
  padding: 64px 0 20px;
  background: linear-gradient(180deg, var(--yellow-tint) 0%, var(--cream) 78%);
  text-align:center;
}
.halloween-hero .wrap{ max-width: 720px; }
.halloween-hero p.desc{ color: var(--ink-soft); margin-top: 16px; }
.halloween-nota{
  display:inline-block;
  margin-top: 26px;
  color: var(--ink);
  background: white;
  border: 2px dashed var(--yellow);
  border-radius: 16px;
  padding: 14px 22px;
  font-size: .92rem;
}

/* ---------- catalog tabs (igual que el sitio) ---------- */
.catalog-tabs{ display:flex; justify-content:center; gap: 14px; margin-bottom: 40px; flex-wrap: wrap; }
.catalog-tab{
  font-family: var(--display); font-size: .78rem; letter-spacing: .03em; text-transform: uppercase;
  padding: 13px 26px; border-radius: 999px; border: 2px solid var(--pink); background: white; color: var(--ink-soft);
  cursor: pointer; transition: all .25s var(--ease-soft);
}
.catalog-tab:hover{ transform: translateY(-2px); }
.catalog-tab.active{ background: var(--magenta); border-color: var(--magenta); color: white; box-shadow: 0 10px 22px rgba(235,130,237,0.35); }
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }

/* ---------- tarjetas de producto (igual que el catálogo) ---------- */
.prod-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.prod-card{
  background: white; border-radius: 26px; overflow:hidden;
  box-shadow: 0 16px 36px -20px rgba(74,46,68,0.28);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
  cursor:pointer;
}
.prod-card:hover{ transform: translateY(-8px); box-shadow: 0 22px 40px -18px rgba(74,46,68,0.35); }
.prod-photo{ position:relative; aspect-ratio: 4/5; overflow:hidden; }
.prod-photo img{ width:100%; height:100%; object-fit:cover; }
.prod-tag{
  position:absolute; top:14px; left:14px; background: var(--magenta); color:white;
  font-family: var(--display); font-size:.66rem; letter-spacing:.05em; text-transform:uppercase;
  padding: 7px 14px; border-radius: 999px;
}
.prod-body{ padding: 22px 22px 26px; }
.prod-body h3{ font-family: var(--display); font-size: 1rem; color: var(--ink); margin-bottom: 8px; line-height:1.4; }
.prod-body p{ color: var(--ink-soft); font-size: .92rem; }
.prod-body p.placeholder-nota{ color: #A5722E; font-size: .8rem; margin-top: 6px; }
.prod-price{ margin-top: 12px; font-family: var(--display); font-size: 1.1rem; color: var(--magenta); letter-spacing: .02em; }

.halloween-subtitulo{ font-family: var(--display); font-weight: normal; font-size: 1.15rem; color: var(--magenta); margin: 0 0 20px; }
.halloween-subtitulo:not(:first-of-type){ margin-top: 44px; }

/* ---------- cake modal (ver corte) ---------- */
.cake-modal-overlay{
  position: fixed; inset:0;
  background: rgba(74,46,68,0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display:none;
  align-items:center; justify-content:center;
  padding: 24px;
  opacity:0;
  transition: opacity .25s var(--ease-out);
}
.cake-modal-overlay.open{ display:flex; opacity:1; }
.cake-modal-overlay.closing{ display:flex; opacity:0; }
.cake-modal{
  background: var(--cream);
  border-radius: 28px;
  max-width: 780px;
  width:100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 30px;
  position:relative;
  transform: scale(.92) translateY(12px);
  transition: transform .3s var(--ease-out);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.4);
}
.cake-modal-overlay.open .cake-modal{ transform: scale(1) translateY(0); }
.cake-modal-close{
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: white;
  border: none;
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(74,46,68,0.2);
  z-index: 2;
  transition: transform .2s;
}
.cake-modal-close:hover{ transform: scale(1.08); }
.cake-modal h3{
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 18px;
  padding-right: 40px;
}
.cake-modal-imgs{ display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cake-modal-imgs figure{ margin:0; }
.cake-modal-imgs img{
  width:100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px;
  box-shadow: 0 12px 26px -12px rgba(74,46,68,0.3);
}
.cake-modal-imgs figcaption{
  text-align:center; margin-top: 10px; font-family: var(--display);
  font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft);
}
@media (max-width: 600px){
  .cake-modal-imgs{ grid-template-columns: 1fr; }
  .cake-modal{ padding: 22px; }
}

/* ---------- avail box ---------- */
.avail-box{
  margin-top: 50px; background: white; border-radius: 26px; padding: 34px 38px;
  display:flex; align-items:center; justify-content:space-between; gap: 30px; flex-wrap:wrap;
  box-shadow: 0 16px 36px -20px rgba(74,46,68,0.22);
}
.avail-box .txt strong{ display:block; font-family: var(--display); font-size:1rem; margin-bottom:6px; color:var(--ink); }
.avail-box .txt span{ color: var(--ink-soft); font-size:.92rem; }
.avail-btns{ display:flex; gap:14px; flex-wrap:wrap; }
.store-pill{
  font-family: var(--display); font-size:.72rem; text-transform:uppercase; letter-spacing:.03em;
  padding: 13px 20px; border-radius: 999px; background: var(--yellow-tint); border: 2px solid var(--yellow);
  display:flex; align-items:center; gap:8px; transition: transform .2s;
}
.store-pill:hover{ transform: translateY(-2px); }

/* ---------- botones ---------- */
.btn{
  font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 16px 30px; border-radius: 999px; display:inline-flex; align-items:center; gap:10px;
  transition: transform .22s var(--ease-soft), box-shadow .22s var(--ease-soft); border: none; cursor:pointer;
}
.btn:active{ transform: translateY(0) scale(.96); }
.btn-primary{ background: var(--magenta); color:white; box-shadow: 0 10px 24px rgba(235,130,237,0.4); }
.btn-primary:hover{ transform: translateY(-3px); box-shadow: 0 14px 28px rgba(235,130,237,0.5); }
.btn-outline{ background: white; color: var(--ink); border: 2px solid var(--purple); }
.btn-outline:hover{ transform: translateY(-3px); background: var(--purple-tint); }

/* ---------- footer ---------- */
footer{ background: var(--pink-tint); color: var(--ink); padding: 64px 0 30px; position: relative; overflow: hidden; }
.foot-blob{ position:absolute; border-radius:50%; filter: blur(30px); opacity: .4; pointer-events:none; }
.foot-blob-1{ width:260px; height:260px; background: var(--magenta); top:-100px; left:-60px; opacity:.18; }
.foot-blob-2{ width:200px; height:200px; background: var(--purple); bottom:-90px; right:8%; opacity:.22; }
.foot-blob-3{ width:140px; height:140px; background: var(--mint); top:20%; right:-40px; opacity:.3; }
.foot-top{ position:relative; display:flex; justify-content:space-between; align-items:center; gap: 40px; flex-wrap:wrap; padding-bottom: 36px; border-bottom: 1px dashed rgba(74,46,68,0.18); margin-bottom: 26px; }
.foot-brand{ display:flex; align-items:center; }
.foot-brand img{ height:76px; filter: drop-shadow(0 6px 14px rgba(74,46,68,0.18)); }
.foot-social{ display:flex; gap:12px; flex-wrap:wrap; }
.foot-social a{
  font-family: var(--display); font-size:.68rem; text-transform:uppercase; letter-spacing: .02em; color: var(--ink);
  padding: 10px 16px; border-radius: 999px; display:inline-flex; align-items:center; gap:7px;
  box-shadow: 0 6px 16px -10px rgba(74,46,68,0.4);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.foot-social a:hover{ transform: translateY(-3px); box-shadow: 0 10px 20px -10px rgba(74,46,68,0.45); }
.foot-social a:active{ transform: translateY(-1px) scale(.97); }
.foot-social a.ig{ background: var(--magenta); color: white; }
.foot-social a.fb{ background: var(--purple); }
.foot-social a.tiktok{ background: var(--mint); }
.foot-social a.yt{ background: var(--yellow); }
.foot-social a.pin{ background: var(--pink); }
.foot-bottom{ position:relative; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.82rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce){ .foot-blob{ display:none; } }

/* ---------- reveal ---------- */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.show{ opacity:1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity:1 !important; transform:none !important; transition:none !important; } }

a:focus-visible, button:focus-visible{ outline: 3px solid var(--magenta); outline-offset: 2px; }

@media (max-width: 980px){
  .prod-grid{ grid-template-columns: 1fr 1fr; }
  .nav-links{ display:none; }
  .burger{ display:flex; }
  .mobile-nav{ display:flex; }
}
@media (max-width: 600px){
  section{ padding: 64px 0; }
  .prod-grid{ grid-template-columns:1fr; }
  .avail-box{ flex-direction:column; align-items:flex-start; }
  .foot-top{ flex-direction:column; }
}

/* texto de apoyo de la página de temporada (SEO): bloque centrado y legible */
.temporada-texto{ max-width: 720px; margin: 10px auto 44px; text-align: center; }
.temporada-texto .script-heading{ font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 18px; }
.temporada-texto p{ color: var(--ink-soft); line-height: 1.7; margin: 0 0 14px; }
