/* --------------------------------------------------------------------------
   Mis XV Años · Emily
   Tarjeta de invitación — Sprint 1
   Tipografías y fotografías locales. Sin dependencias externas.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Noto Serif";
  src: url("assets/fonts/noto-serif-300.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-300.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  --cream: #fdf7f8;
  --paper: #fffbfc;
  --blush: #f8e8ec;
  --blush-deep: #f0d4dc;
  --rose: #a45d69;
  --rose-deep: #834751;
  --wine: #4b2b30;
  --wine-deep: #382025;
  --ink: #342426;
  --muted: #70585d;
  --sakura-deep: #93505f;
  --sakura: #d99eae;
  --sakura-light: #f4cbd4;
  --sakura-wash: #fbeef2;
  --line: rgba(131, 71, 81, 0.16);
  --line-strong: rgba(131, 71, 81, 0.34);
  --serif: "Noto Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-space: clamp(4.5rem, 10vw, 8rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--rose);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--sakura-deep);
  outline-offset: 4px;
}

.hero :focus-visible,
.save-date :focus-visible,
.interlude :focus-visible,
.skip-link:focus-visible {
  outline-color: var(--sakura-light);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1120px, calc(100% - (2 * var(--gutter))));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.8rem 1.1rem;
  background: var(--wine);
  color: var(--cream);
  font-size: 0.67rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Tipografía y motivos
   -------------------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--rose-deep);
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  line-height: 1.7;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--sakura-light);
}

.section-head {
  max-width: 640px;
  margin: 0 auto clamp(2.4rem, 5vw, 4rem);
  text-align: center;
}

.section-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.7rem);
  font-weight: 300;
  letter-spacing: 0.005em;
  line-height: 1.08;
}

.section-intro {
  max-width: 50ch;
  margin: 1.15rem auto 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.8;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  max-width: 250px;
  color: var(--rose);
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: currentColor;
  opacity: 0.32;
}

.ornament svg {
  flex: 0 0 auto;
  opacity: 0.75;
}

.monogram {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 1px solid;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.monogram--light {
  margin: 2rem auto 1.6rem;
  border-color: rgba(255, 250, 246, 0.55);
  background: rgba(255, 250, 246, 0.045);
  color: var(--cream);
}

.monogram--dark {
  margin: 0 auto 1.8rem;
  border-color: var(--line-strong);
  color: var(--rose-deep);
}

/* --------------------------------------------------------------------------
   Botones
   -------------------------------------------------------------------------- */

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.61rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button svg {
  flex: 0 0 auto;
}

.button--ghost {
  border-color: rgba(255, 250, 246, 0.34);
  background: rgba(255, 250, 246, 0.025);
  color: var(--cream);
}

.button--ghost:hover {
  border-color: var(--cream);
  background: var(--cream);
  color: var(--wine);
}

.button--solid {
  border-color: var(--rose-deep);
  background: var(--rose-deep);
  color: var(--paper);
}

.button--solid:hover {
  border-color: var(--wine);
  background: var(--wine);
}

.button--outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--rose-deep);
}

.button--outline:hover {
  border-color: var(--rose);
  background: var(--blush);
}

/* --------------------------------------------------------------------------
   Portada
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: clamp(4.5rem, 9vh, 7rem) 1.25rem;
  background: var(--wine-deep);
  color: var(--cream);
  text-align: center;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  filter: grayscale(1) contrast(1.03) brightness(0.94);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 17, 19, 0.72) 0%, rgba(28, 17, 19, 0.18) 30%, rgba(28, 17, 19, 0.2) 57%, rgba(28, 17, 19, 0.78) 100%),
    radial-gradient(circle at 50% 50%, transparent 5%, rgba(28, 17, 19, 0.34) 100%);
}

.hero__frame {
  position: absolute;
  inset: clamp(10px, 2vw, 26px);
  border: 1px solid rgba(255, 250, 246, 0.22);
  pointer-events: none;
}

.hero__frame::before,
.hero__frame::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 250, 246, 0.58);
  border-radius: 50%;
}

.hero__frame::before {
  top: -4px;
  left: -4px;
}

.hero__frame::after {
  right: -4px;
  bottom: -4px;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
  padding-block: 1.5rem;
}

.hero__kicker {
  max-width: 530px;
  margin: 0 auto;
  color: rgba(255, 250, 246, 0.88);
  font-size: clamp(0.58rem, 1.15vw, 0.68rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  line-height: 2.15;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.28);
  text-transform: uppercase;
}

.hero__eyebrow {
  margin: 0;
  color: var(--sakura-light);
  font-size: clamp(0.63rem, 1.4vw, 0.76rem);
  font-weight: 500;
  letter-spacing: 0.56em;
  text-indent: 0.56em;
  text-transform: uppercase;
}

.hero__name {
  margin: 0.55rem 0 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(4.6rem, 16vw, 9rem);
  font-weight: 300;
  letter-spacing: 0.015em;
  line-height: 0.92;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.2);
}

.hero__rule {
  display: flex;
  width: 170px;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 1.35rem;
  color: var(--sakura-light);
  opacity: 0.85;
}

.hero__rule::before,
.hero__rule::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, currentColor);
}

.hero__rule::after {
  background: linear-gradient(90deg, currentColor, transparent);
}

.hero__blossom {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-inline: 0.65rem;
}

.hero__date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.7rem;
  margin: 0;
  color: rgba(255, 250, 246, 0.94);
  font-size: clamp(0.64rem, 1.25vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.8;
  text-transform: uppercase;
}

.hero__dot {
  color: var(--sakura-light);
}

.hero__scroll {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: clamp(2.4rem, 6vh, 4rem);
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(255, 250, 246, 0.32);
  color: rgba(255, 250, 246, 0.86);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease;
}

.hero__scroll:hover {
  border-color: var(--sakura-light);
  color: var(--sakura-light);
}

.hero__scroll svg {
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Índice
   -------------------------------------------------------------------------- */

.index-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.2rem;
  padding: 0.65rem var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.index-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--rose-deep);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  transition: background-color 180ms ease;
}

.index-nav a:hover {
  background: var(--blush);
}

/* --------------------------------------------------------------------------
   Presentación
   -------------------------------------------------------------------------- */

.intro {
  background:
    radial-gradient(circle at 8% 12%, rgba(164, 93, 105, 0.055), transparent 28%),
    var(--cream);
}

.intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.portrait {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 12px 12px 0;
  border: 1px solid var(--line);
  border-radius: 48% 48% 5px 5px / 30% 30% 5px 5px;
  background: var(--paper);
  box-shadow: 0 28px 60px rgba(75, 43, 48, 0.08);
}

.portrait__frame {
  position: absolute;
  inset: -14px;
  border: 1px solid var(--line-strong);
  border-radius: inherit;
  opacity: 0.55;
  pointer-events: none;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 47% 47% 3px 3px / 29% 29% 3px 3px;
  object-fit: cover;
  object-position: center 24%;
}

.portrait figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 1.15rem 0.5rem 1.4rem;
  text-align: center;
}

.portrait__name {
  font-family: var(--serif);
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.portrait__role {
  color: var(--rose);
  font-size: 0.53rem;
  font-weight: 500;
  letter-spacing: 0.29em;
  text-transform: uppercase;
}

.intro__copy {
  max-width: 560px;
}

.intro__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.005em;
  line-height: 1.04;
}

.intro__title em {
  color: var(--rose);
  font-style: italic;
}

.lead {
  max-width: 42ch;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
}

.intro__quote {
  max-width: 38ch;
  margin: 1.6rem 0 0;
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 300;
  line-height: 1.45;
}

.intro__copy .ornament {
  margin: 1.8rem 0;
}

.family {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  padding-top: 1.45rem;
  border-top: 1px solid var(--line);
}

.family__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.family__label {
  color: var(--rose);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.family strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   La fecha
   -------------------------------------------------------------------------- */

.save-date {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-space);
  background: radial-gradient(circle at 50% -8%, #7b4351 0%, #4b2b30 56%, #382025 100%);
  color: var(--cream);
  text-align: center;
}

.save-date::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 250, 246, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 246, 0.024) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

.save-date__inner {
  position: relative;
  z-index: 1;
}

.date-display {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem 1.05rem;
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.9;
}

.date-display__day {
  font-size: clamp(4.4rem, 10vw, 6.8rem);
  letter-spacing: -0.02em;
}

.date-display__month {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.date-display__year {
  color: var(--sakura-light);
  font-family: var(--sans);
  font-size: clamp(0.66rem, 1.4vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.32em;
}

.save-date__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  margin: 1.7rem 0 0;
  color: rgba(255, 250, 246, 0.9);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  line-height: 1.8;
  text-transform: uppercase;
}

.save-date__place {
  margin: 0.45rem 0 0;
  color: var(--sakura-light);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  width: min(100%, 540px);
  margin: 2.7rem auto 0;
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.2rem 0.8rem;
  border: 1px solid rgba(255, 250, 246, 0.17);
  background: rgba(255, 250, 246, 0.035);
}

.countdown__value {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.countdown__label {
  margin-top: 0.3rem;
  color: rgba(255, 250, 246, 0.56);
  font-size: 0.49rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.calendar {
  margin-top: 2.8rem;
}

.calendar__label {
  margin: 0 0 0.9rem;
  color: var(--sakura-light);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.calendar__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.save-date__note {
  margin: 1.35rem 0 0;
  color: rgba(255, 250, 246, 0.52);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Itinerario
   -------------------------------------------------------------------------- */

.itinerary {
  background: var(--paper);
}

.timeline {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  padding: 0 0 0 2rem;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  left: 5px;
  width: 1px;
  background: linear-gradient(var(--line-strong), var(--line), var(--line-strong));
}

.timeline__item {
  position: relative;
  padding-bottom: 2.35rem;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 0.58rem;
  left: -2rem;
  width: 9px;
  height: 9px;
  border: 1px solid var(--rose);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 5px var(--paper);
}

.timeline__time {
  display: block;
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: 1.08rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.timeline__item h3 {
  margin: 0.3rem 0 0.2rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.005em;
  line-height: 1.3;
}

.timeline__item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Interludio fotográfico
   -------------------------------------------------------------------------- */

.interlude {
  position: relative;
  display: grid;
  min-height: clamp(390px, 66vh, 620px);
  place-items: center;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7rem) 1.25rem;
  background: var(--wine-deep);
  color: var(--cream);
  text-align: center;
}

.interlude img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.82) brightness(0.9);
}

.interlude__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 18, 20, 0.48) 0%, rgba(30, 18, 20, 0.22) 40%, rgba(30, 18, 20, 0.66) 100%),
    radial-gradient(circle at 50% 50%, transparent 10%, rgba(30, 18, 20, 0.32) 100%);
}

.interlude__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
}

.interlude__quote {
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.005em;
  line-height: 1.28;
  text-wrap: balance;
}

.interlude__signature {
  margin: 1.5rem 0 0;
  color: var(--sakura-light);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Galería
   -------------------------------------------------------------------------- */

.gallery {
  background:
    radial-gradient(circle at 92% 4%, rgba(164, 93, 105, 0.05), transparent 24%),
    var(--cream);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.7rem, 2vw, 1.4rem);
  align-items: start;
  max-width: 1040px;
  margin-inline: auto;
}

.gallery__item {
  margin: 0;
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 2px;
  object-fit: cover;
  object-position: center;
}

.share-note {
  max-width: 620px;
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
  text-align: center;
}

.share-note .ornament {
  margin: 0 auto 1.3rem;
  max-width: 180px;
}

.share-note__quote {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 300;
  line-height: 1.38;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Código de vestimenta
   -------------------------------------------------------------------------- */

.dress {
  background: var(--cream);
}

.dress__panel {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(2.2rem, 6vw, 4.8rem) clamp(1.15rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(155, 85, 100, 0.28);
  border-radius: clamp(4.5rem, 16vw, 15rem) clamp(4.5rem, 16vw, 15rem) 0.75rem 0.75rem / clamp(2.6rem, 8vw, 8rem) clamp(2.6rem, 8vw, 8rem) 0.75rem 0.75rem;
  background: linear-gradient(175deg, #fdf1f4 0%, #f7dfe5 62%, #f1d3db 100%);
  box-shadow: 0 30px 65px rgba(131, 71, 81, 0.1);
  text-align: center;
}

.dress__panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(155, 85, 100, 0.22);
  border-radius: inherit;
  pointer-events: none;
}

.dress__head {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.dress__panel .eyebrow {
  color: var(--sakura-deep);
}

.dress__title {
  margin: 0.2rem 0 0.9rem;
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1;
}

.dress__intro {
  max-width: 40ch;
  margin: 0 auto;
  color: #5f4549;
  font-size: 0.93rem;
  line-height: 1.8;
}

.dress__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.8rem);
  max-width: 760px;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
}

.dress-card {
  overflow: hidden;
  border: 1px solid rgba(155, 85, 100, 0.28);
  border-radius: 9rem 9rem 0.45rem 0.45rem;
  background: rgba(255, 250, 251, 0.6);
}

.dress-card__media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8.8rem 8.8rem 0 0;
  object-fit: cover;
  object-position: center 18%;
}

.dress-card__body {
  padding: 1.15rem 1rem 1.4rem;
}

.dress-card__label {
  margin: 0 0 0.25rem;
  color: var(--sakura-deep);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.dress-card h3 {
  margin: 0 0 0.45rem;
  color: var(--wine);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.35;
}

.dress-card p:last-child {
  margin: 0;
  color: #5f4a4d;
  font-size: 0.8rem;
  line-height: 1.7;
}

.dress__footer {
  position: relative;
  z-index: 1;
  margin: clamp(1.6rem, 4vw, 2.4rem) 0 0;
  color: #7d4a55;
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.27em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Ubicación
   -------------------------------------------------------------------------- */

.location {
  background: var(--paper);
}

.location__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
  max-width: 1040px;
  margin-inline: auto;
}

.location__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location__date {
  margin: 0 0 0.55rem;
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 300;
  line-height: 1.45;
}

.location__address {
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.8;
}

.location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.location__note {
  max-width: 36ch;
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.location__map {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--blush);
  aspect-ratio: 4 / 3;
}

.map-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.map-art__lines {
  width: 100%;
  height: 100%;
  opacity: 0.98;
}

.map-art__tag,
.map-art__venue {
  position: absolute;
  padding: 0.35rem 0.62rem;
  background: rgba(255, 251, 252, 0.9);
  color: var(--wine);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.map-art__tag {
  top: 0.9rem;
  left: 0.9rem;
}

.map-art__venue {
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.map-art__pin {
  position: absolute;
  top: 46%;
  left: 50%;
  color: var(--rose-deep);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 6px 8px rgba(75, 43, 48, 0.22));
}

.map-art__pin::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 8px;
  margin: auto;
  border-radius: 50%;
  background: rgba(75, 43, 48, 0.18);
  filter: blur(2px);
}

.location__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-fallback {
  display: none;
}

html.no-js .countdown,
html.no-js .music-dock {
  display: none;
}

html.no-js [data-map-toggle] {
  display: none;
}

html.no-js .map-fallback {
  display: inline-flex;
}

/* --------------------------------------------------------------------------
   Cierre y pie
   -------------------------------------------------------------------------- */

.closing {
  padding-block: var(--section-space);
  background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 100%);
  text-align: center;
}

.closing__inner {
  max-width: 640px;
}

.closing .section-title {
  margin-bottom: 1.15rem;
}

.closing__text {
  max-width: 42ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

.closing__cta {
  margin-top: 1.8rem;
}

.closing__signature {
  margin: 2rem 0 0;
  color: var(--rose-deep);
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
}

.music-fallback {
  margin-top: 2rem;
  text-align: center;
}

.music-fallback audio {
  max-width: 100%;
}

.footer {
  padding: 2rem var(--gutter) 6rem;
  background: var(--wine-deep);
  color: rgba(255, 250, 246, 0.58);
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  line-height: 1.8;
  text-align: center;
  text-transform: uppercase;
}

.footer__name {
  margin: 0 0 0.25rem;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: none;
}

.footer__meta {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Música
   -------------------------------------------------------------------------- */

.music-dock {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: calc(clamp(0.75rem, 2vw, 1.5rem) + env(safe-area-inset-bottom, 0px));
  z-index: 40;
}

.music-dock__button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--wine);
  box-shadow: 0 10px 30px rgba(56, 32, 37, 0.18);
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.music-dock__button:hover {
  border-color: var(--wine);
  background: var(--wine);
  color: var(--cream);
}

.music-dock__icon {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--blush);
  color: var(--rose-deep);
}

.music-dock__button:hover .music-dock__icon {
  background: var(--cream);
  color: var(--wine);
}

.music-dock__text {
  white-space: nowrap;
}

.music-dock__bars {
  display: flex;
  height: 12px;
  align-items: flex-end;
  gap: 2px;
  opacity: 0.3;
}

.music-dock__bars i {
  display: block;
  width: 2px;
  height: 4px;
  background: currentColor;
}

.music-dock__button[aria-pressed="true"] .music-dock__bars {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Movimiento
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__scroll svg {
    animation: nudge 2.8s ease-in-out infinite;
  }

  .music-dock__button[aria-pressed="true"] .music-dock__bars i {
    animation: equalize 0.9s ease-in-out infinite alternate;
  }

  .music-dock__button[aria-pressed="true"] .music-dock__bars i:nth-child(2) {
    animation-delay: 0.18s;
  }

  .music-dock__button[aria-pressed="true"] .music-dock__bars i:nth-child(3) {
    animation-delay: 0.36s;
  }
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@keyframes equalize {
  from {
    height: 3px;
  }
  to {
    height: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Adaptación
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .intro__grid {
    grid-template-columns: 1fr;
    gap: clamp(3rem, 8vw, 4.5rem);
    text-align: center;
  }

  .portrait {
    max-width: 360px;
  }

  .intro__copy {
    max-width: 620px;
    margin-inline: auto;
  }

  .lead,
  .intro__quote {
    margin-inline: auto;
  }

  .intro__copy .ornament {
    margin-inline: auto;
  }

  .family {
    max-width: 460px;
    margin-inline: auto;
    text-align: left;
  }

  .location__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .location__info {
    text-align: center;
  }

  .location__actions {
    justify-content: center;
  }

  .location__note {
    margin-inline: auto;
  }

  .location__map {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 759px) {
  .gallery__grid {
    grid-template-columns: 1fr;
    max-width: 430px;
  }

  .gallery__item img {
    aspect-ratio: 4 / 5;
  }

  .dress__grid {
    grid-template-columns: 1fr;
    max-width: 350px;
  }

  .dress-card__media img {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 560px) {
  :root {
    --section-space: clamp(3.6rem, 12vw, 5rem);
  }

  .hero {
    padding-inline: 1rem;
  }

  .hero__kicker {
    max-width: 300px;
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    line-height: 2.05;
  }

  .hero__name {
    font-size: clamp(4.3rem, 24vw, 6.2rem);
  }

  .hero__rule {
    margin-top: 1.55rem;
    margin-bottom: 1.15rem;
  }

  .hero__date {
    font-size: 0.58rem;
    letter-spacing: 0.17em;
  }

  .hero__scroll {
    margin-top: 2.2rem;
    font-size: 0.53rem;
  }

  .monogram {
    width: 68px;
    height: 68px;
    font-size: 1.75rem;
  }

  .index-nav {
    gap: 0;
    padding-inline: 0.6rem;
  }

  .index-nav a {
    padding-inline: 0.55rem;
    font-size: 0.51rem;
    letter-spacing: 0.13em;
  }

  .section-intro {
    font-size: 0.88rem;
  }

  .intro__title {
    font-size: clamp(2.7rem, 13vw, 3.7rem);
  }

  .lead {
    font-size: 0.94rem;
  }

  .family {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .date-display {
    gap: 0.2rem 0.65rem;
  }

  .date-display__month {
    font-size: 1.65rem;
  }

  .countdown {
    gap: 0.35rem;
  }

  .countdown__unit {
    padding-block: 0.8rem 0.65rem;
  }

  .countdown__value {
    font-size: 1.55rem;
  }

  .countdown__label {
    font-size: 0.44rem;
    letter-spacing: 0.16em;
  }

  .calendar__links {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 300px);
    margin-inline: auto;
  }

  .timeline {
    padding-left: 1.65rem;
  }

  .timeline__item::before {
    left: -1.65rem;
  }

  .interlude {
    min-height: 430px;
  }

  .dress__panel {
    border-radius: 5rem 5rem 0.6rem 0.6rem / 3.2rem 3.2rem 0.6rem 0.6rem;
    padding-inline: 1rem;
  }

  .dress__panel::before {
    inset: 6px;
  }

  .dress-card {
    border-radius: 7rem 7rem 0.4rem 0.4rem;
  }

  .dress-card__media img {
    border-radius: 6.8rem 6.8rem 0 0;
  }

  .location__map {
    aspect-ratio: 1 / 1;
    min-height: 0;
  }

  .location__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer {
    padding-bottom: 6.5rem;
  }
}

@media (max-width: 380px) {
  .hero__eyebrow {
    letter-spacing: 0.4em;
    text-indent: 0.4em;
  }

  .hero__date {
    gap: 0.25rem 0.45rem;
  }

  .date-display__day {
    font-size: 4rem;
  }

  .index-nav a {
    font-size: 0.48rem;
    letter-spacing: 0.1em;
  }
}

@media (prefers-contrast: more) {
  .hero__shade,
  .interlude__shade {
    background: rgba(28, 17, 19, 0.72);
  }

  .eyebrow,
  .portrait__role,
  .family__label {
    color: var(--rose-deep);
  }
}

@media print {
  .index-nav,
  .music-dock,
  .hero__scroll,
  .calendar,
  .location__actions {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .hero {
    min-height: 0;
    padding: 2rem;
  }

  .hero__photo {
    position: static;
    width: 100%;
    height: auto;
  }
}
