:root {
  color-scheme: light;
  --paper: #f8f3ed;
  --sheet: #fffcf8;
  --ink: #271b2a;
  --muted: #62545e;
  --line: #dfd4d7;
  --wine: #8d2543;
  --wine-hover: #701832;
  --pink: #f7e3e5;
  --plum: #292038;
  font: 100%/1.5 "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  accent-color: var(--wine);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; }
::selection { color: var(--ink); background: #f3bbca; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #925375; outline-offset: 3px; }
h1[tabindex="-1"] { scroll-margin-block-start: 1rem; }
h1[tabindex="-1"]:focus-visible { outline: none; }
a { color: var(--wine); text-underline-offset: .2em; }
.top { border-bottom: 1px solid var(--line); }
.top-inner, .layout { max-width: 1280px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 72px); }
.top-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-size: 1rem; text-decoration: none; font-weight: 750; letter-spacing: -.025em; }
.layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(30px, 6vw, 84px); align-items: start; padding-block: clamp(28px, 6vw, 76px); }
.cover { isolation: isolate; overflow: hidden; position: relative; display: grid; align-content: end; aspect-ratio: 4 / 5; min-height: 440px; border-radius: 15px; padding: clamp(24px, 4vw, 46px); background: var(--plum) url(/intercambio.webp) center 46% / cover; color: #fff6ed; box-shadow: 0 16px 30px #271b2a24; }
.cover::before { content: ""; z-index: -1; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, #211527 90%); }
.cover-title { font: normal clamp(2.4rem, 4.25vw, 4.1rem)/.97 "New York", "Iowan Old Style", Palatino, Georgia, serif; max-width: 9ch; letter-spacing: -.035em; margin: 0 0 .65rem; text-wrap: balance; }
.cover p:last-child { margin: 0; color: #f6e1e9; max-width: 34ch; }
.workspace { min-width: 0; }
.steps { list-style: none; margin: 0 0 clamp(24px, 4vw, 46px); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.step { display: grid; grid-template-columns: 1fr; align-content: start; gap: .4rem; padding: .6rem 0 0; border-top: 2px solid var(--line); font-size: .875rem; color: var(--muted); line-height: 1.2; }
.step[aria-current] { border-color: var(--wine); font-weight: 750; color: var(--wine); }
.step.done { border-color: #b98594; }
h1, h2 { font-family: "New York", "Iowan Old Style", Palatino, Georgia, serif; font-weight: 500; letter-spacing: -.035em; line-height: 1.05; text-wrap: balance; }
h1 { margin: 0 0 .65rem; font-size: clamp(2.4rem, 4.5vw, 4.55rem); overflow-wrap: anywhere; }
h2 { margin: 0 0 .65rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.intro { margin: 0 0 1.8rem; color: var(--muted); max-width: 45ch; }
.section { border: 0; padding: 0; min-width: 0; margin: 0 0 1.35rem; }
label { font-size: .925rem; font-weight: 700; display: grid; gap: .4rem; min-width: 0; }
input:not([type=checkbox]), select { color: var(--ink); background: var(--sheet); width: 100%; min-height: 47px; border: 1px solid #917d89; border-radius: 9px; padding: .6rem .72rem; caret-color: var(--wine); }
input::placeholder { color: #71636c; }
.entry { display: grid; grid-template-columns: 1.1fr 1fr; gap: .65rem; }
.control { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; gap: .4rem; border: 1px solid transparent; border-radius: 9px; padding: .54rem .9rem; font-weight: 700; background: none; color: var(--wine); cursor: pointer; text-decoration: none; text-align: center; line-height: 1.25; }
.control:hover { background: var(--pink); }
.control.primary { background: var(--wine); color: #fff7ee; padding-inline: 1.2rem; }
.control.primary:hover { background: var(--wine-hover); }
.control.outline { border-color: #c89ba9; }
.control:disabled { opacity: .58; cursor: default; }
.control.small { font-size: .91rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-block: 1rem; }
.actions.end { padding-top: 1.1rem; border-top: 1px solid var(--line); justify-content: space-between; }
.list { list-style: none; padding: 0; margin-block: 1rem; }
.row { display: flex; min-height: 50px; border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between; gap: .35rem; flex-wrap: wrap; }
.row strong, .row span { overflow-wrap: anywhere; min-width: min(100%, 8ch); }
.row-actions { display: flex; flex-wrap: wrap; }
.note { color: var(--muted); font-size: .925rem; }
.error { border-radius: 10px; padding: .85rem 1rem; color: #73152c; background: #fbe4e9; }
.check { display: flex; align-items: center; min-height: 44px; margin-top: .5rem; }
.check input { width: 18px; height: 18px; }
.guest .workspace { align-self: center; }
.guest .cover { min-height: 360px; max-height: 540px; }
.reveal { background: var(--sheet); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 4vw, 48px); animation: reveal .5s cubic-bezier(.16, 1, .3, 1) both; }
.reveal-mark { width: 48px; height: 48px; margin-bottom: 1.15rem; }
@keyframes reveal { from { opacity: .3; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation-duration: .001ms !important; scroll-behavior: auto !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; gap: 27px; padding-block: 22px 40px; }
  .cover { aspect-ratio: auto; min-height: 180px; padding: 20px; background-position: center 50%; }
  .cover-title { font-size: 2.45rem; }
  .cover p:last-child { display: none; }
  .cover::before { inset: 5% 0 0; }
  .guest .cover { min-height: 145px; }
  .top-inner { min-height: 60px; }
  .steps { margin-bottom: 28px; }
}
@media (max-width: 395px) { .entry { grid-template-columns: 1fr; } }

@media (max-width: 350px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }
