:root {
  /* paleta do convite: papel marfim, terracota, areia e blush */
  --paper: #f4efe8;
  --ink: #4e3427;
  --ink-soft: rgba(70, 46, 34, .88);
  --ink-mute: rgba(70, 46, 34, .68);
  --accent: #a8613c;
  --accent-deep: #8c4d2e;
  --accent-soft: #c08766;
  --taupe: #6f624b;
  --blush: #e9cbbd;
  --glass: rgba(250, 247, 242, .7);
  --glass-strong: rgba(250, 247, 242, .8);
  --line: rgba(168, 97, 60, .18);
  --line-strong: rgba(168, 97, 60, .34);
  --bg: var(--paper);
  --side: 248px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;
  --sans: "Jost", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- Fundo ---------- */
.backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.scene {
  position: absolute; inset: 0; overflow: hidden;
  filter: blur(1.6px) sepia(.4) saturate(.75) brightness(1.08) contrast(.95);
  opacity: 0; transition: opacity .8s;
}
.scene.is-ready { opacity: 1; }
.scene__interior, .scene__facade, .scene__leaf, .scene__seam, .scene__flash, .scene__fx { position: absolute; }
.scene__interior { background: center / 100% 100% no-repeat; will-change: transform; }
.scene__fx { inset: 0; width: 100%; height: 100%; }
.scene__door { position: absolute; inset: 0; perspective: 1400px; will-change: transform, opacity; }
.scene__facade { background: center / 100% 100% no-repeat; filter: brightness(.8) saturate(.95); }
.scene__leaf { background-repeat: no-repeat; backface-visibility: visible; will-change: transform; }
.scene__leaf--l { transform-origin: left center; }
.scene__leaf--r { transform-origin: right center; }
.scene__seam { width: 2px; opacity: 0; background: #ffe6bf; box-shadow: 0 0 22px 7px rgba(255, 214, 160, .6); }
.scene__flash { inset: 0; opacity: 0; pointer-events: none; }

.backdrop__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 65% at 58% 48%, rgba(246, 240, 232, .22), rgba(246, 240, 232, .45) 70%, rgba(246, 240, 232, .7)),
    linear-gradient(90deg, rgba(244, 239, 232, .5), rgba(244, 239, 232, 0) 35%);
  /* durante a abertura a igreja aparece com as cores reais; depois o véu marfim entra */
  opacity: .12;
  transition: opacity 2.4s var(--ease), background-color .8s var(--ease);
}
body.is-open .backdrop__shade { opacity: 1; }
body:not([data-view="inicio"]) .backdrop__shade { background-color: rgba(244, 239, 232, .25); }
.backdrop__grain {
  position: absolute; inset: -50%; opacity: .06; pointer-events: none; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 50% { transform: translate(3%, -2%); } }

/* ---------- Barra lateral ---------- */
.sidebar {
  position: fixed; z-index: 20; top: 16px; bottom: 16px; left: 16px; width: var(--side);
  display: flex; flex-direction: column;
  padding: 28px 18px 22px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  opacity: 0; transform: translateX(-12px);
}
body.is-open .sidebar { animation: in-left 1s var(--ease) .4s forwards; }
@keyframes in-left { to { opacity: 1; transform: none; } }

.sidebar__mono {
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
  text-decoration: none; font-family: var(--serif); font-size: 30px; letter-spacing: .04em; color: var(--accent);
  padding-bottom: 22px; margin-bottom: 18px; border-bottom: 1px solid var(--line);
}
.sidebar__mono i { font-family: var(--script); font-style: normal; color: var(--accent-soft); font-size: 26px; }

.sidebar__nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar__nav a {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 12px; text-decoration: none;
  font-size: 15px; font-weight: 400; letter-spacing: .02em; color: var(--ink);
  transition: background .3s, color .3s;
}
.sidebar__nav a:hover { color: var(--ink); background: rgba(168, 97, 60, .06); }
.sidebar__nav a[aria-current="page"] { color: var(--accent-deep); font-weight: 500; background: rgba(168, 97, 60, .12); }
.sidebar__nav a[aria-current="page"]::before {
  content: ""; position: absolute; left: -18px; top: 50%; width: 3px; height: 20px; margin-top: -10px;
  border-radius: 0 3px 3px 0; background: var(--accent);
}
.sidebar__nav svg {
  width: 19px; height: 19px; flex: none;
  fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.sidebar__foot {
  margin-top: auto; text-align: center; font-family: var(--serif); font-size: 15px;
  letter-spacing: .3em; font-variant-numeric: lining-nums; color: var(--taupe);
}

.menu-toggle { display: none; }

/* ---------- Palco ---------- */
.stage {
  position: relative; z-index: 10;
  min-height: 100vh; min-height: 100dvh;
  margin-left: calc(var(--side) + 32px);
  padding: 48px 48px 64px;
  display: grid;
}
.view { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.view.is-entering { animation: view-in .7s var(--ease) backwards; }
@keyframes view-in { from { opacity: 0; transform: translateY(14px); } }

.view__head { text-align: center; margin-bottom: 32px; max-width: 560px; }
.view__head h2 {
  margin: 0; font: 300 clamp(40px, 6vw, 64px)/1 var(--serif); letter-spacing: .01em; color: var(--accent);
}
.view__lead { color: var(--ink-soft); margin: 14px 0 0; }
.eyebrow {
  margin: 0 0 12px; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--taupe);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; text-align: center; max-width: 640px;
  text-shadow: 0 0 2px rgba(250, 247, 242, .9), 0 1px 18px rgba(250, 247, 242, .95);
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -60px -110px;
  background: radial-gradient(closest-side, rgba(248, 243, 236, .82), rgba(248, 243, 236, .55) 60%, rgba(248, 243, 236, 0));
  pointer-events: none;
}
.reveal { opacity: 0; transform: translateY(16px); }
body.is-open .reveal { animation: rise 1.1s var(--ease) forwards; animation-delay: calc(var(--d) * .14s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero__quote {
  margin: 0 auto 26px; max-width: 420px;
  font: italic 400 20px/1.5 var(--serif); color: var(--ink-soft);
}
.hero__names {
  margin: 0; font: 400 clamp(56px, 10vw, 112px)/.95 var(--script); font-weight: 400; color: var(--accent);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: .25em;
}
.hero__names em { font: italic 300 .5em var(--serif); color: var(--accent-soft); }
.hero__invite { margin: 26px auto 34px; max-width: 440px; color: var(--ink); font-size: 16px; letter-spacing: .01em; }

.date { display: flex; align-items: center; justify-content: center; gap: 22px; font-variant-numeric: lining-nums; }
.date__day { font: 400 76px/1 var(--serif); font-variant-numeric: lining-nums; color: var(--accent); padding: 0 24px; border-left: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong); }
.date__side { display: flex; flex-direction: column; gap: 6px; width: 110px; }
.date__side b { font-size: 13px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); }
.date__side small { font: 400 17px/1 var(--serif); letter-spacing: .08em; color: var(--accent); }
.date__side:first-child { text-align: right; align-items: flex-end; }
.date__side:last-child { text-align: left; align-items: flex-start; }
/* compensa o espaçamento extra depois da última letra */
.date__side:first-child b { margin-right: -.26em; }

.countdown { display: flex; justify-content: center; gap: 10px; margin: 34px 0 36px; }
.countdown div {
  width: 70px; padding: 10px 0 8px; border-radius: 14px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.countdown b { display: block; font: 500 26px/1.1 var(--serif); font-variant-numeric: lining-nums; color: var(--accent); }
.countdown small { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px; border-radius: 999px; cursor: pointer;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  position: relative; font-weight: 500; color: var(--accent-deep);
  border: 1px solid var(--line-strong); background: rgba(250, 247, 242, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 2px rgba(78, 52, 39, .06);
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease),
    box-shadow .35s var(--ease), transform .35s var(--ease), opacity .3s;
}
/* contorno: preenche de terracota e levanta */
.btn:hover {
  color: var(--paper); background: var(--accent); border-color: var(--accent);
  transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(140, 77, 46, .55);
}
.btn:active { transform: translateY(0) scale(.98); box-shadow: 0 2px 6px -2px rgba(140, 77, 46, .4); transition-duration: .1s; }
/* principal: escurece, levanta e ganha brilho suave */
.btn--solid { background: var(--accent); color: var(--paper); border-color: var(--accent); box-shadow: 0 6px 16px -8px rgba(140, 77, 46, .55); }
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: 0 14px 28px -12px rgba(140, 77, 46, .7); }
/* texto: sublinhado que cresce a partir do centro */
.btn--ghost { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; color: var(--ink); }
.btn--ghost::after {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: 11px; height: 1px;
  background: currentColor; transform: scaleX(0); transition: transform .35s var(--ease);
}
.btn--ghost:hover { color: var(--accent-deep); background: transparent; border-color: transparent; box-shadow: none; transform: none; }
.btn--ghost:hover::after { transform: scaleX(1); }
.btn--ghost:active { transform: scale(.98); box-shadow: none; }
@media (hover: none) { .btn:hover { transform: none; } }
.btn--block { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.cal { position: relative; display: inline-flex; }
.cal__menu {
  position: absolute; z-index: 30; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  min-width: 230px; padding: 6px; border-radius: 16px;
  background: rgba(252, 249, 245, .97); border: 1px solid var(--line);
  box-shadow: 0 18px 40px -18px rgba(78, 52, 39, .5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  text-shadow: none; animation: rise .25s var(--ease) both;
}
.cal__menu a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
  font-size: 14px; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.cal__menu a:hover, .cal__menu a:focus-visible { background: rgba(168, 97, 60, .1); color: var(--accent-deep); outline: none; }
.cal__menu svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Cronograma: carrossel de cards ---------- */
.book {
  --cw: min(300px, 68vw, (100dvh - 270px) * .66);
  --gap: calc(var(--cw) * 1.02);
  position: relative; width: 100%; max-width: 1180px;
  display: flex; align-items: center; justify-content: space-between;
}
.deck {
  position: relative; flex: 1; align-self: stretch; height: calc(var(--cw) * 1.5 + 60px); min-height: 400px;
  overflow: hidden; overflow: clip;
  touch-action: pan-y; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.card {
  --o: 0; --a: 0;
  position: absolute; top: 30px; bottom: 30px; left: 50%; width: var(--cw); margin-left: calc(var(--cw) / -2);
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .5));
  border: 1px solid rgba(168, 97, 60, .2);
  box-shadow: 0 30px 60px -34px rgba(78, 52, 39, .4), inset 0 1px 0 rgba(255, 255, 255, .6);
  backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
  transform: translateX(calc(var(--o) * var(--gap))) scale(calc(1 - var(--a) * .13));
  transition: transform .8s var(--ease), opacity .8s var(--ease), filter .8s var(--ease);
  will-change: transform, opacity;
}
.card[data-a="0"] { z-index: 5; opacity: 1; cursor: default; }
.card[data-a="1"] { z-index: 4; opacity: .42; filter: saturate(.6); }
.card[data-a="2"] { z-index: 3; opacity: .12; filter: saturate(.3); }
.card[data-a="far"] { z-index: 1; opacity: 0; pointer-events: none; }
.card:not([data-a="0"]) .card__body { opacity: .7; }

.card__img {
  position: relative; flex: 0 0 46%; margin: 10px 10px 0; border-radius: 14px;
  background: rgba(168, 97, 60, .06) center / cover no-repeat;
}
.card__img::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(78, 52, 39, 0) 60%, rgba(78, 52, 39, .22));
}
.card__num {
  position: absolute; z-index: 1; top: 12px; left: 14px;
  padding: 4px 10px; border-radius: 99px; background: rgba(250, 247, 242, .82);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 400 11px var(--sans); letter-spacing: .24em; color: var(--accent);
}
.card__body { flex: 1; display: flex; flex-direction: column; padding: 18px 22px 20px; transition: opacity .6s; }
.card__time { display: flex; align-items: baseline; gap: 10px; font: 400 46px/1 var(--serif); font-variant-numeric: lining-nums; color: var(--accent); }
.card__until { font: 400 11px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--ink-mute); }
.card__title { margin: 8px 0 8px; font: 400 26px/1.1 var(--serif); color: var(--taupe); }
.card__text { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 12px; font: italic 300 14px var(--serif); color: var(--ink-mute); }
.card__rule { width: 28px; height: 1px; background: var(--line-strong); }

.book__arrow {
  flex: none; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s, opacity .3s;
}
.book__arrow:hover { background: rgba(168, 97, 60, .14); }
.book__arrow[disabled] { opacity: .25; cursor: default; }
.book__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.book__dots { display: flex; gap: 8px; margin-top: 34px; }
.book__dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 99px; cursor: pointer;
  border: 0; background: var(--line-strong); transition: width .4s var(--ease), background .4s;
}
.book__dots button[aria-selected="true"] { width: 26px; background: var(--accent); }

/* ---------- Formulários ---------- */
.panel {
  width: min(560px, 100%);
  padding: 32px; border-radius: 22px;
  background: var(--glass-strong); border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.1); -webkit-backdrop-filter: blur(20px) saturate(1.1);
}
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block; margin-bottom: 8px; padding: 0;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft);
}
.field small { letter-spacing: .05em; text-transform: none; color: var(--ink-mute); }
input, textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  background: rgba(168, 97, 60, .06); border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
}
input::placeholder, textarea::placeholder { color: var(--ink-mute); }
input:focus, textarea:focus { outline: none; border-color: var(--accent); background: rgba(168, 97, 60, .1); }
textarea { resize: vertical; }
.is-invalid { border-color: #c4553a !important; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .chip span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 46px; padding: 8px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(168, 97, 60, .04);
  font-size: 14px; letter-spacing: .02em; text-transform: none; color: var(--ink-soft);
  transition: all .25s;
}
.seg label, .chip { margin: 0; position: relative; }
.seg input:checked + span, .chip input:checked + span {
  color: var(--paper); background: var(--accent); border-color: var(--accent);
}
.seg input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 46px; height: 46px; border: 0; background: rgba(168, 97, 60, .06); cursor: pointer; font-size: 20px; }
.stepper button:hover { background: rgba(168, 97, 60, .14); }
.stepper input { width: 56px; text-align: center; border: 0; border-radius: 0; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.form--wide { width: min(860px, 100%); }
.palette { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 22px; padding: 14px 18px; border-radius: 14px; background: rgba(168, 97, 60, .05); border: 1px solid var(--line); }
.palette__title { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.palette__list { display: flex; flex-wrap: wrap; gap: 16px; }
.palette__item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.palette__item i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(78, 52, 39, .25); }

.gifts__group { margin: 18px 0 10px; font: 400 22px/1 var(--serif); color: var(--accent); }
.gifts__group:first-child { margin-top: 4px; }
.gifts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 1100px) { .gifts { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 760px) { .gifts { grid-template-columns: repeat(3, 1fr); } }
.gift { position: relative; display: flex; flex-direction: column; cursor: pointer; border-radius: 14px; overflow: hidden; background: rgba(168, 97, 60, .05); border: 1px solid var(--line); transition: border-color .25s, background .25s, transform .2s; }
.field .gift { display: flex; margin: 0; padding: 0; font-size: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.gift:hover { border-color: var(--line-strong); }
.gift:active { transform: scale(.98); }
.gift input { position: absolute; opacity: 0; pointer-events: none; }
.gift__img { display: grid; place-items: center; width: 100%; aspect-ratio: 5 / 4; background-color: #f2eee8; background-repeat: no-repeat; }
.gift__name {
  flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  padding: 10px 10px 12px; font-size: 13px; line-height: 1.3; text-align: center; color: var(--ink);
}
.gift__label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.gift__check { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .75); border: 1.5px solid rgba(168, 97, 60, .55); transition: all .25s; }
.gift input:checked ~ .gift__check { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; border-color: var(--accent); }
.gift:has(input:checked) { border-color: var(--accent); background: rgba(168, 97, 60, .1); }
.gift:has(input:checked) .gift__name { color: var(--ink); }
.gift input:focus-visible ~ .gift__img { outline: 2px solid var(--accent); outline-offset: -2px; }
.gift--other .gift__img { background: rgba(168, 97, 60, .06); }
.gift--other svg { width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; }

.step { padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
.step:last-of-type { border-bottom: 0; margin-bottom: 6px; padding-bottom: 0; }
.step__title { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font: 400 24px/1.1 var(--serif); color: var(--accent); }
.step__title i { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; font: 500 14px/1 var(--sans); font-style: normal; color: var(--paper); background: var(--accent); }
.step__hint { margin: 8px 4px 0; font-size: 13px; color: var(--ink-mute); }
.row2 { display: grid; grid-template-columns: 1fr 1.6fr; gap: 14px; margin-top: 16px; }
.row2 .field { margin-bottom: 0; }

.search { position: relative; display: flex; gap: 8px; align-items: center; }
.search input { flex: 1; }
.search__go { flex: none; }

.results { margin-top: 16px; }
.results__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 2px 10px; font-size: 13px; color: var(--ink-soft); }
.results__head a { color: var(--accent-deep); font-weight: 500; text-decoration: none; white-space: nowrap; }
.results__head a:hover { text-decoration: underline; }
.results__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1100px) { .results__grid { grid-template-columns: repeat(3, 1fr); } }
.product {
  display: flex; flex-direction: column; padding: 0; overflow: hidden; cursor: pointer; text-align: left;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .72);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s var(--ease);
}
.product:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(78, 52, 39, .45); }
.product__img { display: block; width: 100%; aspect-ratio: 1; background: #fff center / contain no-repeat; border-bottom: 1px solid var(--line); }
.product__body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; }
.product__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; font-size: 13px; line-height: 1.3; color: var(--ink); }
.product__store { font-size: 11px; letter-spacing: .04em; color: var(--ink-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product__price { margin-top: auto; font: 500 19px/1.1 var(--serif); font-variant-numeric: lining-nums; color: var(--accent); }
.results__skel { aspect-ratio: .72; border-radius: 14px; background: linear-gradient(100deg, rgba(255,255,255,.4) 30%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.4) 70%) 0 0 / 300% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { to { background-position: -150% 0; } }
.results__msg { grid-column: 1 / -1; padding: 16px; text-align: center; border-radius: 14px; border: 1px dashed var(--line-strong); color: var(--ink-soft); }

.picked {
  display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px; border-radius: 16px;
  border: 1.5px solid var(--accent); background: rgba(255, 255, 255, .8);
}
.picked__img { flex: none; width: 72px; height: 72px; border-radius: 10px; background: #fff center / contain no-repeat; border: 1px solid var(--line); }
.picked__info { flex: 1; min-width: 0; }
.picked__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; color: var(--ink); }
.picked__meta { margin-top: 2px; font-size: 12px; color: var(--ink-mute); }
.picked__price { flex: none; font: 500 24px/1 var(--serif); font-variant-numeric: lining-nums; color: var(--accent); }
.picked__x { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink-soft); }
.picked__x:hover { background: rgba(168, 97, 60, .1); }

.suggest-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 18px; padding: 14px 18px; cursor: pointer;
  border-radius: 14px; border: 1px dashed var(--line-strong); background: rgba(255, 255, 255, .45);
  font-size: 14px; color: var(--ink-soft); text-align: left; transition: background .3s, border-color .3s;
}
.suggest-toggle:hover { background: rgba(255, 255, 255, .7); border-color: var(--accent); }
.suggest-toggle b { margin-left: auto; font-weight: 500; color: var(--accent-deep); }
.suggest-toggle svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.suggest-toggle[aria-expanded="true"] { border-style: solid; }
.suggest-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.suggest { margin-top: 14px; animation: view-in .5s var(--ease) backwards; }
.suggest__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.suggest .palette { margin: 0; padding: 8px 14px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button {
  padding: 8px 16px; border-radius: 999px; cursor: pointer; font-size: 13px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .55); color: var(--ink);
  transition: all .25s;
}
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; pointer-events: none; }
.search input { padding-left: 44px; border-radius: 999px; background: rgba(255, 255, 255, .6); }
.gifts__empty { margin: 0 0 12px; padding: 14px 18px; text-align: center; border-radius: 14px; border: 1px dashed var(--line-strong); color: var(--ink-soft); }
.gift__price { display: block; margin-top: 2px; font: 500 15px/1 var(--serif); font-variant-numeric: lining-nums; color: var(--accent); }

.summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 0 0 20px; padding: 14px 18px; border-radius: 14px;
  background: rgba(168, 97, 60, .08); border: 1px solid var(--line);
  color: var(--ink-soft);
}
.summary b { font: 500 26px/1 var(--serif); font-variant-numeric: lining-nums; color: var(--accent); }

.pix { text-align: center; padding: 8px 0 4px; }
.pix h3 { margin: 0 0 6px; font: 400 40px/1 var(--script); color: var(--accent); }
.pix__value { margin: 0 0 4px; font: 500 34px/1 var(--serif); font-variant-numeric: lining-nums; color: var(--accent-deep); }
.pix__for { margin: 0 0 18px; color: var(--ink-soft); }
.pix__qr { display: inline-grid; place-items: center; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 30px -18px rgba(78, 52, 39, .45); }
.pix__qr img, .pix__qr canvas { display: block; width: 220px; height: 220px; image-rendering: pixelated; }
.pix__steps { margin: 16px auto 14px; max-width: 380px; font-size: 14px; color: var(--ink-soft); }
.pix__code { display: flex; gap: 8px; margin: 0 auto 10px; max-width: 460px; }
.pix__code input { font: 400 12px/1.3 ui-monospace, Consolas, monospace; color: var(--ink-soft); }
.pix__code .btn { flex: none; }
.pix__to { margin: 6px 0 20px; font-size: 13px; color: var(--ink-mute); }
.pix__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.form__status { min-height: 1.4em; margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--ink-soft); }
.form__status.is-ok { color: #5f7d4c; }
.form__status.is-err { color: #b0462c; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__hint { margin: 4px 0 0; text-align: center; font-size: 12px; color: var(--ink-mute); }

.thanks { text-align: center; padding: 24px 0 8px; }
.thanks h3 { margin: 0 0 8px; font: 400 44px/1 var(--script); color: var(--accent); }
.thanks p { margin: 0 0 22px; color: var(--ink-soft); }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  :root { --side: 268px; }
  .menu-toggle {
    position: fixed; z-index: 30; top: 14px; left: 14px;
    display: grid; place-content: center; gap: 6px;
    width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
    background: var(--glass); border: 1px solid var(--line-strong);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    opacity: 0;
  }
  body.is-open .menu-toggle { animation: in-left .8s var(--ease) .4s forwards; }
  .menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .sidebar {
    top: 0; bottom: 0; left: 0; border-radius: 0 22px 22px 0; padding-top: 76px;
    background: rgba(250, 247, 242, .95);
    animation: none; opacity: 1; transform: translateX(-105%);
    transition: transform .5s var(--ease);
  }
  body.menu-open .sidebar { transform: none; }
  body.is-open .sidebar { animation: none; }
  .sidebar__mono { display: none; }

  .stage { margin-left: 0; padding: 84px 16px 48px; }
  .view { justify-content: flex-start; }
  #view-inicio { justify-content: center; }
}

@media (max-width: 560px) {
  .date { gap: 12px; }
  .date__day { font-size: 58px; padding: 0 16px; }
  .date__side { width: 84px; }
  .date__side b { font-size: 11px; letter-spacing: .2em; }
  .date__side:first-child b { margin-right: -.2em; }
  .hero::before { inset: -40px -24px; }
  .countdown div { width: 62px; }
  .book { --cw: min(270px, 74vw); --gap: calc(var(--cw) * .98); margin: 0 -16px; width: calc(100% + 32px); }
  .book__arrow { position: absolute; z-index: 20; bottom: -70px; }
  .book__arrow--prev { left: calc(50% - 64px); }
  .book__arrow--next { right: calc(50% - 64px); }
  .book__dots { margin-top: 92px; }
  .panel { padding: 22px 18px; }
  .gifts { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .search { flex-wrap: wrap; }
  .search__go { width: 100%; }
  .results__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .picked { flex-wrap: wrap; }
  .picked__info { flex-basis: calc(100% - 140px); }
  .row2 { grid-template-columns: 1fr; }
  .suggest__bar { flex-direction: column; align-items: stretch; }
  .actions .btn, .actions .cal { flex: 1 1 100%; }
  .cal .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
