/* ===== GalaIcePops · estilos ===== */
:root {
  --ice: #DDEFF8;
  --ice-deep: #A9D4EA;
  --navy: #173A5E;
  --navy-soft: #4A6784;
  --white: #FFFFFF;
  --pink: #F4B6C8;
  --pink-soft: #FBE3EA;
  --gold: #C9A24A;
  --gold-deep: #A8832F;

  --pop: #F28BA8;
  --pop-dip: #F7C6D4;
  --sprinkle: #FFFFFF;

  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-lg: 2rem;
  --radius-md: 1.25rem;
  --max: 72rem;
  --ease: cubic-bezier(.22, .8, .3, 1);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(5rem + env(safe-area-inset-top, 0px)); }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), background-color .25s, color .25s, box-shadow .25s;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: var(--white); box-shadow: 0 8px 24px -10px rgba(168, 131, 47, .8); }
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-small { padding: .6rem 1.1rem; background: var(--navy); color: var(--white); font-size: .95rem; }
.btn-small:hover { background: var(--gold); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(23, 58, 94, .08); }

.nav {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 1.25rem;
}
.logo {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem;
  text-decoration: none; letter-spacing: -.02em;
}
.logo-mark { width: 16px; height: 27px; }

.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--navy-soft); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--navy); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span {
  position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 2rem;
  padding: 3rem 1.25rem 5rem;
  min-height: calc(100svh - 72px);
}
.hero::before {
  content: ""; position: absolute; inset: 0 -50vw; z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 78% 45%, var(--pop-dip) 0%, transparent 60%),
    linear-gradient(180deg, var(--ice) 0%, var(--white) 100%);
  transition: background .8s var(--ease);
}

.hero-title {
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .92;
  color: var(--navy);
}
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 400;
  margin-top: .75rem;
  color: var(--navy);
  max-width: 22ch;
  line-height: 1.2;
}
.hero-text { margin-top: 1.25rem; max-width: 44ch; color: var(--navy-soft); }

.flavor-picker { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.swatch {
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 3px solid var(--white);
  background: var(--c);
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(23, 58, 94, .12);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.swatch:hover { transform: scale(1.1); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--gold); transform: scale(1.12); }
.flavor-name { margin-top: .7rem; font-weight: 600; min-height: 1.6em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.halo {
  position: absolute; width: min(80%, 360px); aspect-ratio: 1; border-radius: 50%;
  border: 2px dashed var(--gold); opacity: .55;
  animation: spin 40s linear infinite;
}
.hero-pop {
  position: relative; width: min(62%, 260px);
  filter: drop-shadow(0 30px 40px rgba(23, 58, 94, .18));
  animation: float 5s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.hero-pop .pop-body { fill: var(--pop); transition: fill .6s var(--ease); }
.hero-pop .pop-dip { fill: var(--pop-dip); transition: fill .6s var(--ease); }
.hero-pop .sprinkles rect { fill: var(--sprinkle); transition: fill .6s var(--ease); }
.hero-pop.is-switching { animation: float 5s ease-in-out infinite, wiggle .6s var(--ease); }

.drop {
  position: absolute; width: 12px; height: 16px; background: var(--pop);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0; transition: background .6s;
}
.d1 { left: 42%; top: 72%; animation: drip 4s ease-in 1s infinite; }
.d2 { left: 56%; top: 74%; animation: drip 4s ease-in 3s infinite; width: 9px; height: 12px; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes wiggle { 0%, 100% { scale: 1; } 40% { scale: 1.06 .96; } 70% { scale: .98 1.03; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drip { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: .9; } 100% { opacity: 0; transform: translateY(90px); } }

/* Entrada del hero (único momento orquestado) */
.hero-title, .hero-sub, .hero-text, .flavor-picker, .flavor-name, .hero-actions, .hero-visual {
  animation: rise .9s var(--ease) both;
}
.hero-sub { animation-delay: .1s; }
.hero-text { animation-delay: .2s; }
.flavor-picker { animation-delay: .3s; }
.flavor-name { animation-delay: .35s; }
.hero-actions { animation-delay: .4s; }
.hero-visual { animation: pop-in 1.1s var(--ease) .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.85) translateY(30px); } to { opacity: 1; transform: none; } }

/* ===== Secciones ===== */
.section { max-width: var(--max); margin: 0 auto; padding: 6rem 1.25rem; }
.section-head { max-width: 40rem; margin-bottom: 3rem; }
.section-head p { margin-top: 1rem; color: var(--navy-soft); font-size: 1.125rem; }

/* Artesanales */
.craft { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.craft-item svg { width: 56px; height: 56px; margin-bottom: 1rem; }
.craft-item p { margin-top: .4rem; color: var(--navy-soft); }
.craft-item { padding-top: 1.5rem; border-top: 2px solid var(--ice-deep); }

/* Sabores */
.flavors { position: relative; }
.flavors::before {
  content: ""; position: absolute; inset: 0 -50vw; z-index: -1; background: var(--ice);
  border-radius: 0;
}
.flavor-filter { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.chip {
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .55rem 1.15rem; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--navy); background: transparent; color: var(--navy);
  transition: background .2s, color .2s;
}
.chip.is-active, .chip:hover { background: var(--navy); color: var(--white); }

.flavor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.flavor-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem 1.4rem;
  text-align: center;
  cursor: pointer;
  transition: transform .35s var(--ease), opacity .35s;
}
.flavor-card:hover .flavor-pop { transform: translateY(-8px) rotate(-6deg); }
.flavor-card.is-hidden { display: none; }
.flavor-pop {
  width: 56px; height: 104px; margin: 0 auto 1rem; position: relative;
  transition: transform .4s var(--ease);
}
.flavor-pop::before {
  content: ""; position: absolute; inset: 0 0 26px; border-radius: 28px 28px 10px 10px;
  background: linear-gradient(100deg, rgba(255,255,255,.4) 0 18%, transparent 30%), var(--c);
}
.flavor-pop::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 10px; height: 34px; margin-left: -5px;
  border-radius: 5px; background: #E3C38A; z-index: -1;
}
.flavor-card h3 { font-size: 1.15rem; }
.flavor-card p { font-size: .95rem; color: var(--navy-soft); margin-top: .25rem; }
.flavor-tag {
  display: inline-block; margin-top: .75rem; font-size: .8rem; font-weight: 600;
  padding: .2rem .7rem; border-radius: 999px; background: var(--pink-soft); color: var(--navy);
}
.flavor-tag.cremoso { background: #F6EBD2; }

/* Presentaciones */
.format-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.format {
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1.75rem; border-radius: var(--radius-md);
  border: 2px solid var(--ice-deep);
}
.format p { color: var(--navy-soft); margin-top: .35rem; }
.format-art { height: 90px; display: flex; align-items: flex-end; }
.mini-pops {
  height: 70px; width: calc(min(var(--n), 12) * 16px);
  background: repeating-linear-gradient(90deg, var(--pink) 0 12px, transparent 12px 16px);
  border-radius: 8px 8px 0 0;
  position: relative;
}
.mini-pops::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 14px;
  background: repeating-linear-gradient(90deg, transparent 0 4px, var(--gold) 4px 8px, transparent 8px 16px);
}
.format-featured {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; gap: 2.5rem;
  background: var(--navy); color: var(--white); border-color: var(--navy);
}
.format-featured p { color: #C9D9E8; max-width: 48ch; }
.format-featured .btn { margin-top: 1.25rem; }
.format-featured .format-art { flex: 0 0 auto; }
.format-featured .mini-pops {
  background: repeating-linear-gradient(90deg, var(--pink) 0 12px, transparent 12px 16px, var(--ice-deep) 16px 28px, transparent 28px 32px, #F6EBD2 32px 44px, transparent 44px 48px);
  width: 192px;
}

/* Marca */
.brand { max-width: none; padding: 7rem 1.25rem; background: var(--pink-soft); position: relative; overflow: hidden; }
.brand::after {
  content: ""; position: absolute; right: -8rem; top: -8rem; width: 26rem; height: 26rem; border-radius: 50%;
  border: 2px solid var(--gold); opacity: .35;
}
.brand-inner { max-width: 46rem; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.brand-kicker {
  display: inline-block; font-weight: 600; color: var(--gold-deep);
  padding-bottom: .4rem; border-bottom: 2px solid var(--gold); margin-bottom: 1.5rem;
}
.brand h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.brand p:not(.brand-kicker) { margin: 1.5rem auto 0; color: var(--navy-soft); max-width: 58ch; font-size: 1.125rem; }
.brand-link { display: inline-block; margin-top: 1.75rem; font-weight: 600; text-underline-offset: 5px; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }
.brand-link:hover { color: var(--gold-deep); }

/* Redes */
.social-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.social-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem; border-radius: var(--radius-md);
  background: var(--ice); text-decoration: none;
  transition: background .25s, transform .25s var(--ease);
}
.social-link:hover { background: var(--ice-deep); transform: translateY(-3px); }
.social-link svg { width: 28px; height: 28px; flex: 0 0 auto; color: var(--navy); }
.social-link span { display: flex; flex-direction: column; font-size: .95rem; color: var(--navy-soft); }
.social-link strong { color: var(--navy); font-size: 1rem; }
.social-wa { background: #25D366; }
.social-wa svg, .social-wa span, .social-wa strong { color: var(--white); }
.social-wa:hover { background: #1EBE5A; }

/* Footer */
.site-footer {
  text-align: center; padding: 2.5rem 1.25rem 6rem;
  background: var(--navy); color: #C9D9E8; font-size: .95rem;
}
.site-footer strong { color: var(--white); }
.site-footer p + p { margin-top: .35rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 1.25rem; bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: flex; align-items: center; gap: .5rem;
  padding: .85rem 1.2rem .85rem .95rem;
  background: #25D366; color: var(--white);
  border-radius: 999px; text-decoration: none; font-weight: 600;
  box-shadow: 0 12px 28px -10px rgba(18, 140, 70, .7);
  transition: transform .25s var(--ease), background .25s;
}
.wa-float:hover { transform: translateY(-3px); background: #1EBE5A; }
.wa-float svg { width: 26px; height: 26px; }

/* Reveal al hacer scroll (sutil) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .flavor-grid { grid-template-columns: repeat(3, 1fr); }
  .social-list { grid-template-columns: repeat(2, 1fr); }
  .format-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    padding: .5rem 1.25rem 1.25rem;
    box-shadow: 0 20px 30px -20px rgba(23, 58, 94, .3);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .35s var(--ease), visibility .35s;
  }
  .nav-links.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav-links li a:not(.btn) { display: block; padding: .85rem 0; border-bottom: 1px solid var(--ice); }
  .nav-links .btn { margin-top: 1rem; width: 100%; }

  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 2rem; min-height: 0; }
  .hero-visual { order: -1; min-height: 300px; }
  .hero-pop { width: 150px; }
  .halo { width: 240px; }

  .section { padding: 4.5rem 1.25rem; }
  .craft { grid-template-columns: 1fr; gap: 1.75rem; }
  .flavor-grid { grid-template-columns: repeat(2, 1fr); gap: .85rem; }
  .format-list { grid-template-columns: 1fr; }
  .format-featured { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .social-list { grid-template-columns: 1fr; }
  .wa-float-text { display: none; }
  .wa-float { padding: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
