/* Elena y Bruno · ejemplo del pack Experience de EVOW Studio (4 nov 2026)
   Boda mediterránea: blanco cal, arena, terracota y oliva. Arcos encalados y olas.
   Gloock para los titulares e Instrument Sans para leer, en pesos que se leen bien. */

:root {
  --cal: #fbf6ee;
  --arena: #f1e6d3;
  --arena-2: #e6d5b8;
  --terracota: #b85a36;
  --terracota-text: #9c4526;
  --oliva: #6e7350;
  --mar: #2f4b5c;
  --tinta: #2b2622;
  --texto: #463d36;
  --linea: rgba(43, 38, 34, 0.14);
  --display: "Gloock", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(1.25rem, 6vw, 4rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 6.5rem; }

body {
  margin: 0;
  background: var(--cal);
  color: var(--texto);
  font: 400 1.05rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--terracota); outline-offset: 3px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 60; padding: 0.6rem 1rem; background: var(--tinta); color: var(--cal); }
.skip-link:focus { top: 1rem; }

/* Menú de la web completa */
.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem var(--gutter);
  background: rgba(251, 246, 238, 0.94);
  border-bottom: 1px solid var(--linea);
  backdrop-filter: blur(6px);
}
.nav__mono { font: 400 1.35rem/1 var(--display); text-decoration: none; color: var(--tinta); }
.nav__mono span { margin: 0 0.1em; color: var(--terracota); font-size: 0.8em; }
.nav__links {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0.15rem var(--gutter) 0.2rem;
  scrollbar-width: none;
}
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a {
  flex: none;
  padding: 0.3rem 0;
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--texto);
  border-bottom: 2px solid transparent;
}
.nav__links a[aria-current="true"] { color: var(--terracota-text); border-color: var(--terracota); }
.nav__cta {
  grid-column: 3;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--terracota);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

/* Etiquetas y títulos */
.label {
  display: inline-block;
  margin: 0 0 1rem;
  padding-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oliva);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='6' viewBox='0 0 24 6'%3E%3Cpath d='M0 3c3 0 3-2.5 6-2.5S9 3 12 3s3-2.5 6-2.5S21 3 24 3' fill='none' stroke='%23b85a36' stroke-width='1.3'/%3E%3C/svg%3E") left bottom / 24px 6px repeat-x;
}
.title {
  margin: 0 0 1.25rem;
  font: 400 clamp(2.1rem, 8vw, 3.6rem)/1.08 var(--display);
  color: var(--tinta);
  letter-spacing: -0.01em;
}
.lead { max-width: 38rem; margin: 0 0 1.75rem; font-size: 1.12rem; }
.note { margin: 0.75rem 0 0; font-size: 0.85rem; color: rgba(70, 61, 54, 0.8); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1.5px solid var(--terracota);
  border-radius: 999px;
  background: var(--terracota);
  color: #fff;
  font: 600 0.95rem var(--sans);
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--terracota-text); border-color: var(--terracota-text); }
.button--ghost { background: transparent; color: var(--terracota-text); }
.button--ghost:hover { background: rgba(184, 90, 54, 0.08); color: var(--terracota-text); }

/* Portada: el arco encalado */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100svh - 6rem);
  padding: 2.5rem var(--gutter) 3rem;
  text-align: center;
}
.arch {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  --arch-w: min(84vw, 24rem);
  width: var(--arch-w);
  aspect-ratio: 3 / 4;
  /* Los nombres quedan sobre el horizonte: el mar ocupa el 24 % del alto (32 % del ancho) */
  padding: 0 1.5rem calc(var(--arch-w) * 0.32 + 1.25rem);
  border-radius: 999px 999px 0 0;
  background: var(--terracota);
  color: var(--cal);
  overflow: hidden;
}
/* El sol, cayendo dentro del arco */
.arch__sun {
  position: absolute;
  top: 7%;
  left: 50%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--arena-2);
  transform: translateX(-50%);
}
/* El mar: tres franjas al pie del arco */
.arch::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  /* Tres franjas de mar con cortes netos */
  background: linear-gradient(to bottom, var(--mar) 0 34%, #3e6275 34% 67%, #557c8f 67% 100%);
}
.arch__kicker, .arch__names { position: relative; z-index: 1; margin: 0; }
.arch__kicker { margin-bottom: 0.5rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.arch__names { font: 400 clamp(3rem, 15vw, 4.6rem)/0.95 var(--display); display: flex; flex-direction: column; }
.arch__names span { font-size: 0.55em; color: var(--arena-2); }
.hero__date { margin: 1.75rem 0 0.2rem; font: 400 1.4rem/1.2 var(--display); color: var(--tinta); }
.hero__place { margin: 0 0 1.5rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oliva); }

.countdown { display: flex; justify-content: center; }
.countdown div { min-width: 4rem; padding: 0 0.75rem; }
.countdown div + div { border-left: 1px solid var(--linea); }
.countdown strong { display: block; font: 400 1.7rem/1 var(--display); color: var(--terracota-text); font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 0.35rem; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

/* Bloques */
.welcome, .section, .rsvp { padding: clamp(4rem, 12vw, 7rem) var(--gutter); }
.welcome { max-width: 48rem; margin: 0 auto; text-align: center; }
.welcome .lead { margin-inline: auto; }
.section > * { max-width: 52rem; }
.section--sand { background: var(--arena); }

/* Ola separadora */
.wave {
  height: 14px;
  margin: 0 var(--gutter);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='14' viewBox='0 0 48 14'%3E%3Cpath d='M0 7c6 0 6-6 12-6s6 6 12 6 6-6 12-6 6 6 12 6' fill='none' stroke='%236e7350' stroke-width='1.4'/%3E%3C/svg%3E") center / 48px 14px repeat-x;
  opacity: 0.6;
}

/* Historia */
.story { list-style: none; margin: 1rem 0 0; padding: 0; }
.story li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--linea); }
.story__year { font: 400 1.5rem/1.1 var(--display); color: var(--terracota-text); }
.story h3, .program h3 { margin: 0 0 0.2rem; font: 400 1.35rem/1.2 var(--display); color: var(--tinta); }
.story p, .program p { margin: 0; }

/* El día */
.venue { margin: -0.5rem 0 1.25rem; font-size: 1.1rem; }
.program { list-style: none; margin: 2.5rem 0 0; padding: 0; }
.program li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid rgba(43, 38, 34, 0.2); }
.program time { padding-top: 0.15rem; font-weight: 600; color: var(--terracota-text); font-variant-numeric: tabular-nums; }

/* Dress code */
.dress p { margin: 0 0 1rem; max-width: 38rem; }
.palette { list-style: none; display: flex; flex-wrap: wrap; gap: 1.25rem; margin: 1.75rem 0 0; padding: 0; }
.palette li { display: grid; justify-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 500; }
.palette span { width: 3.5rem; height: 4.6rem; border-radius: 999px 999px 0 0; }

/* Viaje */
.info { margin: 1rem 0 0; }
.info div { padding: 1.2rem 0; border-top: 1px solid var(--linea); }
.info dt { margin-bottom: 0.3rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oliva); }
.info dd { margin: 0; }
.info strong { color: var(--tinta); }

/* Preguntas */
.faq { border-top: 1px solid rgba(43, 38, 34, 0.25); }
.faq details { border-bottom: 1px solid rgba(43, 38, 34, 0.18); }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font: 400 1.2rem/1.3 var(--display);
  color: var(--tinta);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--sans); color: var(--terracota); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.2rem; max-width: 38rem; }

/* Lista de bodas */
.gift { text-align: center; }
.gift > * { margin-inline: auto; }
.gift__account { display: flex; flex-direction: column; align-items: center; margin: 0 auto 1.25rem; color: var(--tinta); }
.gift__label { margin-top: 0.9rem; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--oliva); }
.gift__iban { font: 400 1.15rem/1.5 var(--display); letter-spacing: 0.03em; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }

/* Confirmación */
.rsvp { background: var(--mar); color: var(--cal); }
.rsvp .label { color: var(--arena-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='6' viewBox='0 0 24 6'%3E%3Cpath d='M0 3c3 0 3-2.5 6-2.5S9 3 12 3s3-2.5 6-2.5S21 3 24 3' fill='none' stroke='%23e6d5b8' stroke-width='1.3'/%3E%3C/svg%3E"); }
.rsvp .title { color: var(--cal); }
.rsvp .note { color: rgba(251, 246, 238, 0.75); }
.form, .thanks, .rsvp__head { max-width: 40rem; }
.form { display: grid; gap: 1.1rem; }
.form[hidden], .form__more[hidden] { display: none; }
.form__more { display: grid; gap: 1.1rem; }
.row { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.35rem; }
.field > span, .choice legend { font-size: 0.85rem; font-weight: 600; }
.field input, .field select {
  width: 100%;
  min-height: 3rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(251, 246, 238, 0.35);
  border-radius: 0.5rem;
  background: rgba(251, 246, 238, 0.08);
  color: var(--cal);
  font: 400 1rem var(--sans);
}
.field select option { color: var(--tinta); }
.field input:focus, .field select:focus { outline: none; border-color: var(--arena-2); box-shadow: 0 0 0 2px var(--arena-2); }
.field input[aria-invalid="true"] { border-color: #f0a487; box-shadow: 0 0 0 2px #f0a487; }
.choice { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; border: 0; }
.choice legend { width: 100%; margin-bottom: 0.5rem; }
.choice label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.9rem;
  padding: 0 1rem;
  border: 1px solid rgba(251, 246, 238, 0.35);
  border-radius: 999px;
  cursor: pointer;
}
.choice label:has(input:checked) { background: var(--cal); color: var(--mar); border-color: var(--cal); }
.choice input, .check input { accent-color: var(--terracota); width: 1.1rem; height: 1.1rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; }
.check:has([aria-invalid="true"]) { color: #f0a487; }
.form .button { justify-self: start; background: var(--cal); border-color: var(--cal); color: var(--mar); }
.form .button:hover { background: var(--arena-2); border-color: var(--arena-2); }
.form__error { min-height: 1.2rem; margin: 0; color: #f6b9a1; font-weight: 600; }

.thanks { padding: 2rem 0; }
.thanks[hidden] { display: none; }
.thanks__sun { display: block; width: 4rem; height: 4rem; margin-bottom: 1.25rem; border-radius: 50%; background: var(--arena-2); box-shadow: 0 1.2rem 0 -0.9rem var(--terracota); }
.thanks__title { margin: 0 0 0.5rem; font: 400 2rem/1.15 var(--display); }

/* Pie */
.footer { padding: 3.5rem var(--gutter) 3rem; text-align: center; }
.footer__names { margin: 0; font: 400 2.2rem/1 var(--display); color: var(--tinta); }
.footer__names span { color: var(--terracota); font-size: 0.7em; }
.footer__date { margin: 0.5rem 0 1rem; font-weight: 600; letter-spacing: 0.2em; color: var(--oliva); }
.footer__credit { margin: 0.5rem 0 0; font-size: 0.9rem; }

@media (min-width: 52rem) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav__links { grid-column: 2; grid-row: 1; justify-content: center; margin: 0; padding: 0; overflow: visible; }
  .row { grid-template-columns: 1fr 1fr; }
  .info { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .story li, .program li { grid-template-columns: 7rem 1fr; }
  .section { display: grid; grid-template-columns: minmax(0, 52rem); justify-content: center; }
  .rsvp { display: grid; grid-template-columns: minmax(14rem, 22rem) minmax(0, 40rem); gap: 4rem; justify-content: center; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* En el ordenador, la ola de la etiqueta solo bajo el texto */
.section > .label, .rsvp__head .label { justify-self: start; }
.gift > .label { justify-self: center; }

/* En el ordenador, los botones de las secciones a su tamaño */
.section > .button { justify-self: start; }
.gift > .button { justify-self: center; }
