/* ══════════════════════════════════════════════════════════
   MICH HOT CAKES · Helados artesanales & postres
   Paleta de marca: lila + dorado (del logo) + crema + chocolate
   ══════════════════════════════════════════════════════════ */

:root {
  --crema:       #FFF8EF;
  --crema-2:     #FAEDE0;
  --lila:        #8A5BB8;
  --lila-dark:   #6C3E99;
  --lila-soft:   #EBDFF7;
  --dorado:      #D4A438;
  --dorado-dark: #8A6516;
  --dorado-soft: #F6E9CB;
  --choco:       #3B2420;
  --choco-soft:  #6B4A42;
  --blanco:      #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Karla", "Helvetica Neue", sans-serif;
  --font-hand:    "Caveat", cursive;

  --radius: 26px;
  --shadow-soft: 0 18px 50px -18px rgba(59, 36, 32, .28);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--choco);
  background: var(--crema);
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 90, "WONK" 1;
  line-height: 1.05;
  font-weight: 620;
}

h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 em, h1 em {
  font-style: italic;
  color: var(--lila);
  font-weight: 500;
}

a { color: var(--lila-dark); }

/* ── Botones ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  letter-spacing: .02em;
  transition: transform .25s var(--ease-bounce), box-shadow .25s ease, background .2s ease;
}
.btn:hover { transform: translateY(-3px) scale(1.02); }

.btn--primary {
  background: var(--lila);
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(138, 91, 184, .55);
}
.btn--primary:hover { background: var(--lila-dark); }

.btn--ghost {
  border: 2px solid var(--choco);
  color: var(--choco);
  background: transparent;
}
.btn--ghost:hover { background: var(--choco); color: var(--crema); }

.btn--wa {
  background: #22b358;
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(34, 179, 88, .6);
}
.btn--wa:hover { background: #1a9448; }

.btn--light {
  background: var(--crema);
  color: var(--lila-dark);
  margin-top: 1rem;
}

/* ── Nav ─────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 248, 239, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(59, 36, 32, .07);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: .55rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__brand {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--choco);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-right: auto;
  white-space: nowrap;
}
.nav__brand em { color: var(--lila); font-weight: 500; }
.nav__brandimg {
  height: 70px;
  width: auto;
  display: block;
  transition: transform .3s var(--ease-bounce);
}
.nav__brand:hover .nav__brandimg { transform: scale(1.05); }
.nav__links { display: flex; gap: 1.4rem; }
.nav__links a {
  color: var(--choco);
  text-decoration: none;
  font-weight: 700;
  font-size: .93rem;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 3px;
  border-radius: 3px;
  background: var(--dorado);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease-bounce);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .4rem;
}
.nav__burger span {
  width: 24px; height: 3px;
  border-radius: 3px;
  background: var(--choco);
  transition: transform .3s ease, opacity .3s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 1.4rem 7rem;
  overflow: hidden;
}
.hero__blobs { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 46% 54% 60% 40% / 55% 45% 55% 45%;
  filter: blur(2px);
  opacity: .55;
  animation: blob-drift 14s ease-in-out infinite alternate;
}
.blob--1 { width: 420px; height: 420px; top: -140px; right: -80px; background: var(--lila-soft); }
.blob--2 { width: 340px; height: 340px; bottom: -60px; left: -120px; background: var(--lila-soft); animation-delay: -4s; }
.blob--3 { width: 200px; height: 200px; top: 30%; left: 42%; background: #FDE8C8; animation-delay: -8s; }

@keyframes blob-drift {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { transform: translate(30px, -24px) rotate(14deg) scale(1.08); }
}

.hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}
.hero__eyebrow {
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lila-dark);
  margin-bottom: 1.2rem;
}
.hero__title {
  font-size: clamp(3rem, 7.4vw, 5.4rem);
  font-weight: 680;
  margin-bottom: 1.4rem;
}
.hero__title span { display: block; }
.hero__wink { display: inline !important; font-size: .6em; vertical-align: middle; }
.hero__underline {
  display: inline !important;
  position: relative;
  white-space: nowrap;
}
.hero__underline::after {
  content: "";
  position: absolute;
  left: -2%; bottom: .04em;
  width: 104%; height: .22em;
  background: var(--dorado);
  border-radius: 999px;
  z-index: -1;
  transform: rotate(-1.2deg);
}
.hero__sub {
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--choco-soft);
  margin-bottom: 1.8rem;
}
.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.hero__badges {
  list-style: none;
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: .88rem;
  color: var(--lila-dark);
}

/* collage */
.hero__collage {
  position: relative;
  min-height: 520px;
}
.polaroid {
  position: absolute;
  background: #fff;
  padding: 10px 10px 6px;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease-bounce);
}
.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
}
.polaroid figcaption {
  font-family: var(--font-hand);
  font-size: 1.25rem;
  text-align: center;
  color: var(--choco-soft);
  padding: .25rem 0 .3rem;
}
.polaroid--a {
  width: 46%;
  aspect-ratio: 3/4;
  top: 0; left: 4%;
  transform: rotate(-6deg);
  z-index: 2;
  animation: floaty 6s ease-in-out infinite;
}
.polaroid--b {
  width: 44%;
  aspect-ratio: 3/4;
  top: 12%; right: 2%;
  transform: rotate(5deg);
  z-index: 1;
  animation: floaty 7s ease-in-out -2s infinite;
}
.polaroid--c {
  width: 52%;
  aspect-ratio: 4/3;
  bottom: 0; left: 20%;
  transform: rotate(-2deg);
  z-index: 3;
  animation: floaty 8s ease-in-out -4s infinite;
}
.polaroid:hover { transform: rotate(0deg) scale(1.04); z-index: 9; }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

.hero__sticker {
  position: absolute;
  top: -4%;
  right: 30%;
  z-index: 4;
  background: var(--dorado);
  color: var(--choco);
  font-family: var(--font-hand);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.05;
  text-align: center;
  width: 92px; height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  rotate: 12deg;
  box-shadow: 0 10px 22px -8px rgba(212, 164, 56, .65);
  animation: sticker-spin 12s linear infinite;
}
@keyframes sticker-spin {
  0%, 100% { rotate: 12deg; }
  50%      { rotate: -6deg; }
}

/* olas */
.wave {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%;
  line-height: 0;
}
.wave svg { width: 100%; height: 60px; }
.wave--footer {
  background: var(--crema-2);
  line-height: 0;
}
.wave--footer svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ── Ticker ──────────────────────────────────── */
.ticker {
  background: var(--crema-2);
  overflow: hidden;
  padding: 1rem 0 1.6rem;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker__track span {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-style: italic;
  font-size: 2.5rem;
  color: var(--lila);
  white-space: nowrap;
  padding-right: .5rem;
}
@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

/* ── Secciones genéricas ─────────────────────── */
.section { padding: clamp(2.5rem, 5vw, 3.5rem) 1.4rem; }
.section__head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}
.kicker {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--lila);
  margin-bottom: .4rem;
}
.kicker--light { color: #E9D5FF; }
.section__lead { color: var(--choco-soft); margin-top: 1rem; }
.section__lead--light { color: #F3E8FF; }
.section__lead--light a { color: #F2D48A; font-weight: 700; }

/* ── Cards de dulces ─────────────────────────── */
.dulces { background: var(--crema-2); }
.cards {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.card {
  background: var(--blanco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 30px -16px rgba(59, 36, 32, .22);
  transition: transform .3s var(--ease-bounce), box-shadow .3s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-8px) rotate(-.5deg);
  box-shadow: var(--shadow-soft);
}
.card__media {
  height: 240px;
  overflow: hidden;
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.card:hover .card__media img { transform: scale(1.08); }
.card__body { padding: 1.4rem 1.5rem 1.7rem; }
.card__tag {
  display: inline-block;
  background: var(--lila-soft);
  color: var(--lila-dark);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .28rem .75rem;
  border-radius: 999px;
  margin-bottom: .7rem;
}
.card__tag--hot { background: var(--dorado-soft); color: var(--dorado-dark); }
.card__body h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.card__body p { color: var(--choco-soft); font-size: .96rem; }

/* ── Menú ────────────────────────────────────── */
.menu {
  background:
    radial-gradient(ellipse 90% 70% at 85% -10%, #9d6cc9 0%, transparent 55%),
    radial-gradient(ellipse 70% 60% at 0% 110%, #866024 0%, transparent 55%),
    linear-gradient(160deg, var(--lila-dark) 0%, #5A3180 55%, #4A2668 100%);
  color: #fff;
}
.menu__inner { max-width: 1080px; margin: 0 auto; }
.menu h2 { color: #fff; }
.menu h2 em { color: var(--dorado); }
.menu__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.8rem;
  align-items: start;
}
.menu__board {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  backdrop-filter: blur(6px);
}
.menu__board-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  color: var(--dorado);
}
.menu__board-title span {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  opacity: .7;
}
.menu__list { list-style: none; }
.menu__list li {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  padding: .52rem 0;
  font-size: 1.02rem;
}
.menu__list li span { font-weight: 600; }
.menu__list li i {
  flex: 1;
  border-bottom: 2px dotted rgba(255, 255, 255, .3);
  transform: translateY(-4px);
}
.menu__list li b {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--dorado);
}
.menu__side { display: grid; gap: 1.8rem; }
.menu__mini {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
}
.menu__mini h4 {
  font-size: 1.25rem;
  color: var(--dorado);
  margin-bottom: .8rem;
}
.menu__note { font-size: .95rem; color: #F3E8FF; }
.menu__fineprint {
  text-align: center;
  margin-top: 2.4rem;
  font-size: .85rem;
  color: #D8C3EF;
}

/* ── Galería ─────────────────────────────────── */
.masonry {
  max-width: 1200px;
  margin: 0 auto;
  columns: 4 240px;
  column-gap: 1.1rem;
}
.masonry__item {
  break-inside: avoid;
  margin-bottom: 1.1rem;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 26px -14px rgba(59, 36, 32, .3);
}
.masonry__item img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  transition: transform .6s ease;
}
.masonry__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.6rem .9rem .7rem;
  font-family: var(--font-hand);
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(59, 36, 32, .75));
  opacity: 0;
  translate: 0 8px;
  transition: opacity .3s ease, translate .3s ease;
}
.masonry__item:hover img { transform: scale(1.06); }
.masonry__item:hover figcaption { opacity: 1; translate: 0 0; }

/* En pantallas táctiles no hay hover: los títulos se muestran siempre */
@media (hover: none) {
  .masonry__item figcaption { opacity: 1; translate: 0 0; }
}
.galeria__more {
  text-align: center;
  margin-top: 2.4rem;
  font-weight: 700;
}

/* ── Eventos ─────────────────────────────────── */
.eventos { background: var(--lila-soft); position: relative; overflow: hidden; }
.eventos::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 46% 54% 60% 40% / 55% 45% 55% 45%;
  background: #fff;
  opacity: .5;
  top: -140px; right: -120px;
}
.eventos__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 3.2rem;
  align-items: center;
  position: relative;
}
.eventos__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  rotate: -2deg;
}
.eventos__media img { width: 100%; height: 100%; object-fit: cover; }
.eventos__copy p { color: var(--choco-soft); margin-bottom: 1.2rem; max-width: 52ch; }
.eventos__copy h2 { margin-bottom: 1rem; }
.eventos__list {
  list-style: none;
  margin-bottom: 1.6rem;
  display: grid;
  gap: .45rem;
  font-weight: 600;
}

/* ── Quote ───────────────────────────────────── */
.quote { padding: clamp(4rem, 8vw, 6rem) 1.4rem; text-align: center; }
.quote__inner { max-width: 780px; margin: 0 auto; }
.quote__text {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.35;
  color: var(--choco);
}
.quote__author {
  margin-top: 1.2rem;
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--lila-dark);
}

/* ── Pasos / pedidos ─────────────────────────── */
.pedidos { background: var(--crema-2); }
.steps {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.step {
  background: var(--blanco);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  text-decoration: none;
  color: var(--choco);
  position: relative;
  box-shadow: 0 8px 30px -16px rgba(59, 36, 32, .22);
  transition: transform .3s var(--ease-bounce), box-shadow .3s ease;
  display: block;
}
.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-soft); }
.step__num {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--lila-soft);
  font-weight: 700;
}
.step__emoji { font-size: 2.2rem; display: block; margin-bottom: .8rem; }
.step h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.step p { color: var(--choco-soft); font-size: .95rem; margin-bottom: 1rem; }
.step__go {
  font-weight: 800;
  font-size: .88rem;
  color: var(--lila-dark);
  letter-spacing: .03em;
}

/* ── Footer ──────────────────────────────────── */
.footer { background: var(--choco); color: #EFE0D5; }
.footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 3.5rem 1.4rem 3rem;
  display: grid;
  grid-template-columns: auto 1.2fr 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.footer__logoimg {
  width: 176px;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35));
}
.footer__brand p { font-size: .95rem; padding: .22rem 0; }
.footer__loc { font-size: .92rem; opacity: .8; }
.footer__col h4 {
  font-size: 1.05rem;
  color: var(--dorado);
  margin-bottom: .9rem;
}
.footer__col a {
  display: block;
  color: #EFE0D5;
  text-decoration: none;
  padding: .22rem 0;
  font-size: .95rem;
}
.footer__col a:hover { color: var(--lila-soft); }
.footer__legal {
  text-align: center;
  padding: 1.4rem;
  font-size: .82rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  opacity: .7;
}

/* ── WhatsApp flotante ───────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.4rem; right: 1.4rem;
  z-index: 70;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #22b358;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -8px rgba(34, 179, 88, .65);
  animation: wa-pulse 2.6s ease-in-out infinite;
  transition: transform .25s var(--ease-bounce);
}
.wa-float:hover { transform: scale(1.12); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 12px 30px -8px rgba(34,179,88,.65), 0 0 0 0 rgba(34,179,88,.35); }
  50%      { box-shadow: 0 12px 30px -8px rgba(34,179,88,.65), 0 0 0 14px rgba(34,179,88,0); }
}

/* ── Reveal on scroll ────────────────────────── */
.reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity .7s ease, translate .7s var(--ease-bounce);
}
.reveal.is-visible { opacity: 1; translate: 0 0; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }
.d5 { transition-delay: .5s; }
.d6 { transition-delay: .6s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: 0 0; }
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 4rem; }
  .hero__collage { min-height: 440px; max-width: 520px; margin: 0 auto; width: 100%; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .menu__grid { grid-template-columns: 1fr; }
  .eventos__inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .steps { grid-template-columns: 1fr; max-width: 520px; }
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
    text-align: center;
  }
}

/* Menú móvil: entra a 890px, antes de que los enlaces se amontonen */
@media (max-width: 890px) {
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--crema);
    flex-direction: column;
    padding: 1.2rem 1.6rem 1.6rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(59, 36, 32, .08);
    box-shadow: 0 20px 30px -20px rgba(59, 36, 32, .25);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
}

@media (max-width: 720px) {
  .nav__brandimg { height: 56px; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-bottom: 5.5rem; }
  .hero__collage { min-height: 360px; }
  .hero__sticker { width: 76px; height: 76px; font-size: 1.1rem; right: 24%; }
  .menu__board { padding: 1.6rem 1.3rem; }
  .masonry { columns: 2 150px; }
  .ticker__track span { font-size: 1.6rem; }
}
