/* ==========================================================================
   Dulys's Pastelería — sistema visual
   Una sans (Onest) · neutros cálidos · un acento: el rosa de la marca
   Movimiento: 600–900ms, cubic-bezier(.16,1,.3,1), respeta prefers-reduced-motion
   ========================================================================== */

:root {
  --bg: #f7f3f0;
  --bg-2: #efe8e3;
  --card: #fffdfb;
  --ink: #1f1517;
  --muted: #6c5d61;
  --line: rgba(31, 21, 23, .1);
  --line-2: rgba(31, 21, 23, .18);
  --rose: #c8566b;
  --rose-ink: #a33c52;
  --rose-soft: #f3dfe2;

  --f: "Onest", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --r-lg: 28px;
  --r: 20px;
  --r-sm: 14px;
  --header-h: 76px;
  --shadow: 0 24px 60px -24px rgba(31, 21, 23, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fill { fill: currentColor; stroke: none; }
:focus-visible { outline: 2.5px solid var(--rose); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--rose-soft); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; transition: top .3s var(--ease); }
.skip:focus { top: 12px; }

/* ---------- Tipografía ---------- */
.display { font-size: clamp(2.8rem, 1.4rem + 5.4vw, 6.4rem); line-height: .92; letter-spacing: -.05em; font-weight: 600; text-wrap: balance; }
.h2 { font-size: clamp(2.1rem, 1.3rem + 3vw, 4rem); line-height: .96; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.05; letter-spacing: -.025em; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 520px; }
.kicker { font-size: .9rem; font-weight: 500; color: var(--rose-ink); margin-bottom: 14px; }
.muted { color: var(--muted); }
.accent { color: var(--rose); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: .98rem; white-space: nowrap;
  transition: background .4s var(--ease), transform .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.btn:hover { background: #3a2a2e; }
.btn:active { transform: scale(.97); }
.btn svg { transition: transform .5s var(--ease); }
.btn:hover svg.arr { transform: translateX(4px); }
.btn--rose { background: var(--rose); }
.btn--rose:hover { background: var(--rose-ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--ghost:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--rose-soft); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.link svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* ---------- Cabecera ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(247, 243, 240, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: box-shadow .4s var(--ease); }
.header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header__in { max-width: var(--max); margin: auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: baseline; gap: 8px; margin-right: auto; line-height: 1; }
.brand b { font-size: 1.5rem; font-weight: 600; letter-spacing: -.04em; color: var(--rose); }
.brand span { font-size: .82rem; color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .3s, background .3s; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--bg-2); }
.header__act { display: flex; align-items: center; gap: 8px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; font-size: .92rem; transition: background .3s; }
.cart-btn:hover { background: #3a2a2e; }
.cart-btn__n { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; }
.menu-btn i { position: absolute; left: 13px; right: 13px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease); }
.menu-btn i:nth-child(1) { top: 19px; } .menu-btn i:nth-child(2) { top: 26px; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mnav { display: none; }

/* ---------- Secciones ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 136px) var(--gutter) 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 48px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 52px); }
.head > div { max-width: 780px; }
.head .lead { max-width: 380px; }

/* ---------- Hero en mosaico ---------- */
.hero { max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter) 0; }
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, minmax(260px, 1fr)); gap: 12px; min-height: min(760px, calc(100svh - var(--header-h) - 24px)); }
.mosaic__copy { grid-column: 1 / span 6; grid-row: 1 / span 2; background: var(--bg-2); border-radius: var(--r-lg); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.mosaic__copy .display em { font-style: normal; color: var(--rose); }
.mosaic__copy .lead { margin-top: 22px; }
.mosaic__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.mosaic__facts { display: flex; gap: clamp(20px, 3vw, 44px); padding-top: 22px; border-top: 1px solid var(--line-2); }
.mosaic__facts dt { font-size: 1.6rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.mosaic__facts dd { margin: 6px 0 0; font-size: .82rem; color: var(--muted); }
.tile { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-2); isolation: isolate; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(20, 10, 12, .55)); z-index: 0; }
.tile figcaption, .tile__cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; font-weight: 500; }
.tile__cap small { display: block; font-size: .78rem; font-weight: 400; opacity: .85; }
.tile--a { grid-column: 7 / span 3; grid-row: 1 / span 2; }
.tile--b { grid-column: 10 / span 3; grid-row: 1; }
.tile--c { grid-column: 10 / span 3; grid-row: 2; }

/* ---------- Ocasiones (lista + foto grande) ---------- */
.occ { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.occ__list { display: flex; flex-direction: column; }
.occ__item { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 4px; border-top: 1px solid var(--line-2); text-align: left; transition: color .3s, padding .5s var(--ease); color: var(--muted); }
.occ__item:last-child { border-bottom: 1px solid var(--line-2); }
.occ__item b { font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); font-weight: 600; letter-spacing: -.03em; }
.occ__item span { font-size: .85rem; font-variant-numeric: tabular-nums; }
.occ__item:hover { color: var(--ink); }
.occ__item[aria-selected="true"] { color: var(--ink); padding-left: 14px; }
.occ__item[aria-selected="true"] b { color: var(--rose); }
.occ__stage { position: relative; display: grid; grid-template-rows: 1fr auto; gap: 12px; min-height: 560px; }
.occ__main { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-2); }
.occ__main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.occ__main img.is-on { opacity: 1; transform: none; }
.occ__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.occ__thumbs { display: flex; gap: 8px; }
.occ__thumbs button { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; opacity: .55; transition: opacity .3s, transform .4s var(--ease); }
.occ__thumbs button[aria-pressed="true"], .occ__thumbs button:hover { opacity: 1; }
.occ__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Vitrina: fila de tortas redondas ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 22vw, 280px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 12px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; }
.rail > li { display: flex; }
.cake { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.cake__foot { margin-top: auto; }
.cake__img { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--bg-2); }
.cake__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cake:hover .cake__img img { transform: scale(1.06) rotate(-2deg); }
.cake__ph { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 22%; background: var(--rose-soft); color: var(--rose-ink); font-weight: 600; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.1; }
.cake h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.cake p { font-size: .88rem; color: var(--muted); line-height: 1.45; }
.cake__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.price small { font-weight: 400; color: var(--muted); font-size: .82rem; }
.rail-ctrl { display: flex; gap: 8px; }
.round { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .3s, color .3s; }
.round:hover { background: var(--ink); color: #fff; box-shadow: none; }
.round[disabled] { opacity: .3; pointer-events: none; }

/* ---------- Bocaditos ---------- */
.bites { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 12px; }
.bites__photo { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 520px; }
.bites__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bites__panel { background: var(--card); border-radius: var(--r-lg); padding: clamp(26px, 3.6vw, 48px); display: flex; flex-direction: column; gap: 24px; }
.bites__rows { display: grid; }
.bites__rows > div { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.bites__rows > div:last-child { border-bottom: 1px solid var(--line); }
.bites__rows h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.bites__rows p { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); }
.bites__rows .price { font-size: 1.05rem; }

/* ---------- Local: foto a sangre con panel ---------- */
.visit { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 136px) var(--gutter) 0; }
.visit__frame { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 620px; display: flex; align-items: flex-end; padding: clamp(16px, 2.4vw, 28px); }
.visit__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visit__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 10, 12, .55), transparent 60%); }
.visit__panel { position: relative; z-index: 1; width: min(460px, 100%); background: var(--card); border-radius: 22px; padding: clamp(22px, 3vw, 34px); display: grid; gap: 18px; }
.visit__panel dl { margin: 0; display: grid; gap: 12px; }
.visit__panel dt { font-size: .82rem; color: var(--muted); }
.visit__panel dd { margin: 2px 0 0; font-weight: 500; }
.visit__acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); counter-reset: s; }
.steps li { padding-top: 22px; border-top: 1.5px solid var(--ink); }
.steps li::before { counter-increment: s; content: "0" counter(s); display: block; font-size: .9rem; font-weight: 600; color: var(--rose); margin-bottom: 18px; }
.steps h3 { font-size: 1.5rem; letter-spacing: -.03em; margin-bottom: 8px; }
.steps p { color: var(--muted); }

/* ---------- Reseñas (una cita grande) ---------- */
.quote { max-width: 980px; }
.quote blockquote { margin: 0; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.8rem); line-height: 1.12; letter-spacing: -.035em; font-weight: 500; text-wrap: balance; }
.quote figcaption { margin-top: 22px; color: var(--muted); }
.quote__nav { display: flex; gap: 8px; margin-top: 28px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; font-weight: 500; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 30px; height: 30px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.6px; background: currentColor; translate: -50% -50%; transition: rotate .5s var(--ease); }
.faq summary i::after { rotate: 90deg; }
.faq details[open] summary i::after { rotate: 0deg; }
.faq details p { color: var(--muted); padding: 0 48px 22px 0; }

/* ---------- Cierre ---------- */
.close { max-width: var(--max); margin: 0 auto; padding: clamp(72px, 10vw, 136px) var(--gutter) 0; }
.close__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 12px; }
.close__copy { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 440px; }
.close__copy .h2 em { font-style: normal; color: #f2a9b6; }
.close__copy p { color: rgba(255, 255, 255, .72); max-width: 440px; margin-top: 18px; }
.close__photo { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.close__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pie ---------- */
.footer { margin-top: clamp(72px, 10vw, 136px); border-top: 1px solid var(--line); }
.footer__in { max-width: var(--max); margin: auto; padding: 48px var(--gutter) 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h3 { font-size: .85rem; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.footer p, .footer a { font-size: .95rem; }
.footer a { display: block; padding: 3px 0; transition: color .3s; }
.footer a:hover { color: var(--rose-ink); }
.footer__brand b { font-size: 2rem; letter-spacing: -.05em; color: var(--rose); font-weight: 600; }
.footer__brand p { color: var(--muted); margin-top: 8px; max-width: 280px; }
.footer__legal { max-width: var(--max); margin: auto; padding: 18px var(--gutter) 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }

/* ---------- WhatsApp flotante (móvil) ---------- */
.wa-float { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45; display: none; align-items: center; justify-content: center; gap: 10px; height: 56px; border-radius: 999px; background: var(--rose); color: #fff; font-weight: 500; box-shadow: var(--shadow); transform: translateY(160%); transition: transform .6s var(--ease); }
.wa-float.is-on { transform: none; }

/* ---------- Entrada al hacer scroll ---------- */
.rv { opacity: 0; translate: 0 36px; transition: opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s); }
.rv.is-in { opacity: 1; translate: 0 0; }
.no-js .rv { opacity: 1; translate: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .mnav { display: grid; position: fixed; inset: var(--header-h) 0 0; z-index: 39; background: var(--bg); padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom)); grid-template-rows: 1fr auto; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease), visibility 0s .7s; }
  .mnav.is-open { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease); }
  .mnav nav { display: flex; flex-direction: column; }
  .mnav nav a { font-size: clamp(2rem, 8vw, 3rem); font-weight: 600; letter-spacing: -.04em; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .mnav nav a[aria-current="page"] { color: var(--rose); }
  .mosaic { grid-template-rows: auto repeat(2, 260px); min-height: 0; }
  .mosaic__copy { grid-column: 1 / -1; grid-row: 1; }
  .tile--a { grid-column: 1 / span 6; grid-row: 2 / span 2; }
  .tile--b { grid-column: 7 / span 6; grid-row: 2; }
  .tile--c { grid-column: 7 / span 6; grid-row: 3; }
  .occ { grid-template-columns: 1fr; }
  .occ__stage { min-height: 0; grid-template-rows: auto auto; }
  .occ__main { aspect-ratio: 4 / 3.6; }
  .bites { grid-template-columns: 1fr; }
  .bites__photo { min-height: 0; aspect-ratio: 16 / 10; }
  .close__in { grid-template-columns: 1fr; }
  .close__photo { aspect-ratio: 16 / 10; }
  .faq { grid-template-columns: 1fr; }
  .footer__in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  :root { --header-h: 64px; }
  .brand span { display: none; }
  .cart-btn__label { display: none; }
  .cart-btn { padding: 0 6px 0 12px; height: 42px; }
  .mosaic { grid-template-rows: auto 220px 220px; gap: 8px; }
  .mosaic__facts dt { font-size: 1.3rem; }
  .occ__list { flex-direction: row; overflow-x: auto; gap: 8px; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .occ__list::-webkit-scrollbar { display: none; }
  .occ__item { flex: none; width: auto; border: 0 !important; padding: 10px 16px !important; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
  .occ__item b { font-size: 1rem; }
  .occ__item span { display: none; }
  .occ__item[aria-selected="true"] { background: var(--ink); box-shadow: none; }
  .occ__item[aria-selected="true"] b { color: #fff; }
  .occ__thumbs button { width: 52px; height: 52px; }
  .rail { grid-auto-columns: 62vw; gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .visit__frame { min-height: 0; padding-top: 240px; }
  .visit__frame::after { background: linear-gradient(transparent 20%, rgba(20, 10, 12, .5)); }
  .footer__in { grid-template-columns: 1fr; }
  .wa-float { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; translate: none; }
}

/* ==========================================================================
   Hero a todo el ancho en rosa + componentes animados (v2)
   ========================================================================== */
:root { --hero: #b8475d; --hero-ink: #fff; }

.hero, .phead { max-width: none; background: var(--hero); color: var(--hero-ink); padding: clamp(20px, 3vw, 40px) 0 clamp(36px, 5vw, 64px); position: relative; overflow: hidden; isolation: isolate; }
.hero > .mosaic, .phead > .phead__in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.hero::before, .phead::before { content: ""; position: absolute; width: 60vw; height: 60vw; right: -18vw; top: -28vw; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .16); z-index: -1; }
.mosaic__copy, .phead__copy { background: transparent; padding-left: 0; padding-right: clamp(0px, 2vw, 32px); }
.hero .kicker, .phead .kicker { color: #ffd7de; }
.hero .display em, .phead .display em { color: #ffd7de; }
.hero .lead, .phead .lead { color: rgba(255, 255, 255, .86); }
.hero .mosaic__facts { border-top-color: rgba(255, 255, 255, .28); }
.hero .mosaic__facts dd { color: rgba(255, 255, 255, .78); }
.hero .btn--rose, .phead .btn--rose { background: #fff; color: var(--ink); }
.hero .btn--rose:hover, .phead .btn--rose:hover { background: #ffe8ec; }
.hero .btn--ghost, .phead .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.hero .btn--ghost:hover, .phead .btn--ghost:hover { background: #fff; color: var(--ink); }
.phead .crumbs { color: rgba(255, 255, 255, .78); }
.phead .crumbs a { text-decoration-color: rgba(255, 255, 255, .45); }
.header { background: rgba(247, 243, 240, .92); }

/* palabra que rota en el titular */
.rotator { display: inline-grid; vertical-align: bottom; }
.rotator > span { grid-area: 1 / 1; color: #ffd7de; opacity: 0; translate: 0 .5em; transition: opacity .6s var(--ease), translate .8s var(--ease); white-space: nowrap; }
.rotator > span.is-on { opacity: 1; translate: 0 0; }
.rotator > span.is-out { opacity: 0; translate: 0 -.5em; }

/* fotos del mosaico: entrada con zoom suave y leve paralaje con el puntero */
.tile img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
.tile.is-in img, .no-js .tile img { transform: scale(1); }
.tile:hover img { transform: scale(1.05); }
.mosaic[data-tilt] .tile { transition: translate .9s var(--ease), opacity .9s var(--ease); }

/* cinta de fotos en movimiento */
.ribbon { overflow: hidden; padding: 14px 0; background: var(--hero); }
.ribbon__track { display: flex; gap: 12px; width: max-content; animation: ribbon 60s linear infinite; }
.ribbon:hover .ribbon__track, .ribbon:focus-within .ribbon__track { animation-play-state: paused; }
.ribbon__track img { width: 150px; height: 190px; object-fit: cover; border-radius: 18px; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* contadores */
[data-count-to] { font-variant-numeric: tabular-nums; }

/* pasos con progreso que se llena al hacer scroll */
.steps { position: relative; }
.steps li { border-top-color: var(--line-2); position: relative; }
.steps li::after { content: ""; position: absolute; left: 0; top: -1.5px; height: 1.5px; width: 100%; background: var(--rose); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .2s linear; }

/* calculadora de bocaditos */
.calc { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 22px; }
.calc h3 { font-size: 1.4rem; letter-spacing: -.03em; }
.calc p { color: rgba(255, 255, 255, .7); font-size: .95rem; }
.calc__guests { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.calc__guests output { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); font-weight: 600; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.calc input[type=range] { width: 100%; accent-color: #f2a9b6; height: 28px; }
.calc__mix { display: flex; gap: 6px; }
.calc__mix label { position: relative; flex: 1; }
.calc__mix input { position: absolute; inset: 0; opacity: 0; }
.calc__mix span { display: grid; place-items: center; min-height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); font-size: .88rem; font-weight: 500; cursor: pointer; transition: background .3s, color .3s; }
.calc__mix input:checked + span { background: #fff; color: var(--ink); }
.calc__mix input:focus-visible + span { outline: 2.5px solid #f2a9b6; outline-offset: 2px; }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .18); }
.calc__out dt { font-size: .82rem; color: rgba(255, 255, 255, .65); }
.calc__out dd { margin: 4px 0 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.bites--calc { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, .9fr); }
.bites--calc .bites__photo { min-height: 0; }

/* cierre que cambia según el evento (adaptado de UI Vault CTA-003) */
.event { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 12px; }
.event__copy { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 36px; min-height: 480px; }
.event__title { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4.4rem); line-height: .95; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.event__title span { color: #f2a9b6; display: inline-block; transition: opacity .35s var(--ease), translate .5s var(--ease); }
.event__title span.is-swap { opacity: 0; translate: 0 .25em; }
.event__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.event__chips button { height: 42px; padding: 0 16px; border-radius: 999px; font-weight: 500; font-size: .92rem; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); transition: background .3s, color .3s; }
.event__chips button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: none; }
.event__photo { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.event__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); }
.event__photo img.is-on { opacity: 1; }

/* reseñas: cita grande con barra de avance */
.quote__bar { height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; margin-top: 28px; max-width: 320px; }
.quote__bar i { display: block; height: 100%; background: var(--rose); width: 0; }
.quote__bar i.is-run { width: 100%; transition: width 7s linear; }
.quote blockquote { transition: opacity .5s var(--ease), translate .6s var(--ease); }
.quote blockquote.is-swap { opacity: 0; translate: 0 12px; }

@media (max-width: 1080px) {
  .bites--calc { grid-template-columns: 1fr 1fr; }
  .bites--calc .bites__photo { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .event { grid-template-columns: 1fr; }
  .event__photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) {
  .bites--calc { grid-template-columns: 1fr; }
  .ribbon__track img { width: 110px; height: 140px; border-radius: 14px; }
  .hero::before, .phead::before { width: 120vw; height: 120vw; right: -60vw; top: -50vw; }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon__track { animation: none; }
  .tile img { transform: none; }
}
.calc__out dd { font-size: 1.3rem; white-space: nowrap; }
.calc__mix span { white-space: nowrap; padding: 0 6px; }
