@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Manrope:wght@300;400;500;600&display=swap");

:root {
  --bone: #f4e8c7;
  --paper: #fbf4df;
  --ink: #253028;
  --muted: #6f756e;
  --olive: #6d7868;
  --line: rgba(37, 48, 40, 0.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.section {
  padding: clamp(5.5rem, 10vw, 9rem) max(5vw, 1.5rem);
}

.eyebrow {
  margin: 0 0 1.2rem;
  color: var(--olive);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 1.7rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 5.8vw, 5.8rem);
  font-weight: 350;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

#lista-title {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h2 em {
  color: var(--olive);
  font-weight: 400;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.55rem;
  border: 1px solid currentColor;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.button-dark {
  color: var(--ink);
}

.button-dark:hover {
  background: var(--ink);
  color: var(--paper);
}

.button-light {
  color: white;
}

.button-light:hover {
  background: white;
  color: var(--ink);
}


/* =========================
   HERO
========================= */

.hero {
  min-height: 760px;
  height: 747px;
  position: relative;
  overflow: hidden;
  color: white;
  background: #243128;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: 0;
  background: url("/images/foto-hero.jpg") center / cover no-repeat;
  filter: blur(18px);
  opacity: 0.66;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(18, 28, 22, 0.22),
    rgba(18, 28, 22, 0.34)
  );
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-photo {
  object-fit: contain;
  object-position: center;
}


/* =========================
   NAVEGACIÓN
========================= */

.nav {
  height: 88px;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(4vw, 1.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.monogram,
.footer-name {
  font-family: var(--serif);
  font-size: 1.65rem;
  letter-spacing: 0.06em;
}

.monogram span,
.footer-name em {
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.3vw, 2.4rem);
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin-top: 0.25rem;
  background: currentColor;
  transition: width 180ms ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-button {
  display: none;
}


/* =========================
   HERO CONTENT
========================= */

.hero-content {
  height: calc(100% - 88px);
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 8vh;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 2.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 1100px;
  margin: 0 0 1.8rem;
  font-family: var(--serif);
  font-size: clamp(5rem, 10vw, 10.5rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.05em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.15);
}

.hero h1 em {
  display: inline-block;
  font-size: 0.65em;
  font-weight: 400;
}

.hero-kicker span {
  margin-left: 0.75rem;
}


/* =========================
   OPENING
========================= */

.opening {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.opening p:last-child {
  max-width: 630px;
  margin: 2.5rem auto 0;
  color: var(--muted);
}


/* =========================
   CEREMONIA Y CELEBRACIÓN
========================= */

.event {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: clamp(3rem, 9vw, 10rem);
  background: var(--paper);
}

.event-reverse {
  background: #ecdfb9;
}

.event-reverse .event-copy {
  order: 2;
}

.event-reverse .watercolor {
  order: 1;
}

.event-copy {
  max-width: 520px;
}

/* TÍTULOS MÁS PEQUEÑOS */
.event-copy h2 {
  font-size: clamp(2.7rem, 4vw, 4.4rem);
  line-height: 1;
}

.event-details {
  margin: 2.5rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.event-details p {
  margin: 0;
}

.event-time {
  margin-top: 0.3rem !important;
  font-family: var(--serif);
  font-size: 2.2rem;
  line-height: 1.15;
}

.watercolor {
  min-height: 560px;
  margin: 0;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.watercolor img {
  width: 100%;
  height: 560px;
  padding: clamp(0.25rem, 1vw, 0.85rem);
  object-fit: contain;
}


/* =========================
   TRANSPORTE
========================= */

.transport {
  background: var(--ink);
  color: var(--paper);
}

.transport .eyebrow {
  color: #bac3b8;
}

.section-heading {
  max-width: 750px;
  margin-bottom: 4.5rem;
}

.transport-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
}

.transport-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.route-card {
  min-height: 330px;
  position: relative;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.route-card + .route-card {
  border-left: 0;
}

.route-number {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: #aeb7ab;
  font-family: var(--serif);
  font-size: 1.6rem;
}

.route-label {
  margin-bottom: 1.2rem;
  color: #bac3b8;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.route-card h3,
.taxi-card h3 {
  margin-bottom: 0.25rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
}

.route-card > p:not(.route-label) {
  color: #c7ccc5;
}

.route-destination span {
  display: inline-block;
  margin-right: 0.45rem;
  color: #aeb7ab;
}

.pending-time {
  margin-top: 3.5rem;
}

.pending-time small {
  display: block;
  color: #aeb7ab;
}

.pending-time strong {
  font-weight: 400;
}

.times {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 3.5rem;
}

.times time {
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.85rem;
}

.taxi-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-top: 0;
}

.taxi-card .button {
  color: var(--paper);
  flex: 0 0 auto;
}

.taxi-card .button:hover {
  background: var(--paper);
  color: var(--ink);
}

.map-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
}

.map-card iframe {
  width: 100%;
  min-height: 510px;
  flex: 1;
  border: 0;
  filter: grayscale(0.85) sepia(0.12);
}

.map-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
}

.map-caption span {
  color: var(--muted);
}

.map-caption strong {
  font-weight: 500;
}


/* =========================
   ALOJAMIENTO
========================= */

.accommodation {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: start;
}

.accommodation-visual {
  position: sticky;
  top: 110px;
}

.accommodation .watercolor {
  min-height: 690px;
}

.accommodation-copy > p:not(.eyebrow) {
  max-width: 610px;
  color: var(--muted);
}

.hotel-list {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
}

.hotel-card {
  border-bottom: 1px solid var(--line);
}

.hotel-card summary {
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, 0.8fr) 32px;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
}

.hotel-card summary::-webkit-details-marker {
  display: none;
}

.hotel-name {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.05;
}

.hotel-meta {
  color: var(--olive);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hotel-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--olive);
  font-size: 1.25rem;
  transition: transform 180ms ease;
}

.hotel-card[open] .hotel-toggle {
  transform: rotate(45deg);
}

.hotel-panel {
  max-width: 620px;
  padding: 0 3rem 1.7rem 0;
  color: var(--muted);
}

.hotel-panel p {
  margin-bottom: 0.45rem;
}

.hotel-panel a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 0.25rem;
}

.hotel-panel > a:last-child {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hotel-code {
  color: var(--olive);
  font-weight: 500;
}

.hotel-chain-list {
  margin: 0.75rem 0 1.2rem;
}

.hotel-chain-list p {
  margin: 0 0 0.45rem;
}


/* =========================
   LISTA DE BODA
========================= */

.gift {
  background: #e8d8aa;
  text-align: center;
}

.gift > p:not(.eyebrow) {
  max-width: 660px;
  margin: 0 auto 3rem;
}

.iban {
  max-width: 650px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.iban span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.iban strong {
  font-weight: 500;
}


/* =========================
   CONFIRMACIÓN
========================= */

.confirmation {
  display: grid;
  grid-template-columns: minmax(280px, 0.65fr) minmax(420px, 1fr);
  gap: clamp(3rem, 10vw, 11rem);
  background: var(--paper);
}

.confirmation-heading {
  position: sticky;
  top: 120px;
  align-self: start;
}

.confirmation-heading p:last-child {
  color: var(--muted);
}

.rsvp-form {
  width: 100%;
  max-width: 760px;
  padding: clamp(2rem, 5vw, 4.5rem);
  border: 1px solid var(--line);
  background: var(--bone);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.rsvp-form > label,
.field-grid label,
.conditional-field label {
  display: block;
  margin-bottom: 2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rsvp-form input:not([type="radio"]),
.rsvp-form select {
  width: 100%;
  min-height: 52px;
  margin-top: 0.55rem;
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

.rsvp-form select {
  cursor: pointer;
}

.rsvp-form input:focus,
.rsvp-form select:focus {
  border-color: var(--ink);
}

.rsvp-form fieldset {
  margin: 0 0 2rem;
  padding: 0;
  border: 0;
}

.rsvp-form legend {
  margin-bottom: 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.radio-row {
  display: flex;
  gap: 0.7rem;
}

.radio-option {
  position: relative;
  cursor: pointer;
}

.radio-option input {
  position: absolute;
  opacity: 0;
}

.radio-option span {
  min-width: 74px;
  min-height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  transition: background-color 160ms ease, color 160ms ease;
}

.radio-option input:checked + span {
  background: var(--ink);
  color: var(--paper);
}

.radio-option input:focus-visible + span {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}

.conditional-field {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 240ms ease, opacity 200ms ease;
}

.conditional-field.visible {
  max-height: 130px;
  opacity: 1;
}

.submit-button {
  width: 100%;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}

.submit-button:hover {
  background: transparent;
  color: var(--ink);
}

.success {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.success > span {
  color: var(--olive);
  font-size: 3.5rem;
}

.success h3 {
  margin: 0.7rem 0;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
}

.text-button {
  border: 0;
  border-bottom: 1px solid;
  background: transparent;
  cursor: pointer;
}


/* =========================
   FOOTER
========================= */

footer {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem max(5vw, 1.5rem);
  background: var(--ink);
  color: var(--paper);
}

footer p,
footer > a:last-child {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}


/* =========================
   TABLET
========================= */

@media (max-width: 980px) {

  .nav-links {
    width: 100%;
    position: absolute;
    top: 88px;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0 1.5rem;
    background: var(--paper);
    color: var(--ink);
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    transition: clip-path 220ms ease, opacity 180ms ease;
  }

  .nav-links.open {
    clip-path: inset(0);
    opacity: 1;
  }

  .nav-links:not(.open) {
    visibility: hidden;
    pointer-events: none;
  }

  .nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
  }

  .menu-button {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    border: 0;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .menu-button i,
  .menu-button i::before {
    width: 22px;
    height: 1px;
    display: block;
    position: relative;
    background: currentColor;
    content: "";
  }

  .menu-button i::before {
    position: absolute;
    top: -6px;
  }

  .event {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }

  .transport-layout {
    grid-template-columns: 1fr;
  }

  .map-card iframe {
    min-height: 380px;
  }

  .accommodation {
    grid-template-columns: 1fr;
  }

  .accommodation-visual {
    position: static;
  }

  .accommodation .watercolor {
    min-height: 430px;
  }

  .confirmation {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 3rem;
  }
}


/* =========================
   MÓVIL
========================= */

@media (max-width: 700px) {

  html {
    scroll-padding-top: 72px;
  }

  body {
    font-size: 16px;
  }

  .section {
    padding: 5rem 1.25rem;
  }

  .hero {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1175 / 997;
  }

  .hero::before {
    display: none;
  }

  .hero::after {
    background: linear-gradient(
      180deg,
      rgba(18, 28, 22, 0.18),
      rgba(18, 28, 22, 0.28)
    );
  }

  .hero-photo {
    object-fit: cover;
  }

  .nav {
    height: 72px;
    padding: 0 1.25rem;
  }

  .nav-links {
    top: 72px;
    grid-template-columns: 1fr;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .hero-content {
    height: calc(100% - 72px);
    justify-content: flex-start;
    padding: 1.15rem 1rem 0.75rem;
  }

  .hero-kicker {
    margin-bottom: 1.25rem;
    font-size: 0.67rem;
  }

  .hero-kicker span {
    display: block;
    margin: 0.2rem 0 0;
  }

  .hero h1 {
    max-width: 360px;
    margin-bottom: 0.75rem;
    font-size: clamp(2.45rem, 10.5vw, 3rem);
    line-height: 0.9;
  }

  .hero h1 em {
    display: inline-block;
    height: auto;
    font-size: 0.55em;
  }

  .hero .button {
    min-height: 46px;
    padding: 0.7rem 1.1rem;
    font-size: 0.68rem;
  }

  h2 {
    font-size: clamp(2.7rem, 13vw, 4.2rem);
  }

  .opening h2 br {
    display: none;
  }

  .event,
  .event-reverse {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .event-copy,
  .event-reverse .event-copy {
    order: 1;
    width: 100%;
  }

  .watercolor,
  .event-reverse .watercolor {
    order: 2;
    width: 100%;
    min-height: 390px;
  }

  .watercolor img {
    height: 390px;
  }

  /* TÍTULOS CEREMONIA / CELEBRACIÓN EN MÓVIL */
  .event-copy h2 {
    font-size: 2.6rem;
    line-height: 1;
  }

  .event-details {
    margin: 1.8rem 0;
  }

  .transport .section-heading {
    margin-bottom: 2.5rem;
  }

  .transport-cards {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: auto;
    padding: 1.5rem;
  }

  .route-card + .route-card {
    border-left: 1px solid rgba(255, 255, 255, 0.24);
    border-top: 0;
  }

  .pending-time,
  .times {
    margin-top: 2rem;
  }

  .taxi-card {
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
  }

  .map-card iframe {
    min-height: 320px;
  }

  .map-caption {
    flex-direction: column;
    gap: 0;
  }

  .accommodation .watercolor {
    min-height: 390px;
  }

  .hotel-list {
    margin-top: 2.5rem;
  }

  .hotel-card summary {
    min-height: 0;
    grid-template-columns: 1fr 38px;
    gap: 0.55rem 1rem;
    padding: 1.25rem 0;
  }

  .hotel-name {
    font-size: 1.55rem;
  }

  .hotel-meta {
    grid-column: 1;
    font-size: 0.75rem;
  }

  .hotel-toggle {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .hotel-panel {
    padding-right: 0;
  }

  .iban {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }

  .confirmation {
    display: block;
  }

  .confirmation-heading {
    position: static;
    margin-bottom: 2.5rem;
  }

  .rsvp-form {
    padding: 1.5rem;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rsvp-form > label,
  .field-grid label,
  .conditional-field label {
    margin-bottom: 1.7rem;
  }

  footer {
    min-height: 280px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
  }
}


/* =========================
   ACCESIBILIDAD
========================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}