/* =========================================================
   Sabores de la Yayáya — Landing
   Paleta tomada de la etiqueta de la marca:
   ciruela, rosa, verde hoja y crema.
   ========================================================= */

:root {
  --cream: #FFF8F1;
  --cream-2: #F8EBDD;
  --paper: #FFFDFA;
  --blush: #F8DDE4;
  --blush-2: #FDF0F3;
  --rose: #D9577E;
  --plum: #7A1F48;
  --plum-700: #5E1637;
  --plum-900: #3B0D23;
  --leaf: #2F6B47;
  --sage: #C9DCC0;
  --caramel: #C98A4B;
  --ink: #2C1A20;
  --muted: #6F5A61;
  --line: rgba(122, 31, 72, .14);

  --shadow-sm: 0 2px 6px rgba(59, 13, 35, .05), 0 10px 24px -12px rgba(59, 13, 35, .18);
  --shadow: 0 18px 40px -18px rgba(59, 13, 35, .38);
  --shadow-lg: 0 34px 70px -28px rgba(59, 13, 35, .5);

  --radius: 22px;
  --radius-lg: 32px;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 78px;

  --ff-display: "Fraunces", Georgia, "Times New Roman", serif;
  --ff-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-script: "Dancing Script", "Brush Script MT", cursive;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.menu-open,
body.lb-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { flex: none; }
p { margin: 0; }
figure { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.015em;
  color: var(--plum-900);
  font-variation-settings: "SOFT" 60;
}

h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 em, h1 em { font-style: italic; color: var(--rose); font-weight: 500; }

::selection { background: var(--blush); color: var(--plum-900); }

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

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { overflow-x: clip; }

.section { position: relative; padding-block: clamp(76px, 9vw, 124px); }
.about, .gallery { padding-bottom: clamp(36px, 5vw, 64px); }
.products { padding-bottom: clamp(64px, 8vw, 104px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin-bottom: .55rem;
  font-family: var(--ff-script);
  font-weight: 700;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1;
  color: var(--rose);
}
.eyebrow svg { width: 38px; height: 15px; color: var(--leaf); fill: currentColor; }
.eyebrow--light { color: var(--blush); }
.eyebrow--light svg { color: var(--sage); }

.section-head { max-width: 660px; margin: 0 auto clamp(44px, 6vw, 68px); text-align: center; }
.section-head > p:last-child { margin-top: 1rem; color: var(--muted); font-size: 1.08em; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--plum);
  --fg: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .95em 1.65em;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: .98rem;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn:hover { transform: translateY(-3px); }

.btn--primary { box-shadow: 0 12px 26px -12px rgba(122, 31, 72, .75); }
.btn--primary:hover { box-shadow: 0 18px 34px -14px rgba(122, 31, 72, .8); }
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .32) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn--primary:hover::before { transform: translateX(120%); }

.btn--ghost { --bg: transparent; --fg: var(--plum); border-color: var(--plum); }
.btn--ghost:hover { background: var(--plum); color: #fff; }

.btn--light { --bg: var(--cream); --fg: var(--plum); }
.btn--light:hover { box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); }

.btn--sm { padding: .68em 1.25em; font-size: .9rem; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height .4s var(--ease);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 248, 241, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -22px rgba(59, 13, 35, .45);
  opacity: 0;
  transition: opacity .4s;
}
.header.is-scrolled { --header-h: 66px; }
.header.is-scrolled::before { opacity: 1; }

.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: .65rem; }
.logo__mark { width: 48px; height: 48px; transition: transform .6s var(--ease); }
.logo__mark svg { width: 100%; height: 100%; overflow: visible; }
.logo:hover .logo__mark { transform: rotate(-12deg) scale(1.06); }
.logo__ring { fill: none; stroke: var(--plum); stroke-width: 1.6; stroke-dasharray: 2 3.2; }
.logo__inner { fill: var(--plum); }
.logo__y { font-family: var(--ff-script); font-weight: 700; font-size: 30px; fill: var(--cream); }
.logo__heart { fill: var(--blush); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text small {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--plum);
}
.logo__text strong {
  margin-top: -1px;
  font-family: var(--ff-script);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--plum);
}

.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.nav ul { display: flex; gap: clamp(14px, 2.1vw, 30px); margin: 0; padding: 0; list-style: none; }
.nav ul a { position: relative; padding: .3em 0; font-weight: 500; font-size: .96rem; }
.nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--rose);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav ul a:hover::after,
.nav ul a.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle { display: none; }

@media (max-width: 920px) {
  .menu-toggle {
    position: relative;
    z-index: 60;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--plum);
    box-shadow: var(--shadow-sm);
  }
  .menu-toggle span {
    position: absolute;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transition: transform .45s var(--ease);
  }
  .menu-toggle span:first-child { transform: translateY(-4px); }
  .menu-toggle span:last-child { transform: translateY(4px); }
  .menu-open .menu-toggle span:first-child { transform: rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: rotate(-45deg); }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    flex-direction: column;
    justify-content: center;
    gap: 44px;
    background:
      radial-gradient(600px 400px at 100% 0%, var(--blush), transparent 70%),
      var(--cream);
    clip-path: circle(0 at calc(100% - var(--gutter) - 24px) 39px);
    visibility: hidden;
    transition: clip-path .75s var(--ease), visibility 0s .75s;
  }
  .menu-open .nav {
    clip-path: circle(150% at calc(100% - var(--gutter) - 24px) 39px);
    visibility: visible;
    transition: clip-path .75s var(--ease), visibility 0s;
  }
  .nav ul { flex-direction: column; align-items: center; gap: 16px; }
  .nav ul a { font-family: var(--ff-display); font-size: 2.1rem; font-weight: 600; color: var(--plum-900); }
  .nav .btn { font-size: 1rem; padding: .95em 1.7em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 36px) 0 96px;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .75; }
.blob--1 { width: 620px; height: 620px; right: -140px; top: -120px; background: var(--blush); animation: drift 16s ease-in-out infinite; }
.blob--2 { width: 380px; height: 380px; left: -120px; bottom: -80px; background: #F3E2CF; animation: drift 20s ease-in-out -6s infinite reverse; }
.blob--3 { width: 260px; height: 260px; right: 32%; bottom: 6%; background: var(--sage); opacity: .45; animation: drift 18s ease-in-out -3s infinite; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.hero__title {
  margin: .25em 0 .4em;
  font-size: clamp(2.7rem, 5.9vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.025em;
}
.hero__yaya {
  position: relative;
  display: inline-block;
  font-family: var(--ff-script);
  font-weight: 700;
  font-size: 1.22em;
  line-height: .9;
  letter-spacing: 0;
  color: var(--plum);
  transform: rotate(-3deg);
  padding: 0 .06em;
}
.swash {
  position: absolute;
  left: 0;
  bottom: -.14em;
  width: 100%;
  height: .26em;
  overflow: visible;
}
.swash path {
  fill: none;
  stroke: var(--rose);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.hero__title.is-visible .swash path { animation: draw 1.3s var(--ease) .7s forwards; }

.hero__lead { max-width: 52ch; color: var(--muted); font-size: clamp(1.05rem, 1.35vw, 1.2rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.1rem; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px clamp(22px, 3.4vw, 44px);
  margin: 2.6rem 0 0;
  padding: 1.6rem 0 0;
  list-style: none;
  border-top: 1.5px dashed var(--line);
}
.hero__facts strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--plum);
}
.hero__facts span { font-size: .86rem; color: var(--muted); }

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1.1;
  justify-self: end;
}
[data-depth] { translate: var(--px, 0) var(--py, 0); transition: translate .8s var(--ease); }

.hero__main {
  position: absolute;
  inset: 0 7% 5% 15%;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 999px 999px 40px 40px;
  background: var(--blush);
  box-shadow: var(--shadow-lg);
}
.hero__main img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 20s ease-in-out infinite alternate; }

.hero__float {
  position: absolute;
  overflow: hidden;
  border: 6px solid #fff;
  background: var(--blush);
  box-shadow: var(--shadow);
}
.hero__float img { width: 100%; height: 100%; object-fit: cover; }
.hero__float--a {
  left: -2%;
  bottom: 4%;
  width: 37%;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: bob 6.5s ease-in-out infinite;
}
.hero__float--b {
  right: -3%;
  top: 9%;
  width: 29%;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  rotate: 6deg;
  animation: bob 7.5s ease-in-out -2.5s infinite;
}

.badge-spin {
  position: absolute;
  left: 3%;
  top: 3%;
  width: clamp(104px, 11vw, 134px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--plum);
  box-shadow: var(--shadow);
}
.badge-spin__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 20s linear infinite; }
.badge-spin__ring text { font: 700 15.5px var(--ff-body); letter-spacing: 2px; fill: var(--cream); }
.badge-spin__heart { width: 30%; height: 30%; fill: var(--blush); animation: beat 2.4s ease-in-out infinite; }

.hero__note {
  position: absolute;
  right: 0;
  bottom: 13%;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1.1rem .7rem .7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  animation: bob 8s ease-in-out -1s infinite;
}
.hero__note-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blush);
}
.hero__note-icon svg { width: 18px; height: 18px; fill: var(--rose); }
.hero__note strong { display: block; font-size: .9rem; line-height: 1.2; color: var(--plum-900); }
.hero__note small { display: block; font-size: .76rem; color: var(--muted); }

.sprinkle {
  position: absolute;
  width: 16px;
  height: 6px;
  border-radius: 6px;
  animation: float 6s ease-in-out infinite;
}
.sp1 { left: 8%; top: 46%; background: var(--rose); rotate: 35deg; }
.sp2 { right: 6%; top: 2%; background: var(--leaf); rotate: -20deg; animation-delay: -2s; }
.sp3 { left: 46%; bottom: -1%; background: var(--caramel); rotate: 70deg; animation-delay: -4s; }
.sp4 { right: 1%; top: 48%; background: var(--plum); rotate: 15deg; animation-delay: -1s; }
.sp5 { left: 30%; top: -3%; background: var(--sage); width: 10px; height: 10px; animation-delay: -3s; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 26px;
  height: 42px;
  border: 2px solid var(--plum);
  border-radius: 20px;
  translate: -50% 0;
  opacity: .55;
  transition: opacity .3s;
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--plum);
  translate: -50% 0;
  animation: scrollcue 1.8s var(--ease) infinite;
}

/* ---------- Marquesina ---------- */
.marquee {
  position: relative;
  z-index: 2;
  width: 104%;
  margin: -12px -2% 0;
  padding: 18px 0;
  overflow: hidden;
  background: var(--plum);
  color: var(--cream);
  transform: rotate(-1.6deg);
  box-shadow: var(--shadow);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 30px; padding-right: 30px; }
.marquee span {
  font-family: var(--ff-display);
  font-size: clamp(1.25rem, 2.4vw, 2rem);
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
}
.marquee svg { width: 18px; height: 18px; fill: var(--rose); }

/* ---------- Nosotros ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(44px, 7vw, 104px);
  align-items: center;
}
.about__media { position: relative; width: 100%; max-width: 540px; aspect-ratio: 4 / 4.7; }
.about__img { position: absolute; overflow: hidden; box-shadow: var(--shadow-lg); background: var(--cream-2); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--main { inset: 0 18% 13% 0; border-radius: var(--radius-lg); }
.about__img--main img { object-position: 50% 30%; }
.about__img--sm {
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 3 / 4;
  border: 8px solid var(--cream);
  border-radius: var(--radius);
}
.about__stamp {
  position: absolute;
  right: 6%;
  top: 7%;
  width: 124px;
  height: 124px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  border: 2px dashed var(--leaf);
  border-radius: 50%;
  outline: 6px solid var(--sage);
  background: var(--sage);
  color: var(--leaf);
  text-align: center;
  font-family: var(--ff-script);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.05;
  rotate: -10deg;
  animation: wobble 7s ease-in-out infinite;
}
.about__stamp svg { width: 36px; height: 14px; fill: currentColor; }

.about__text > p { margin-top: 1.1rem; color: var(--muted); max-width: 54ch; }
.about__text h2 { margin-top: .1em; }

.features { display: grid; gap: 18px; margin: 2.2rem 0 0; padding: 0; list-style: none; }
.features li {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.features li:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); border-color: transparent; }
.features__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--blush-2);
  color: var(--plum);
}
.features__icon svg { width: 26px; height: 26px; }
.features h3 { font-size: 1.18rem; }
.features p { font-size: .94rem; color: var(--muted); }

/* ---------- Productos (bento) ---------- */
.products { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%); }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(230px, 21vw, 280px);
  gap: 18px;
}
.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--plum-900);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.tile--lg { grid-column: span 2; grid-row: span 2; }
.tile--wide, .tile--half { grid-column: span 2; }
.tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s var(--ease);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(59, 13, 35, 0) 35%, rgba(59, 13, 35, .86) 100%);
  transition: opacity .5s;
}
.tile:hover img { transform: scale(1.07); }
.tile__body { padding: clamp(18px, 2.2vw, 30px); }
.tile h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); color: #fff; }
.tile--lg h3 { font-size: clamp(2.1rem, 3.6vw, 3rem); }
.tile p { max-width: 38ch; margin-top: .35em; font-size: .95rem; opacity: .9; }
.tile__tag {
  display: inline-block;
  margin-bottom: .8em;
  padding: .38em .95em;
  border-radius: 99px;
  background: var(--blush);
  color: var(--plum);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tile__more {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin-top: 1.1em;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--rose);
  font-size: .95rem;
  font-weight: 700;
}
.tile__more svg { width: 1.1em; height: 1.1em; transition: transform .4s var(--ease); }
.tile:hover .tile__more svg { transform: translateX(5px); }

/* ---------- Alfajores ---------- */
.alfajores {
  margin-top: 0;
  padding-top: clamp(120px, 13vw, 170px);
  padding-bottom: clamp(120px, 13vw, 170px);
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(217, 87, 126, .35), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(201, 138, 75, .22), transparent 60%),
    var(--plum);
  color: var(--cream);
  overflow: hidden;
}
.alfajores::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1.3px, transparent 1.3px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}

.wave { position: absolute; left: 0; width: 100%; height: clamp(34px, 5vw, 72px); display: block; }
.wave--top { top: -1px; fill: var(--cream-2); }
.wave--bottom { bottom: -1px; fill: var(--blush-2); }

.alfajores h2 { color: #fff; }
.alfajores__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 5vw, 52px);
}
.alfajores__head p:not(.eyebrow) { max-width: 56ch; margin-top: 1rem; color: rgba(255, 248, 241, .8); }

.carousel-nav { display: flex; gap: 12px; }
.round-btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1.5px solid rgba(255, 255, 255, .38);
  border-radius: 50%;
  color: #fff;
  transition: background-color .3s, color .3s, transform .4s var(--ease), opacity .3s;
}
.round-btn svg { width: 22px; height: 22px; }
.round-btn:hover { background: var(--cream); color: var(--plum); transform: scale(1.07); }
.round-btn:disabled { opacity: .3; pointer-events: none; }

.carousel__track {
  --pad: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  display: flex;
  gap: clamp(16px, 2vw, 26px);
  margin: 0;
  padding: 12px var(--pad) 34px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__track:focus-visible { outline-offset: -3px; }

.alfa-card {
  flex: 0 0 clamp(250px, 27vw, 330px);
  scroll-snap-align: start;
  padding: 12px;
  border-radius: 28px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55);
  transition: transform .55s var(--ease);
}
.alfa-card:hover { transform: translateY(-10px) rotate(-.8deg); }
.alfa-card__img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  background: var(--blush);
}
.alfa-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); pointer-events: none; }
.alfa-card:hover .alfa-card__img img { transform: scale(1.07); }
.alfa-card__num {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: .3em .85em;
  border-radius: 99px;
  background: rgba(255, 248, 241, .94);
  color: var(--plum);
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: var(--shadow-sm);
}
.alfa-card { display: flex; flex-direction: column; }
.alfa-card__body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 18px 10px 8px; }
.alfa-card h3 { font-size: 1.38rem; line-height: 1.15; }
.alfa-card__cover {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin-top: .75em;
  padding: .38em .9em .38em .42em;
  border-radius: 99px;
  background: var(--cream-2);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}
.alfa-card__cover::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #6B4232, #2A160F 70%);
}
.alfa-card__cover--white::before {
  background: radial-gradient(circle at 35% 35%, #FFFDF6, #EADFC8 75%);
  box-shadow: inset 0 0 0 1px rgba(59, 13, 35, .2);
}
.alfa-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  margin-top: auto;
  padding-top: 1em;
  color: var(--plum);
  font-weight: 700;
  font-size: .92rem;
}
.alfa-card__link svg { width: 1.1em; height: 1.1em; transition: transform .4s var(--ease); }
.alfa-card__link:hover svg { transform: translateX(5px); }

.carousel__progress {
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, .18);
}
.carousel__progress span { display: block; width: 30%; height: 100%; border-radius: 3px; background: var(--blush); }

.alfajores__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: clamp(40px, 6vw, 64px);
  padding: 14px 14px 14px 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.alfajores__cta p { flex: 1 1 260px; color: rgba(255, 248, 241, .86); }
.alfajores__cta strong { color: #fff; }
.alfajores__thumbs { display: flex; }
.alfajores__thumbs img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 3px solid var(--plum);
  border-radius: 50%;
}
.alfajores__thumbs img + img { margin-left: -16px; }

/* ---------- Cumpleaños ---------- */
.cumples { background: var(--blush-2); }
.cumples__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  margin-bottom: clamp(52px, 7vw, 84px);
}
.cumples__intro p:not(.eyebrow) { max-width: 52ch; margin: 1.1rem 0 1.9rem; color: var(--muted); }
.cumples__hero {
  position: relative;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: var(--radius-lg);
  background: var(--sage);
  box-shadow: var(--shadow-lg);
  rotate: 1.5deg;
}
.cumples__hero img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cumples__hero:hover img { transform: scale(1.05); }
.cumples__label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: .7em 1.1em;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  color: var(--plum);
  font-size: .92rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.cumples__label svg { width: 20px; height: 20px; color: var(--rose); }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  padding: 10px 10px 24px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.service:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.service figure { aspect-ratio: 1; margin-bottom: 18px; overflow: hidden; border-radius: 16px; background: var(--blush); }
.service img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.service:hover img { transform: scale(1.06); }
.service h3 { padding-inline: 10px; font-size: 1.3rem; }
.service p { margin-top: .35em; padding-inline: 10px; font-size: .93rem; color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: .75fr 2fr;
  gap: 40px;
  align-items: center;
  margin-top: clamp(56px, 8vw, 92px);
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--plum-900);
  color: rgba(255, 248, 241, .8);
  box-shadow: var(--shadow-lg);
}
.steps__intro h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); color: #fff; }
.steps__intro p { margin-top: .5rem; }
.steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li { position: relative; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--plum);
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 700;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25px;
  left: 64px;
  right: -14px;
  border-top: 2px dashed rgba(248, 221, 228, .35);
}
.steps h4 { font-size: 1.2rem; color: #fff; }
.steps li p { margin-top: .3em; font-size: .93rem; }

/* ---------- Galería ---------- */
.masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 14vw, 190px);
  grid-auto-flow: dense;
  gap: 16px;
}
.masonry__item {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: var(--cream-2);
  cursor: zoom-in;
}
.masonry__item.m-tall { grid-row: span 2; }
.masonry__item.m-big { grid-column: span 2; grid-row: span 2; }
.masonry__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.masonry__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(122, 31, 72, .32);
  opacity: 0;
  transition: opacity .4s;
}
.masonry__item::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A1F48' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 24px no-repeat;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
  transition: opacity .4s, transform .5s var(--ease);
}
.masonry__item:hover img { transform: scale(1.06); }
.masonry__item:hover::before,
.masonry__item:hover::after,
.masonry__item:focus-visible::before,
.masonry__item:focus-visible::after { opacity: 1; }
.masonry__item:hover::after,
.masonry__item:focus-visible::after { transform: translate(-50%, -50%) scale(1); }

.ig-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(24px, 3.5vw, 40px);
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, var(--blush) 0%, var(--blush-2) 55%, #F4E7D9 100%);
}
.ig-cta::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  border: 2px dashed rgba(122, 31, 72, .18);
  border-radius: 50%;
  pointer-events: none;
}
.ig-cta__icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 24px;
  background: linear-gradient(135deg, #F58529 0%, #DD2A7B 50%, #8134AF 100%);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(221, 42, 123, .8);
  rotate: -6deg;
}
.ig-cta__icon svg { width: 38px; height: 38px; }
.ig-cta h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); word-break: break-word; }
.ig-cta p:not(.eyebrow) { margin-top: .3rem; color: var(--muted); }
.ig-cta .eyebrow { margin-bottom: .2rem; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px 80px;
  background: rgba(30, 7, 18, .93);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility 0s .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .35s; }
.lightbox figure { max-width: min(92vw, 880px); text-align: center; }
.lightbox img {
  width: auto;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  transform: scale(.95);
  transition: transform .5s var(--ease), opacity .25s;
}
.lightbox.is-open img { transform: none; }
.lightbox img.is-swapping { opacity: 0; }
.lightbox figcaption { margin-top: 14px; color: var(--blush); font-family: var(--ff-script); font-size: 1.5rem; }
.lightbox__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transition: background-color .3s, transform .3s var(--ease);
}
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .22); transform: scale(1.06); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 20px; top: 50%; translate: 0 -50%; }

/* ---------- Ubicación ---------- */
.location { background: var(--cream); }
.location__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: stretch;
}
.location__info { display: flex; flex-direction: column; justify-content: center; }

.info-list { display: grid; gap: 22px; margin: 2.1rem 0 2.3rem; padding: 0; list-style: none; }
.info-list li { display: flex; align-items: flex-start; gap: 16px; }
.info-list__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--blush-2);
  color: var(--plum);
}
.info-list__icon svg { width: 24px; height: 24px; }
.info-list h3 {
  margin-bottom: .2em;
  font-family: var(--ff-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose);
}
.info-list p { color: var(--ink); }
.info-list a { color: var(--plum); font-weight: 700; border-bottom: 1.5px solid var(--blush); }
.info-list a:hover { border-color: var(--plum); }

.location__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.location__map {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: var(--radius-lg);
  background: var(--cream-2);
  box-shadow: var(--shadow-lg);
}
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow);
  pointer-events: none;
}
.map-card__logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--plum);
}
.map-card__logo svg { width: 18px; height: 18px; fill: var(--blush); animation: beat 2.4s ease-in-out infinite; }
.map-card strong { display: block; font-size: .95rem; line-height: 1.2; color: var(--plum-900); }
.map-card small { display: block; font-size: .8rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  overflow: hidden;
  padding: clamp(60px, 8vw, 96px) 0 28px;
  background: var(--plum-900);
  color: rgba(255, 248, 241, .72);
}
.footer__watermark {
  position: absolute;
  right: -2%;
  bottom: -.28em;
  font-family: var(--ff-script);
  font-weight: 700;
  font-size: clamp(6rem, 20vw, 17rem);
  line-height: 1;
  color: rgba(255, 255, 255, .045);
  pointer-events: none;
  user-select: none;
}
.footer__grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer__brand p { max-width: 40ch; margin-top: 1.1rem; }
.logo--light .logo__text small,
.logo--light .logo__text strong { color: var(--cream); }
.logo--light .logo__ring { stroke: var(--blush); }
.logo--light .logo__inner { fill: var(--rose); }
.footer h4 {
  margin-bottom: 1.1rem;
  font-family: var(--ff-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}
.footer ul { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.footer ul a { transition: color .25s; }
.footer ul a:hover { color: var(--blush); }
.socials { display: flex; gap: 10px; margin-top: 1.5rem; }
.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  color: #fff;
  transition: background-color .3s, color .3s, transform .4s var(--ease), border-color .3s;
}
.socials svg { width: 20px; height: 20px; }
.socials a:hover { background: var(--blush); border-color: var(--blush); color: var(--plum); transform: translateY(-3px); }
.footer__bottom {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .88rem;
}
.footer__credit {
  position: relative;
  margin-top: 18px;
  text-align: center;
  font-size: .8rem;
  color: rgba(255, 248, 241, .5);
}
.footer__credit a { color: rgba(255, 248, 241, .75); border-bottom: 1px solid rgba(255, 255, 255, .2); transition: color .25s, border-color .25s; }
.footer__credit a:hover { color: var(--blush); border-color: var(--blush); }
.footer__heart { width: 14px; height: 14px; vertical-align: -2px; fill: var(--rose); animation: beat 2.4s ease-in-out infinite; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7);
  opacity: 0;
  translate: 0 24px;
  pointer-events: none;
  transition: opacity .4s, translate .5s var(--ease), transform .3s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: #25D366;
  animation: ping 2.6s var(--ease) infinite;
}
.wa-float:hover { transform: scale(1.08); }
.show-float .wa-float { opacity: 1; translate: 0 0; pointer-events: auto; }

/* ---------- Animaciones de entrada ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}
.reveal--left { transform: translateX(-40px); }
.reveal--zoom { transform: scale(.94); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.no-js .swash path { stroke-dashoffset: 0; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -10px); } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.09); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 24px) scale(1.06); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@keyframes wobble { 0%, 100% { rotate: -10deg; } 50% { rotate: -4deg; } }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.75); opacity: 0; } }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

.badge-spin__heart, .map-card__logo svg, .footer__heart { transform-origin: center; transform-box: fill-box; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .tile--half { grid-column: span 1; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 920px) {
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 28px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 500px; }
  .scroll-cue { display: none; }

  .about__grid,
  .cumples__intro,
  .location__grid { grid-template-columns: 1fr; }
  .about__media { justify-self: center; }

  .alfajores__head { flex-direction: column; align-items: flex-start; }

  .ig-cta { grid-template-columns: auto 1fr; }
  .ig-cta .btn { grid-column: 1 / -1; justify-self: start; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .logo__mark { width: 42px; height: 42px; }
  .logo__text strong { font-size: 1.6rem; }

  .hero__cta .btn { flex: 1 1 auto; }
  .hero__facts strong { font-size: 1.45rem; }
  .hero__note { right: -2%; bottom: 10%; }
  .hero__note small { display: none; }

  .about__stamp { width: 104px; height: 104px; font-size: .98rem; right: 2%; }

  .bento { grid-template-columns: 1fr; grid-auto-rows: 300px; }
  .tile--lg, .tile--wide, .tile--half { grid-column: auto; grid-row: auto; }
  .tile--lg { grid-row: span 1; }

  .services { grid-template-columns: 1fr 1fr; gap: 12px; }
  .service { padding: 8px 8px 18px; }
  .service h3 { font-size: 1.08rem; padding-inline: 6px; }
  .service p { font-size: .85rem; padding-inline: 6px; }

  .steps ol { grid-template-columns: 1fr; gap: 22px; }
  .steps li { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .steps li:not(:last-child)::after { top: 58px; bottom: -18px; left: 24px; right: auto; border-top: 0; border-left: 2px dashed rgba(248, 221, 228, .35); }

  .alfa-card { flex-basis: 78vw; }
  .alfajores__cta { border-radius: 28px; padding: 20px; }
  .footer { padding-bottom: 100px; }
  .alfajores__cta .btn { width: 100%; }

  .masonry { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; gap: 10px; }
  .masonry__item { border-radius: 14px; }
  .map-card { display: none; }

  .ig-cta { grid-template-columns: 1fr; text-align: left; }
  .ig-cta__icon { width: 64px; height: 64px; }

  .location__map { min-height: 360px; }
  .location__cta .btn { flex: 1 1 auto; }

  .lightbox { padding: 70px 12px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; translate: none; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }

  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .swash path { stroke-dashoffset: 0; }
}
