/* Anto & Nico — sitio de ejemplo */
:root {
  --orange: #FF5A1F;
  --yellow: #FFD60A;
  --navy: #1B2A4A;
  --ink: #232323;
  --grey: #8A8A8A;
  --grey-light: #F4F4F4;
  --line: #E4E4E4;
  --white: #FFFFFF;

  --condensed: "Archivo", "Arial Narrow", sans-serif;
  --sans: "Sora", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 2.2vw, 32px);
  --radius: 12px;
  --top: 72px;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='8' viewBox='0 0 16 8'%3E%3Cpath d='M0 4 Q4 0 8 4 T16 4' fill='none' stroke='%23D6D6D6' stroke-width='1.5'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--top); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
.ico { width: 1em; height: 1em; vertical-align: -.14em; flex: none; }

/* ---------- Tipografía ---------- */
.h-light { font-weight: 300; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.1; letter-spacing: -.01em; color: #6B6B6B; }
.h-light--small { font-size: clamp(20px, 2vw, 28px); line-height: 1.3; margin-top: 20px; max-width: 32ch; }
.h-light b { color: var(--ink); font-weight: 400; }
.h-condensed, .ticket__title, .hero__title, .biglogo, .footer__claim, .modal__title, .gift__title {
  font-family: var(--condensed);
  font-stretch: 62%;
  font-variation-settings: "wdth" 62;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.h-condensed { font-size: clamp(64px, 10vw, 150px); line-height: .85; color: var(--ink); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #FFE14D; }
.btn--line { background: transparent; border: 1.5px solid var(--line); }
.btn--line:hover { border-color: var(--ink); }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: wait; }

.round {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  flex: none;
  transition: transform .2s;
}
.round svg { width: 22px; height: 22px; }
.round:hover { transform: scale(1.06); }
.round--yellow { background: var(--yellow); border-color: var(--yellow); }
.round--sm { width: 48px; height: 48px; }
.round--lg { width: 80px; height: 80px; }
.round--lg svg { width: 28px; height: 28px; }
.carousel-nav .round:first-child svg { transform: rotate(180deg); }

/* ---------- Barra superior ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--top);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  transition: background .3s, color .3s, box-shadow .3s;
  color: var(--white);
}
.topbar.is-solid { background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.logo {
  font-family: var(--condensed);
  font-variation-settings: "wdth" 125;
  font-weight: 900;
  font-size: 30px;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: -.02em;
}
.topbar:not(.is-solid) .logo { color: var(--white); }
.menu { display: flex; gap: clamp(16px, 2.6vw, 40px); margin-left: auto; font-size: 15px; }
.menu a { text-decoration: none; }
.menu a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Portada ---------- */
.hero { text-shadow: 0 1px 12px rgba(120, 40, 20, .18); }
.hero .btn { text-shadow: none; }
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: var(--white); }
.hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__content { position: relative; padding: calc(var(--top) + 8px) var(--gutter) 0; }
.hero__title { line-height: .8; }
.fit-row { display: block; }
.fit { display: block; width: max-content; white-space: nowrap; font-size: 20vw; }
.hero__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.hero__sub { font-weight: 400; font-size: clamp(22px, 2.6vw, 38px); text-transform: uppercase; letter-spacing: .01em; }
.hero__cta { display: flex; align-items: center; gap: 16px; }
.hero__date { font-family: var(--condensed); font-variation-settings: "wdth" 62; font-weight: 800; font-size: 18px; text-transform: uppercase; }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 150px) var(--gutter) 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; }
.carousel-nav { display: flex; gap: 10px; }

/* Programa: tarjetas tipo ticket en carrusel */
.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(300px, 34vw, 520px);
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
}
.track::-webkit-scrollbar { display: none; }
.trip {
  scroll-snap-align: start;
  border-radius: var(--radius);
  padding: 16px;
  min-height: clamp(420px, 40vw, 560px);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.trip::after { content: ""; position: absolute; border-radius: 50%; width: 46%; aspect-ratio: 1; right: -6%; bottom: -8%; }
.trip--sunset { background: linear-gradient(#F6C9A8, #FF8A5C); }
.trip--sunset::after { background: var(--yellow); }
.trip--sea { background: linear-gradient(#BFE3F2, #2B8FBF); }
.trip--sea::after { background: var(--white); opacity: .6; }
.trip--sand { background: linear-gradient(#F3E6CF, #E8C58F); }
.trip--sand::after { background: var(--orange); }
.trip--night { background: linear-gradient(#2B4C7E, #1B2A4A); }
.trip--night::after { background: var(--yellow); width: 22%; right: 12%; bottom: 14%; }
.trip--green { background: linear-gradient(#CDEBB0, #3E8E6A); }
.trip--green::after { background: var(--white); opacity: .5; }

.ticket { position: relative; z-index: 1; background: var(--white); border-radius: 8px; padding: 16px 18px 14px; }
.ticket__place { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #555; margin-bottom: 10px; }
.dot { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.dot--orange { background: var(--orange); }
.dot--blue { background: #2B8FBF; }
.dot--yellow { background: var(--yellow); }
.dot--green { background: #3E8E6A; }
.ticket__title { font-size: clamp(30px, 2.8vw, 40px); line-height: .92; }
.ticket__meta { font-family: var(--condensed); font-variation-settings: "wdth" 62; font-weight: 800; font-size: 13px; text-transform: uppercase; margin-top: 12px; letter-spacing: .02em; }
.ticket__wave { height: 8px; background: var(--wave) repeat-x; margin: 16px 0 12px; }
.ticket__foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.ticket__dates { display: flex; gap: 0; }
.ticket__dates div { padding: 0 16px; border-left: 1px solid var(--line); }
.ticket__dates div:first-child { padding-left: 0; border-left: 0; }
.ticket__dates small { display: block; font-size: 12px; color: #555; }
.ticket__dates b { font-weight: 400; font-size: 22px; letter-spacing: -.01em; }
.price { background: var(--yellow); border-radius: 999px; padding: 6px 14px; font-weight: 500; font-size: 15px; white-space: nowrap; }

/* Historia */
.statement { font-weight: 300; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.18; max-width: 26ch; color: var(--ink); margin-bottom: clamp(48px, 6vw, 80px); }
.statement span { color: #A0A0A0; }
.route { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stop { background: var(--grey-light); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; min-height: 400px; }
.stop__year { font-weight: 300; font-size: 44px; letter-spacing: -.02em; color: #6B6B6B; line-height: 1; }
.stop__handle { font-size: 14px; color: #A0A0A0; margin: 8px 0 18px; }
.stop__text { color: #8A8A8A; font-size: 16px; }
.stop__wave { height: 8px; background: var(--wave) repeat-x; margin: auto 0 16px; padding-top: 24px; background-position: 0 100%; }
.stop__foot { display: flex; justify-content: space-between; align-items: center; color: #8A8A8A; font-size: 16px; }
.stop__foot span:first-child { display: flex; gap: 8px; align-items: center; }
.stop__foot .ico { color: var(--orange); }

/* Lugar */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; color: var(--white); }
.tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.tile:hover .tile__bg { transform: scale(1.04); }
.tile::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(27, 42, 74, .75)); }
.tile__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(20px, 3vw, 36px); }
.tile h3 { font-weight: 300; font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -.01em; line-height: 1; margin-bottom: 10px; }
.tile p { max-width: 40ch; font-size: 16px; opacity: .92; }

/* ---------- Regalos ---------- */
.gifts__intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.fund { background: var(--grey-light); border-radius: var(--radius); padding: 24px; }
.fund__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.fund__head span { color: #6B6B6B; }
.fund__head b { font-family: var(--condensed); font-variation-settings: "wdth" 62; font-weight: 900; font-size: 40px; line-height: 1; }
.fund__bar { height: 14px; background: var(--white); border-radius: 999px; overflow: hidden; }
.fund__bar span { display: block; height: 100%; background: var(--orange); border-radius: 999px; transition: width 1s cubic-bezier(.2, .7, .2, 1); }
.fund__note { font-size: 14px; color: #6B6B6B; margin-top: 12px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 9px 18px; cursor: pointer; font-size: 15px; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.gift {
  text-align: left;
  border: 0;
  padding: 0;
  background: var(--grey-light);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .2s;
}
.gift:hover { transform: translateY(-3px); }
.gift:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.gift__art { width: 100%; aspect-ratio: 5 / 4; display: block; transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
.gift:hover .gift__art { transform: scale(1.04); }
.gift__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.gift__title { font-size: 28px; line-height: .95; margin-top: 8px; }
.gift__body .ticket__wave { margin: 14px 0 12px; }
.gift__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.gift__foot .round { pointer-events: none; }
.gift[hidden] { display: none; }
.gifts__note { margin-top: 28px; color: #6B6B6B; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; color: var(--ink); }

/* ---------- Confirmar ---------- */
.rsvp__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.form { display: grid; gap: 22px; background: var(--grey-light); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.field { display: grid; gap: 8px; }
.field > span, .field-label { font-size: 14px; color: #6B6B6B; }
.field input {
  font: inherit;
  font-size: 18px;
  border: 0;
  border-bottom: 1.5px solid #CFCFCF;
  background: transparent;
  padding: 8px 0;
  border-radius: 0;
}
.field input:focus { outline: none; border-bottom-color: var(--orange); }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; border: 1.5px solid #D6D6D6; background: var(--white); border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.choice input:checked + span { background: var(--yellow); border-color: var(--yellow); }
.choice input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.if-yes { display: grid; gap: 22px; }
.if-yes[hidden] { display: none; }
.form .btn { justify-self: start; }
.form__status { min-height: 1.4em; color: var(--orange); }

/* ---------- Preguntas ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.faq__list details { border-bottom: 1.5px solid var(--line); }
.faq__list details[open] { border-top: 1.5px solid var(--orange); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 32px);
  letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; }
.faq details[open] summary { color: var(--orange); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 24px; color: #8A8A8A; }

/* ---------- Pie ---------- */
.footer { padding: clamp(96px, 12vw, 180px) var(--gutter) 0; }
.footer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(64px, 10vw, 140px); }
.footer__claim { font-size: clamp(32px, 3.4vw, 48px); line-height: .9; }
.biglogo { color: var(--orange); line-height: .78; font-variation-settings: "wdth" 125; margin-bottom: 40px; }
.biglogo .fit { font-size: 30vw; }
.footer__cols { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 24px; padding-bottom: 40px; font-size: 15px; }
.footer__cols small { display: block; font-family: var(--condensed); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; color: #6B6B6B; margin-bottom: 10px; }
.footer__cols a { text-decoration: none; }
.footer__bar {
  position: relative;
  margin: 0 calc(var(--gutter) * -1);
  background: #2E2E2E;
  color: #B5B5B5;
  padding: 26px var(--gutter) 22px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.footer__bar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -9px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' viewBox='0 0 20 10'%3E%3Cpath d='M0 10 L10 0 L20 10 Z' fill='%232E2E2E'/%3E%3C/svg%3E") repeat-x;
}

/* ---------- Ventana de regalo ---------- */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(20, 20, 20, .5); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal__box { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); max-height: calc(100svh - 32px); overflow-y: auto; background: var(--white); border-radius: 18px; padding: 24px; animation: pop .3s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes pop { from { transform: translateY(16px) scale(.97); opacity: 0; } }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--white); cursor: pointer; display: grid; place-items: center; }
.modal__close svg { width: 20px; height: 20px; }
.modal__art { width: 100%; aspect-ratio: 5 / 3; border-radius: var(--radius); display: block; margin-bottom: 16px; }
.modal__title { font-size: 44px; line-height: .9; margin: 6px 0 10px; }
.modal__desc { color: #6B6B6B; margin-bottom: 20px; }
.modal__desc b { color: var(--ink); font-weight: 500; }
#gift-form { display: grid; gap: 14px; }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.amount { border: 1.5px solid var(--line); background: var(--white); border-radius: 10px; padding: 12px 6px; cursor: pointer; font-size: 16px; font-weight: 500; }
.amount.is-active { background: var(--yellow); border-color: var(--yellow); }
.amount-input { display: flex; align-items: center; gap: 8px; border-bottom: 1.5px solid #CFCFCF; padding: 6px 0; font-size: 20px; }
.amount-input input { border: 0; font: inherit; width: 100%; padding: 4px 0; }
.amount-input input:focus { outline: none; }
.amount-input:focus-within { border-bottom-color: var(--orange); }
.bank { margin: 0 0 16px; background: var(--grey-light); border-radius: var(--radius); padding: 6px 18px; }
.bank div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.bank div:last-child { border-bottom: 0; }
.bank dt { color: #6B6B6B; font-size: 14px; }
.bank dd { margin: 0; font-weight: 500; text-align: right; }
.step[data-step="2"] { display: grid; gap: 10px; }
.step[data-step="2"][hidden] { display: none; }
.step--thanks { text-align: center; }

/* Aparición al hacer scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  .route { grid-template-columns: 1fr 1fr; }
  .gifts__intro, .rsvp__grid, .faq { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .menu { display: none; }
  .topbar .btn { margin-left: auto; }
  .hero__row { flex-direction: column; align-items: start; }
  .track { grid-auto-columns: 86vw; }
  .route, .tiles { grid-template-columns: 1fr; }
  .stop { min-height: 0; }
  .tile { aspect-ratio: 4 / 5; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .modal__box { animation: none; }
}
