/* Ana Cake Designer — the 2026 menu, on the web.
   Palette and type follow Ana's printed menu: warm paper, rosewood ink, sage
   panels, with the pink of her logo used only as a small accent. */

:root {
  --paper: #efe6db;
  --paper-light: #f8f2eb;
  --paper-deep: #e4d8cb;
  --rose: #6d4949;
  --rose-deep: #4b3132;
  --ink: #5d4343;
  --muted: #765a55;
  --sage: #d2d8c1;
  --sage-deep: #5b6647;
  --pink: #f6c4cf;
  --raspberry: #c2416a;
  --line: rgba(109, 73, 73, .2);
  --line-strong: rgba(109, 73, 73, .42);
  --shadow: 0 1px 2px rgba(75, 49, 50, .06), 0 12px 32px -12px rgba(75, 49, 50, .22);

  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Albert Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --header: 72px;
  --top: var(--header);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--body);
  color: var(--ink);
  background: #f2eadf url(/img/papel.webp?v=gQ58icxy5-) repeat;
  background-size: 720px;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--raspberry); outline-offset: 3px; border-radius: 6px; }
b, strong { font-weight: 600; color: var(--rose-deep); }
h1, h2, h3, h4 { margin: 0; color: var(--rose); font-weight: 400; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--rose); color: var(--paper-light); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type ------------------------------------------------------------------ */
.display, .section-title, .carta-title, .hero h1, .mini h2, .order-head h2 {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'opsz' 144;
  font-weight: 380;
  letter-spacing: -.02em;
  line-height: .98;
}
.section-title { font-size: clamp(2.9rem, 7vw, 5rem); text-transform: lowercase; margin-bottom: .45em; }
.section-title.small { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.kicker {
  margin: 0 0 1rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.text-link {
  font-weight: 500; color: var(--rose); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px; transition: background-size .25s;
}
.text-link:hover { background-size: 40% 1px; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: inherit; }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 1.6em;
  border: 1px solid var(--rose); border-radius: 999px;
  background: var(--rose); color: var(--paper-light);
  font-weight: 500; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--rose-deep); border-color: var(--rose-deep); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 1.1em; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--rose); }
.btn-ghost:hover { background: var(--rose); color: var(--paper-light); }
.btn-wa { background: #2f6b4f; border-color: #2f6b4f; }
.btn-wa:hover { background: #24543e; border-color: #24543e; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Header ---------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(239, 230, 219, .86);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top-inner {
  height: var(--header); display: flex; align-items: center; gap: 24px;
  width: min(100% - 2 * var(--gutter), 1320px); margin-inline: auto;
}
/* Ana's logo as vectors (tools/logo/build.mjs): the cupcake seal, her "Ana"
   lettering and "cake designer", all the same height so they line up. Small
   screens drop the seal, then "cake designer", never the name. */
.brand { --logo: 46px; display: flex; align-items: center; text-decoration: none; margin-right: auto; border-radius: 10px; }
.brand svg { display: block; flex: none; height: var(--logo); width: auto; }
.brand-seal { aspect-ratio: 1; margin-right: calc(var(--logo) * .24); }
.brand-ana { aspect-ratio: 110 / 60; }
.brand-cd { aspect-ratio: 140 / 60; margin-left: calc(var(--logo) * .05); }
.brand-heart, .brand-heart-pop { transform-box: fill-box; transform-origin: 50% 60%; }
/* On arrival "Ana" is written in like piped icing, "cake designer" settles
   under it and the heart pops onto the cupcake. */
@media (prefers-reduced-motion: no-preference) {
  .brand-seal { animation: seal-in .55s cubic-bezier(.3, 1.45, .55, 1) both; }
  .brand-ana {
    /* A soft edge a fifth of the word wide sweeps across it, start to end. */
    -webkit-mask-image: linear-gradient(90deg, #000 45.5%, transparent 54.5%); mask-image: linear-gradient(90deg, #000 45.5%, transparent 54.5%);
    -webkit-mask-size: 220% 100%; mask-size: 220% 100%;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    animation: pipe-in 1.1s .15s cubic-bezier(.4, 0, .3, 1) both;
  }
  .brand-cd { animation: settle-in .6s .95s cubic-bezier(.2, .7, .3, 1) both; }
  .brand-heart-pop { animation: heart-pop .55s 1.25s cubic-bezier(.3, 1.8, .5, 1) both; }
  .brand:hover .brand-heart { animation: heart-beat .9s ease-in-out; }
}
@keyframes seal-in { from { opacity: 0; transform: scale(.6) rotate(-35deg); } }
@keyframes pipe-in { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes settle-in { from { opacity: 0; transform: translateY(5px); } }
@keyframes heart-pop { from { transform: scale(0); } }
@keyframes heart-beat { 30% { transform: scale(1.3); } 55% { transform: scale(.95); } 75% { transform: scale(1.12); } }
.nav { display: flex; gap: clamp(14px, 2vw, 28px); }
.nav a { text-decoration: none; font-size: .95rem; color: var(--ink); padding: 6px 0; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  min-width: 44px; height: 40px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; color: var(--rose);
}
.lang-switch:hover { background: var(--paper-light); }
.nav-extra { display: none; }

/* Phones and tablets: the sections become a strip of links under the header
   that always shows where you are. --top (the header's real height) is kept
   in sync by app.mjs; everything sticky sits below it. */
@media (max-width: 980px) {
  :root { --header: 58px; --top: 104px; }
  .top-inner { flex-wrap: wrap; height: auto; gap: 0 12px; padding-top: 6px; }
  .brand { --logo: 42px; }
  .top-actions { min-height: 46px; }
  .nav {
    order: 3; flex: 0 0 calc(100% + 2 * var(--gutter)); margin: 4px calc(-1 * var(--gutter)) 0; padding: 4px var(--gutter) 10px;
    gap: 6px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - 28px), transparent);
            mask: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - 28px), transparent);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav .nav-extra { display: block; flex: none; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .88rem; white-space: nowrap; background: rgba(248, 242, 235, .7); transition: background-color .2s, color .2s; }
  .nav a::after { display: none; }
  .nav a.is-current { background: var(--rose); border-color: var(--rose); color: var(--paper-light); }
}
@media (max-width: 520px) {
  .brand { --logo: 38px; }
  .brand .brand-seal { display: none; }
  .top-cta { padding: 0 .95em; }
}
@media (max-width: 380px) { .brand { --logo: 34px; } }
@media (max-width: 340px) { .brand .brand-cd { display: none; } }

/* Hero ------------------------------------------------------------------ */
.hero { --hero-pb: clamp(48px, 7vw, 96px); padding: clamp(32px, 6vw, 72px) 0 var(--hero-pb); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6.3rem); margin-bottom: .35em; }
.hero h1 em { font-style: italic; font-variation-settings: 'SOFT' 100, 'opsz' 144; color: var(--rose-deep); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 34em; color: var(--ink); margin-bottom: 1.8em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero-strip {
  list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 0;
  font-size: .95rem; color: var(--muted);
}
.hero-strip li { padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line); }
.hero-strip li:last-child { border: 0; margin: 0; padding: 0; }
.hero-strip b { color: var(--rose); font-weight: 600; }

.hero-art { position: relative; margin: 0 0 calc(-1 * var(--hero-pb)); align-self: end; display: grid; place-items: end center; min-height: 520px; }
.hero-sheet {
  position: absolute; width: 92%; max-width: 520px; bottom: 14%; left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  filter: drop-shadow(0 18px 30px rgba(75, 49, 50, .16));
}
.hero-ana {
  position: relative; width: min(100%, 440px);
  filter: drop-shadow(-12px 0 22px rgba(75, 49, 50, .16));
  animation: rise 1s cubic-bezier(.2, .7, .2, 1) both .1s;
}
.hero-quote {
  position: absolute; left: -12%; top: 6%; max-width: 220px; z-index: 1;
  background: var(--paper-light); padding: 18px 20px 16px; border-radius: 4px;
  box-shadow: var(--shadow); transform: rotate(-2deg);
  font-family: var(--display); font-style: italic; font-variation-settings: 'SOFT' 100, 'opsz' 24;
  font-size: 1.08rem; line-height: 1.35; color: var(--rose);
  animation: rise 1s cubic-bezier(.2, .7, .2, 1) both .45s;
}
.hero-quote cite {
  display: block; margin-top: 8px; font-style: normal; font-family: var(--body);
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero-quote { --r: -2deg; }
@keyframes rise-tilt { from { opacity: 0; transform: translateY(18px) rotate(-2deg); } }
.hero-quote { animation-name: rise-tilt; }

/* Where the photo is narrower, the quote can only overlap Ana herself: it
   moves above the photo instead of sitting on it. */
@media (max-width: 1100px) {
  .hero-art { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
  .hero-quote { order: -1; position: relative; left: auto; top: auto; align-self: flex-start; max-width: 300px; margin: 0 0 18px; }
}
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 0; max-width: 440px; margin: 8px auto calc(-1 * var(--hero-pb)); width: 100%; }
  .hero-quote { font-size: 1rem; padding: 14px 16px 12px; }
}

/* Menu ("carta") -------------------------------------------------------- */
.carta { padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.carta-head { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.carta-title { font-size: clamp(5rem, 17vw, 12.5rem); line-height: .78; text-transform: lowercase; }
.carta-title small { font-family: var(--body); font-size: .9rem; font-weight: 600; letter-spacing: .2em; color: var(--muted); vertical-align: top; }
.carta-intro { max-width: 520px; padding-bottom: 8px; }
.carta-intro h3 { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: 1.6rem; margin-bottom: .5em; }
.carta-intro p { margin: 0; color: var(--ink); }
@media (max-width: 760px) { .carta-head { grid-template-columns: 1fr; } }

.carta-body { display: grid; grid-template-columns: 330px 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .carta-body { grid-template-columns: 1fr; } }

/* The guests panel: the cake seen from above, cut into slices. */
.guests { position: sticky; top: calc(var(--top) + 20px); }
.guests-card {
  background: var(--paper-light); border-radius: 22px; padding: 26px 24px 22px;
  box-shadow: var(--shadow); text-align: center;
}
.guests h3 { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: 1.55rem; margin-bottom: 14px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 14px; }
.step-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: transparent; font-size: 1.4rem; line-height: 1; color: var(--rose);
}
.step-btn:hover { background: var(--paper); }
.stepper-value { display: grid; justify-items: center; font-size: .85rem; color: var(--muted); }
.stepper-value input {
  width: 3.2ch; border: 0; background: none; text-align: center;
  font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 144; font-size: 3.2rem; line-height: 1;
  color: var(--rose-deep); -moz-appearance: textfield; appearance: textfield; padding: 0;
}
.stepper-value input::-webkit-inner-spin-button, .stepper-value input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#guests-range { width: 100%; margin: 14px 0 6px; accent-color: var(--rose); }
.cake-top { margin: 6px auto 0; width: min(100%, 240px); position: relative; }
.cake-top svg { width: 100%; height: auto; overflow: visible; }
.cake-top .board { fill: #fffdf9; stroke: var(--line); }
.cake-scale { transition: transform .45s cubic-bezier(.3, .8, .3, 1); }
.cake-edge { fill: var(--paper-deep); stroke: var(--rose); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.slices path { fill: #f3e6dc; stroke: var(--rose); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-opacity: .45; transition: fill .3s; }
.slices path.taken { fill: var(--pink); }
.ruler line { stroke: var(--rose-deep); stroke-dasharray: 3 4; stroke-width: 1; opacity: 0; }
.cake-cm {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--paper-light); border-radius: 999px; padding: 2px 10px;
  font-size: .8rem; font-weight: 600; color: var(--rose-deep); box-shadow: 0 0 0 1px var(--line);
}
.size-readout { margin: 14px 0 12px; font-size: .98rem; color: var(--ink); min-height: 3.2em; }
.size-readout strong { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; font-weight: 450; font-size: 1.35rem; display: block; color: var(--rose-deep); }
.size-chips { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.size-chip {
  min-width: 46px; height: 38px; padding: 0 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--rose);
  font-weight: 600; font-size: .88rem;
}
.size-chip[aria-checked="true"] { background: var(--rose); color: var(--paper-light); border-color: var(--rose); }
.guests-tip { margin: 14px 0 0; font-size: .9rem; color: var(--ink); background: var(--sage); border-radius: 12px; padding: 10px 12px; text-align: left; }
.guests-tip a, .guests-tip button { color: var(--rose-deep); font-weight: 600; }

@media (max-width: 960px) {
  .guests { position: static; }
  .guests-card { display: grid; grid-template-columns: 150px 1fr; gap: 4px 20px; text-align: left; align-items: center; padding: 20px; }
  .guests h3, .stepper, #guests-range, .size-chips, .guests-tip { grid-column: 1 / -1; }
  .guests h3 { text-align: center; }
  .cake-top { grid-row: span 1; margin: 0; }
  .size-readout { margin: 0; }
  .size-chips { justify-content: center; margin-top: 8px; }
}

/* Style rows read like the printed menu: photo, words, price. */
.style-group + .style-group { margin-top: clamp(40px, 6vw, 72px); }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line-strong); }
.group-head h3 { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 72; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.group-head p { margin: 0; font-size: .92rem; color: var(--muted); }
.style-row {
  display: grid; grid-template-columns: 128px 1fr 150px; gap: 22px;
  padding: 24px 0; border-bottom: 1px dashed var(--line-strong);
  scroll-margin-top: calc(var(--top) + 24px);
  transition: background-color .4s;
}
.style-row.is-flash { background: rgba(246, 196, 207, .35); }
.style-photo { padding: 0; border: 0; background: none; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 0 0 1px var(--line), 0 10px 20px -14px rgba(75, 49, 50, .5); cursor: zoom-in; }
.style-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.style-photo:hover img { transform: scale(1.05); }
.is-cutout .style-photo { box-shadow: none; background: transparent; overflow: visible; }
.is-cutout .style-photo img { object-fit: contain; filter: drop-shadow(0 10px 12px rgba(75, 49, 50, .25)); }
.style-copy h4 { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: 1.45rem; line-height: 1.15; margin-bottom: .35em; }
.style-copy p { font-size: .98rem; margin-bottom: .6em; }
.style-includes { color: var(--muted); font-size: .9rem !important; padding-left: 12px; border-left: 2px solid var(--pink); }
.style-sizes { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .86rem; color: var(--muted); }
.style-sizes li { display: flex; gap: 5px; }
.style-sizes b { font-weight: 600; color: var(--rose); }
.style-buy { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 12px; text-align: right; }
.style-price { margin: 0; display: grid; }
.price-amount { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 144; font-size: 2.35rem; line-height: 1; color: var(--rose-deep); }
.price-from { font-family: var(--body); font-size: .8rem; font-weight: 500; color: var(--muted); vertical-align: middle; }
.price-caption { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.price-caption b { color: var(--rose); }
.price-amount.is-bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: translateY(-3px); color: var(--raspberry); } }

@media (max-width: 640px) {
  .style-row { grid-template-columns: 96px 1fr; gap: 14px 16px; }
  .style-buy { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; background: var(--paper-light); border-radius: 14px; padding: 10px 10px 10px 16px; }
  .price-amount { font-size: 1.9rem; }
  .style-copy h4 { font-size: 1.25rem; }
  .style-copy p { font-size: .94rem; }
}

.price-table { margin-top: clamp(40px, 6vw, 64px); background: var(--paper-light); border-radius: 18px; box-shadow: var(--shadow); }
.price-table summary {
  list-style: none; cursor: pointer; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; color: var(--rose);
}
.price-table summary::-webkit-details-marker { display: none; }
.price-table summary::after { content: '+'; font-size: 1.5rem; font-weight: 300; transition: transform .25s; }
.price-table[open] summary::after { transform: rotate(45deg); }
.table-wrap { padding: 0 24px; }
.ptable { position: relative; font-variant-numeric: tabular-nums; }
.ptable table { width: 100%; min-width: 600px; table-layout: fixed; border-collapse: collapse; }
.ptable col.c-style { width: 32%; }
.ptable th, .ptable td { padding: 12px 10px; text-align: right; border-bottom: 1px solid var(--line); font-size: .95rem; background: var(--paper-light); }
.ptable thead th { vertical-align: bottom; color: var(--rose); }
.ptable thead th span { display: block; font-family: var(--display); font-variation-settings: 'SOFT' 100; font-size: 1.3rem; font-weight: 450; }
.ptable thead th small { display: block; font-weight: 400; font-size: .74rem; color: var(--muted); white-space: nowrap; }
.ptable th[scope="row"], .ptable thead th:first-child { text-align: left; font-weight: 500; color: var(--ink); }
.ptable th small, .ptable td small { color: var(--muted); font-weight: 400; font-size: .78rem; }
.ptable th[scope="row"] small { display: block; }
.ptable .mini-row td { text-align: left; }
/* The style column stays put while the prices slide underneath it. */
.ptable th[scope="row"], .ptable thead th:first-child { position: sticky; left: 0; z-index: 1; transition: box-shadow .2s; }
.ptable.is-scrolled th[scope="row"], .ptable.is-scrolled thead th:first-child { box-shadow: 8px 0 10px -8px rgba(75, 49, 50, .35); }
.ptable-head {
  position: sticky; top: var(--top); z-index: 3; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line-strong);
}
.ptable-head::-webkit-scrollbar { display: none; }
.ptable-head th { border-bottom: 0; }
.ptable-body { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.ptable-body:focus-visible { outline-offset: -2px; }
.ptable-a11y-head th { padding-top: 0; padding-bottom: 0; border: 0; height: 0; }
.ptable-hint { display: none; }
@media (max-width: 760px) {
  .table-wrap { padding: 0 12px; }
  .ptable table { min-width: 540px; }
  .ptable col.c-style { width: 118px; }
  .ptable th, .ptable td { padding: 10px 8px; font-size: .9rem; }
  .ptable thead th span { font-size: 1.15rem; }
  .ptable th[scope="row"] { font-size: .86rem; line-height: 1.3; }
}
/* Only when the prices do not fit: say so, and fade the edge that hides them. */
.ptable.is-scrollable .ptable-hint {
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 9px 12px;
  background: var(--sage); border-radius: 10px; font-size: .86rem; color: var(--ink); transition: opacity .3s;
}
.ptable.is-scrollable.has-scrolled .ptable-hint { opacity: .55; }
.ptable-arrow { margin-left: auto; font-size: 1.1rem; color: var(--rose-deep); animation: nudge 1.4s ease-in-out infinite; }
.ptable.has-scrolled .ptable-arrow { animation: none; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.ptable-grid { position: relative; }
.ptable.is-scrollable .ptable-grid::after {
  content: ''; position: absolute; z-index: 4; top: 0; right: 0; bottom: 0; width: 36px; pointer-events: none;
  background: linear-gradient(to right, rgba(248, 242, 235, 0), var(--paper-light)); transition: opacity .25s;
}
.ptable.is-scrollable.at-end .ptable-grid::after { opacity: 0; }
.table-note { padding: 14px 24px 22px; margin: 0; font-size: .85rem; color: var(--muted); }

/* Mini cake ------------------------------------------------------------- */
.mini {
  background: #d6dec5 url(/img/papel-salvia.webp?v=Dvtiu1z6g0) repeat; background-size: 720px;
  padding: clamp(56px, 8vw, 104px) 0;
}
.mini-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.mini-photo { margin: 0; transform: rotate(-2.5deg); background: var(--paper-light); padding: 12px 12px 48px; box-shadow: var(--shadow); border-radius: 3px; max-width: 400px; justify-self: center; }
.mini-photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.mini h2 { font-size: clamp(3.2rem, 7vw, 5.4rem); text-transform: lowercase; }
.mini-lede { font-family: var(--display); font-style: italic; font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: 1.45rem; color: var(--rose); margin: .3em 0 .9em; }
.mini-copy > p { max-width: 36em; }
.mini-spec { margin: 1.5em 0; display: grid; gap: 0; border-top: 1px solid rgba(91, 102, 71, .35); }
.mini-spec div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(91, 102, 71, .35); }
.mini-spec dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-deep); padding-top: 2px; }
.mini-spec dd { margin: 0; }
.mini-buy { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.mini-price { margin: 0; font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 144; font-size: 3.4rem; line-height: 1; color: var(--rose-deep); }
@media (max-width: 760px) {
  .mini-inner { grid-template-columns: 1fr; }
  .mini-photo { max-width: 280px; }
  .mini-spec div { grid-template-columns: 1fr; gap: 2px; }
}

/* Flavours, structure, extras ------------------------------------------ */
.sabores { padding: clamp(56px, 8vw, 112px) 0; }
.flavour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 36px); margin-top: 24px; }
.flavour-card { background: var(--paper-light); border-radius: 22px; padding: 0 26px 26px; box-shadow: var(--shadow); text-align: center; margin-top: 76px; }
.flavour-card img {
  width: 152px; height: 152px; border-radius: 50%; object-fit: cover; margin: -76px auto 16px;
  background: var(--paper-deep); box-shadow: 0 0 0 6px var(--paper-light), 0 14px 24px -10px rgba(75, 49, 50, .45);
}
.flavour-card h3 { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: 1.6rem; margin-bottom: .5em; }
.flavour-list { list-style: none; padding: 0; margin: 0; }
.flavour-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.flavour-list li:last-child { border: 0; }
.flavour-fruit p { font-size: 1.02rem; }
@media (max-width: 860px) { .flavour-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }

.structure { display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 5vw, 64px); align-items: center; margin-top: clamp(48px, 6vw, 80px); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line-strong); border-radius: 22px; }
.structure h3 { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: 1.7rem; margin-bottom: .4em; }
.structure p { margin: 0; max-width: 34em; }
.layers { display: flex; gap: 28px; align-items: flex-end; }
.layers figure { margin: 0; text-align: center; font-size: .9rem; color: var(--rose); font-weight: 600; }
.layers small { font-weight: 400; color: var(--muted); }
.stack { width: 132px; margin: 0 auto 10px; display: grid; border-radius: 10px 10px 4px 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong); }
.stack-3 { width: 104px; }
.stack i { height: 18px; background: #e9c9a0; background-image: radial-gradient(rgba(140, 90, 50, .22) 1px, transparent 1.3px); background-size: 5px 5px; }
.stack b { height: 9px; background: #8b4f3f; }
@media (max-width: 760px) { .structure { grid-template-columns: 1fr; } .layers { justify-content: center; } }

.extras { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); margin-top: clamp(56px, 7vw, 96px); align-items: start; }
.extras-head p { color: var(--ink); max-width: 26em; }
.extras-list { list-style: none; padding: 0; margin: 0; columns: 1; }
.extras-list li { display: flex; align-items: baseline; gap: 10px; padding: 11px 0; break-inside: avoid; }
.extra-name small { color: var(--muted); font-size: .84rem; }
.leader { flex: 1; border-bottom: 1.5px dotted var(--line-strong); transform: translateY(-4px); min-width: 20px; }
.extra-price { font-weight: 600; color: var(--rose); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .extras { grid-template-columns: 1fr; } }

/* Order builder -------------------------------------------------------- */
.order { padding: clamp(56px, 8vw, 112px) 0; background: var(--paper-light); border-block: 1px solid var(--line); }
.order-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.order-head h2 { font-size: clamp(2.8rem, 6vw, 4.6rem); margin-bottom: .3em; }
.order-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 1020px) { .order-layout { grid-template-columns: 1fr; } }
.order-layout > *, .carta-body > *, .hero-inner > *, .payment-inner > *, .mini-inner > *, .about-inner > *, .faq-inner > *, .extras > * { min-width: 0; }
.noscript { background: var(--sage); padding: 16px 20px; border-radius: 14px; }

.order-form fieldset { border: 0; margin: 0 0 18px; padding: clamp(20px, 3vw, 30px); background: var(--paper); border-radius: 20px; min-width: 0; }
.order-form legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; display: flex; align-items: baseline; gap: 12px; font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: 1.55rem; color: var(--rose); }
.order-form legend + * { clear: both; }
.legend-n {
  flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center;
  border: 1px solid var(--rose); font-family: var(--body); font-size: .9rem; font-weight: 600; transform: translateY(-3px);
}
.field { display: grid; gap: 7px; margin-bottom: 16px; font-weight: 500; font-size: .95rem; color: var(--rose-deep); }
.field .opt { font-weight: 400; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--paper-light);
  font-weight: 400; font-size: 1rem; color: var(--ink);
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--rose) 50%), linear-gradient(135deg, var(--rose) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus { outline: 2px solid var(--raspberry); outline-offset: 1px; border-color: transparent; }
.input[aria-invalid="true"] { border-color: var(--raspberry); background: #fff6f7; }
.hint { font-weight: 400; font-size: .86rem; color: var(--muted); }
.hint.warn { color: var(--rose-deep); background: var(--pink); padding: 10px 12px; border-radius: 10px; }
.hint.bad { color: #fff; background: var(--raspberry); padding: 10px 12px; border-radius: 10px; }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--paper-deep); margin-bottom: 20px; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 10px 20px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--rose); }
.seg input:checked + span { background: var(--rose); color: var(--paper-light); }
.seg input:focus-visible + span { outline: 2px solid var(--raspberry); outline-offset: 2px; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
.choice-card {
  display: grid; grid-template-rows: auto 1fr; height: 100%; border-radius: 14px; overflow: hidden;
  border: 1.5px solid var(--line); background: var(--paper-light); transition: border-color .2s, box-shadow .2s;
}
.choice-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.choice-card.is-cutout img { object-fit: contain; background: var(--paper); padding: 4px; }
.choice-card span { overflow-wrap: anywhere; padding: 9px 11px 11px; font-size: .88rem; line-height: 1.3; font-weight: 500; color: var(--rose-deep); }
.choice-card small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.choice input:checked + .choice-card { border-color: var(--rose); box-shadow: 0 0 0 2px var(--rose); }
.choice input:focus-visible + .choice-card { outline: 2px solid var(--raspberry); outline-offset: 2px; }
.choice input:disabled + .choice-card { opacity: .4; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.pill span {
  display: grid; padding: 9px 16px; border-radius: 14px; border: 1.5px solid var(--line-strong);
  background: var(--paper-light); text-align: center; font-weight: 600; color: var(--rose); line-height: 1.2;
}
.pill small { font-weight: 400; font-size: .76rem; color: var(--muted); }
.pill input:checked + span { background: var(--rose); border-color: var(--rose); color: var(--paper-light); }
.pill input:checked + span small { color: var(--pink); }
.pill input:focus-visible + span { outline: 2px solid var(--raspberry); outline-offset: 2px; }
.pill input:disabled + span { opacity: .35; text-decoration: line-through; }
.group-label { display: block; font-weight: 500; font-size: .95rem; color: var(--rose-deep); margin-bottom: 10px; }

.checks { display: grid; gap: 8px; margin-bottom: 18px; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--paper-light); border: 1px solid var(--line); }
.check-row label { display: flex; align-items: center; gap: 12px; flex: 1; cursor: pointer; font-size: .95rem; }
.check-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--rose); flex: none; }
.check-row label span { min-width: 0; }
.check-row .check-price { margin-left: auto; font-weight: 600; color: var(--rose); white-space: nowrap; font-size: .9rem; }
.check-row small { color: var(--muted); }
.qty { width: 64px; min-height: 38px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper); text-align: center; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; margin-bottom: 12px; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--rose); flex: none; }
.form-error { background: var(--raspberry); color: #fff; padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 6px; }
.submit-row .hint { max-width: 30em; }

.order-bar { display: none; }
@media (max-width: 1020px) {
  .order-bar {
    display: flex; position: sticky; bottom: 0; z-index: 5; margin: 0 calc(-1 * var(--gutter)); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: rgba(248, 242, 235, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--line); align-items: center; justify-content: space-between; gap: 12px;
  }
  .order-bar p { margin: 0; line-height: 1.25; font-size: .88rem; color: var(--muted); }
  .order-bar strong { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: 1.5rem; font-weight: 450; display: block; color: var(--rose-deep); }
}

/* Receipt: a paper ticket that follows the order. */
.receipt { position: sticky; top: calc(var(--top) + 20px); }
.ticket {
  background: #fffdf9; border-radius: 6px 6px 0 0; padding: 26px 24px 30px; box-shadow: var(--shadow);
  font-variant-numeric: tabular-nums; position: relative;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
  padding-bottom: 40px;
}
.ticket h3 { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: 1.5rem; margin-bottom: 4px; }
.ticket .ticket-sub { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.ticket-lines { list-style: none; margin: 0; padding: 14px 0; border-block: 1px dashed var(--line-strong); display: grid; gap: 10px; }
.ticket-lines li { display: flex; justify-content: space-between; gap: 14px; font-size: .94rem; }
.ticket-lines li span:first-child { color: var(--ink); }
.ticket-lines li small { display: block; color: var(--muted); font-size: .8rem; }
.ticket-lines li .amt { font-weight: 600; color: var(--rose); white-space: nowrap; }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; }
.ticket-total span { font-weight: 600; color: var(--rose-deep); }
.ticket-total strong { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 144; font-size: 2.4rem; font-weight: 420; line-height: 1; }
.ticket-deposit { display: flex; justify-content: space-between; font-size: .95rem; margin-top: 8px; padding: 10px 12px; background: var(--sage); border-radius: 10px; color: var(--ink); }
.ticket-deposit b { color: var(--rose-deep); }
.ticket-notes { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: .86rem; color: var(--muted); }
.ticket-notes li { padding-left: 18px; position: relative; }
.ticket-notes li::before { content: '✳'; position: absolute; left: 0; color: var(--raspberry); font-size: .8rem; }
.ticket-empty { color: var(--muted); font-size: .95rem; margin: 6px 0 0; }
@media (max-width: 1020px) { .receipt { position: static; max-width: 520px; } }

/* After sending */
.sent { background: var(--paper); border-radius: 22px; padding: clamp(22px, 4vw, 40px); }
.sent h3 { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 72; font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .3em; }
.sent-ref { display: inline-block; font-weight: 700; letter-spacing: .08em; color: var(--rose-deep); background: var(--pink); padding: 4px 12px; border-radius: 999px; }
.sent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 28px; }
.sent-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.sent-steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.sent-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--rose); display: grid; place-items: center; font-weight: 600; color: var(--rose); font-size: .9rem; }
.sent-steps p { margin: 4px 0 0; }
.sent-pay { margin-top: 10px; display: grid; gap: 6px; font-size: .95rem; background: var(--paper-light); border-radius: 12px; padding: 12px 14px; }
.sent-again { margin: 24px 0 0; }
.sent-pay div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }

/* How it works --------------------------------------------------------- */
.how { padding: clamp(56px, 8vw, 112px) 0; }
.how-steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 28px); counter-reset: how; }
.how-steps li { counter-increment: how; position: relative; padding-top: 64px; }
.how-steps li::before {
  content: counter(how); position: absolute; top: 0; left: 0;
  font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 144; font-size: 3.2rem; line-height: 1; color: var(--pink);
  -webkit-text-stroke: 1px var(--rose);
}
.how-steps li::after { content: ''; position: absolute; top: 26px; left: 52px; right: -14px; border-top: 1px dashed var(--line-strong); }
.how-steps li:last-child::after { display: none; }
.how-steps h3 { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: 1.4rem; margin-bottom: .5em; }
.how-steps p { font-size: .96rem; }
.how-note { color: var(--muted); font-size: .88rem !important; }
@media (max-width: 960px) { .how-steps { grid-template-columns: 1fr 1fr; } .how-steps li:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .how-steps { grid-template-columns: 1fr; } .how-steps li::after { display: none; } }
.notice-card { margin-top: clamp(32px, 5vw, 56px); background: var(--paper-light); border-radius: 22px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px 40px; }
.notice-card h3 { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: 1.6rem; grid-row: span 2; }
.notice-card p { margin: 0; }
.notice-aside { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .notice-card { grid-template-columns: 1fr; } .notice-card h3 { grid-row: auto; } }

/* Payment -------------------------------------------------------------- */
.payment {
  background: #d6dec5 url(/img/papel-salvia.webp?v=Dvtiu1z6g0) repeat; background-size: 720px;
  padding: clamp(56px, 8vw, 104px) 0;
}
.payment-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.payment-copy p { max-width: 32em; }
.payment-copy .btn { margin-top: 10px; }
.last-order { margin-top: 14px; font-size: .9rem; color: var(--sage-deep); }
.pay-methods { display: grid; gap: 16px; }
.pay-card { background: var(--paper-light); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); }
.pay-card h3 { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 8px; }
.pay-card > .pay-value { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 72; font-size: 2rem; color: var(--rose-deep); margin: 0 0 10px; letter-spacing: .02em; }
.pay-list { margin: 0; display: grid; gap: 0; }
.pay-list div { display: grid; grid-template-columns: 7.5em 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: center; }
.pay-list div:last-child { border: 0; }
.pay-list dt { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pay-list dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pay-list .pay-value { font-weight: 600; color: var(--rose-deep); font-variant-numeric: tabular-nums; word-break: break-word; }
.pay-note { margin: 12px 0 0; font-size: .86rem; color: var(--muted); }
.copy-btn { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 5px 13px; font-size: .82rem; font-weight: 600; color: var(--rose); }
.copy-btn:hover { background: var(--rose); color: var(--paper-light); }
.copy-btn.is-done { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.cancel-card { grid-column: 1 / -1; border-top: 1px solid rgba(91, 102, 71, .4); padding-top: clamp(24px, 4vw, 36px); display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px clamp(24px, 4vw, 48px); }
.cancel-card h3 { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: 1.6rem; }
.cancel-card p { margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .payment-inner, .cancel-card { grid-template-columns: 1fr; } }

/* About ---------------------------------------------------------------- */
.about { padding: clamp(56px, 8vw, 112px) 0; }
.about-inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; width: 100%; max-width: 440px; box-shadow: 0 0 0 10px var(--paper-light), 0 0 0 11px var(--line), var(--shadow); }
.about-hello { font-family: var(--display); font-style: italic; font-variation-settings: 'SOFT' 100, 'opsz' 48; font-size: 1.6rem; color: var(--rose); margin-bottom: .6em; }
.about-copy p { max-width: 36em; }
.about-sign { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 72; font-size: 1.55rem; line-height: 1.3; color: var(--rose-deep); margin-top: 1.4em; padding-top: 1em; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .about-inner { grid-template-columns: 1fr; } .about-photo img { max-width: 280px; margin: 0 auto; } }

/* Gallery -------------------------------------------------------------- */
.gallery { padding: 0 0 clamp(56px, 8vw, 104px); }
.gallery-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.gallery-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.gallery-row button { padding: 0; border: 0; background: none; border-radius: 14px; overflow: hidden; width: 100%; aspect-ratio: 3 / 4; cursor: zoom-in; box-shadow: 0 0 0 1px var(--line); }
.gallery-row img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-row button:hover img { transform: scale(1.05); }
@media (max-width: 760px) {
  .gallery-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 58%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .gallery-row li { scroll-snap-align: start; }
}

/* FAQ ------------------------------------------------------------------ */
.faq { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.faq-inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(24px, 5vw, 72px); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 500; font-size: 1.06rem; color: var(--rose-deep); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font-size: 1.6rem; font-weight: 300; color: var(--rose); transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin: 0 0 20px; max-width: 40em; }
@media (max-width: 760px) { .faq-inner { grid-template-columns: 1fr; } }

/* Footer --------------------------------------------------------------- */
.foot { background: var(--rose-deep); color: #f0e2dc; padding: clamp(48px, 7vw, 80px) 0 24px; }
.foot-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-brand img { width: 136px; height: 136px; margin-bottom: 18px; }
.foot-brand p { max-width: 22em; color: #e6d3cc; }
.foot h2 { color: var(--pink); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.foot-col { display: grid; gap: 8px; align-content: start; justify-items: start; }
.foot-col a, .foot-col button { color: #f6ebe6; text-decoration: none; font-size: .96rem; }
.foot-col a:hover, .foot-col button:hover { text-decoration: underline; }
.foot-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(246, 196, 207, .2); font-size: .84rem; color: #cdb6ae; }
@media (max-width: 760px) { .foot-inner { grid-template-columns: 1fr; } }

/* Floating CTA, dialogs, toast ---------------------------------------- */
.float-cta {
  position: fixed; z-index: 30; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  background: var(--rose); color: var(--paper-light); text-decoration: none; font-weight: 500;
  padding: 14px 22px; border-radius: 999px; box-shadow: 0 14px 30px -10px rgba(75, 49, 50, .6);
  transition: opacity .25s, transform .25s;
}
.float-cta.is-away { opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (min-width: 981px) { .float-cta { display: none; } }

dialog { border: 0; padding: 0; background: transparent; color: inherit; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); }
dialog::backdrop { background: rgba(48, 30, 31, .62); backdrop-filter: blur(3px); }
.zoom img { max-height: calc(100dvh - 48px); max-width: min(92vw, 760px); width: auto; border-radius: 12px; box-shadow: var(--shadow); }
.dialog-close {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: var(--paper-light); color: var(--rose); font-size: 1.6rem; line-height: 1; box-shadow: var(--shadow);
}
.sheet { width: min(640px, calc(100vw - 32px)); }
.sheet-body { background: var(--paper-light); border-radius: 20px; padding: clamp(24px, 5vw, 40px); overflow: auto; max-height: calc(100dvh - 32px); }
.sheet-body h2 { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 72; font-size: 2.2rem; margin-bottom: .5em; }
.sheet-body p { font-size: .97rem; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 24px);
  background: var(--rose-deep); color: var(--paper-light); padding: 12px 20px; border-radius: 999px;
  font-size: .94rem; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1020px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* Order guidance: finished steps get a tick; the next missing thing pulses. */
.order-form fieldset.is-done .legend-n { background: var(--rose); color: var(--paper-light); font-size: 0; }
.order-form fieldset.is-done .legend-n::after { content: '✓'; font-size: .95rem; }
.legend-n { transition: background-color .3s, color .3s; }
.is-target { animation: target-pulse 1.4s ease; border-radius: 14px; }
@keyframes target-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(194, 65, 106, 0); } 30% { box-shadow: 0 0 0 6px rgba(194, 65, 106, .28); } }
.ticket-next { width: 100%; margin-top: 16px; white-space: normal; }
.order-bar a { text-decoration: none; color: inherit; display: block; }
.order-bar .btn { flex: none; }

/* Ana's photos stay whole, framed like prints (she prefers them uncut). */
.zoom-btn { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; }
.mini-photo .zoom-btn img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* The builder: a white cake that takes shape as you choose ------------- */
.builder { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.builder-head { max-width: 660px; margin-bottom: clamp(20px, 3vw, 36px); }
.builder-head p:last-child { color: var(--ink); }
.builder-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.builder-stage { position: sticky; top: calc(var(--top) + 14px); z-index: 4; display: grid; gap: 12px; }
.studio {
  position: relative; height: clamp(360px, calc(100vh - var(--top) - 150px), 620px); border-radius: 26px; overflow: hidden;
  touch-action: pan-y; cursor: grab;
  background: radial-gradient(ellipse 70% 72% at 50% 42%, #fffdf9, #f4ebe1 62%, #eadfd2);
  box-shadow: 0 0 0 1px var(--line), 0 24px 40px -28px rgba(75, 49, 50, .55);
}
.studio canvas { display: block; width: 100%; height: 100%; }
.studio-label { max-width: calc(100% - 32px); overflow-wrap: anywhere; position: absolute; z-index: 1; left: 16px; top: 14px; margin: 0; font-size: .86rem; font-weight: 600; color: var(--rose-deep); background: rgba(255, 253, 249, .85); padding: 5px 12px; border-radius: 999px; pointer-events: none; }
.studio-hint { position: absolute; right: 16px; bottom: 14px; margin: 0; font-size: .78rem; color: var(--muted); pointer-events: none; transition: opacity .4s; }
.builder-head .studio-note { margin: 0; font-size: .78rem; line-height: 1.4; color: var(--muted); }
.studio.was-dragged .studio-hint { opacity: 0; }
.builder-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--paper-light); border-radius: 18px; padding: 12px 12px 12px 18px; box-shadow: var(--shadow); }
.builder-total p { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--ink); }
.builder-total strong { font-family: var(--display); font-variation-settings: 'SOFT' 100, 'opsz' 144; font-weight: 420; font-size: 2rem; line-height: 1; color: var(--rose-deep); }
.builder-total small { color: var(--muted); font-size: .86rem; }
.builder-controls .pills, .builder-controls .choice-grid, .builder-controls .seg, #builder-controls .field, .builder-controls .check-row { scroll-margin-top: var(--builder-top, calc(var(--top) + 16px)); }
.order-form .field, .order-form .consent { scroll-margin-top: calc(var(--top) + 16px); }
.builder-controls fieldset { background: var(--paper-light); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; background: var(--sw); box-shadow: 0 0 0 1px var(--line-strong); display: grid; place-items: center; transition: transform .15s, box-shadow .15s; }
.swatch:hover { transform: scale(1.08); }
.swatch.is-on { box-shadow: 0 0 0 3px var(--rose); }
.swatch span { font-size: .8rem; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
.swatch[data-swatch="branco"] span, .swatch[data-swatch="amarelo"] span, .swatch[data-swatch="prateado"] span { color: var(--rose-deep); text-shadow: none; }
.swatch[data-swatch="branco"] { --sw: #fbf8f3; }
.swatch[data-swatch="rosa"] { --sw: #f2a7b8; }
.swatch[data-swatch="lilas"] { --sw: #c8b2e0; }
.swatch[data-swatch="azul"] { --sw: #a9c8e8; }
.swatch[data-swatch="verde"] { --sw: #b5d1a2; }
.swatch[data-swatch="amarelo"] { --sw: #f5dc85; }
.swatch[data-swatch="coral"] { --sw: #f39a86; }
.swatch[data-swatch="vermelho"] { --sw: #d2414b; }
.swatch[data-swatch="castanho"] { --sw: #8a5a3b; }
.swatch[data-swatch="preto"] { --sw: #2d2727; }
.swatch[data-swatch="dourado"] { --sw: linear-gradient(135deg, #f3dc8a, #c99a2e 55%, #f0d27a); }
.swatch[data-swatch="prateado"] { --sw: linear-gradient(135deg, #f1f2f3, #a9adb2 55%, #e6e8ea); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); gap: 10px; }
.tile { position: relative; border: 1.5px solid var(--line); border-radius: 16px; background: #fffdf9; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tile:hover { transform: translateY(-2px); }
.tile label { display: grid; justify-items: center; text-align: center; gap: 3px; padding: 14px 10px 12px; cursor: pointer; }
.tile input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tile:has(input:focus-visible) { outline: 2px solid var(--raspberry); outline-offset: 2px; }
.tile.is-on { border-color: var(--rose); box-shadow: 0 0 0 2px var(--rose); }
.tile-icon { font-size: 1.9rem; line-height: 1.1; }
.tile-name { font-weight: 600; color: var(--rose-deep); font-size: .9rem; line-height: 1.25; }
.tile-name small { display: block; font-weight: 400; color: var(--muted); font-size: .74rem; }
.tile-price { font-size: .82rem; color: var(--muted); }
.qty-step { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 0 12px; }
.qty-step button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; font-size: 1.15rem; line-height: 1; color: var(--rose); }
.qty-step button:disabled { opacity: .4; cursor: default; }
.qty-step b { min-width: 1.5ch; text-align: center; color: var(--rose-deep); }

.summary-card { display: flex; gap: 14px; align-items: center; background: var(--paper-light); border-radius: 16px; padding: 12px; margin-bottom: 16px; }
.summary-card img { width: 80px; height: 100px; object-fit: cover; border-radius: 12px; flex: none; }
.summary-card div { display: grid; gap: 3px; min-width: 0; }
.summary-card b { color: var(--rose-deep); }
.summary-card small { overflow-wrap: anywhere; color: var(--muted); font-size: .86rem; }
.summary-card .text-link { justify-self: start; margin-top: 4px; font-size: .9rem; }

@media (max-width: 900px) {
  .builder-layout { grid-template-columns: minmax(0, 1fr); }
  .builder-stage {
    top: var(--top); margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 10px; gap: 8px;
    background: rgba(242, 234, 223, .96); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  }
  .studio { height: clamp(110px, 18svh, 180px); border-radius: 18px; }
  .studio-label { position: static; max-width: none; padding: 0; background: none; border-radius: 0; font-size: .76rem; }
  .builder-total { padding: 6px 6px 6px 14px; box-shadow: none; border: 1px solid var(--line); flex-wrap: nowrap; }
  .builder-total p span, .builder-total small { display: none; }
  .builder-total strong { font-size: 1.45rem; }
  .builder-total .btn { min-height: 40px; padding: 0 14px; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
}

/* Seasonal notice Ana switches on in the panel. */
.banner { background: var(--rose-deep); color: #f8ece6; text-align: center; padding: 10px var(--gutter); font-size: .93rem; }
.banner p { margin: 0; }
.banner a { color: var(--pink); font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  /* Keep the cake in view and leave room to use the controls on short screens. */
  .builder-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .studio { grid-column: 1; grid-row: 1 / span 2; height: 110px; }
  .studio-label { grid-column: 2; align-self: end; }
  .builder-total { grid-column: 2; align-self: start; }
  .studio-hint { right: 10px; bottom: 6px; font-size: .7rem; }
}

@media (max-width: 520px) {
  .builder-controls .choice-grid, .builder-controls .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder-controls .qty-step { gap: 8px; }
  .builder-stage, .builder-total { min-width: 0; }
  /* Long labels ("Enviar comprovativo no WhatsApp") wrap instead of widening the page. */
  .btn { max-width: 100%; white-space: normal; text-align: center; padding-block: 8px; line-height: 1.25; }
}
