:root {
  --bg: #f7f0e7;
  --paper: #fbf6ee;
  --surface: #fffaf4;
  --surface-soft: #efe4d6;

  --text: #3c3028;
  --text-strong: #1f1a16;
  --muted: #75665b;

  --accent: #98a88e;
  --accent-dark: #7f8f75;
  --accent-soft: #dbe2d3;

  --gold: #b39a72;
  --gold-soft: rgba(179, 154, 114, 0.32);

  --rose: #c9a8a1;
  --white: #ffffff;

  --shadow-soft: 0 14px 34px rgba(53, 40, 28, 0.10);
  --shadow-card: 0 18px 46px rgba(53, 40, 28, 0.13);

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --radius-pill: 999px;

  --font-display: "Pinyon Script", cursive;
  --font-body: "Unna", serif;
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg);
  background-image: url("assets/img/fondo-general.webp");
  background-repeat: repeat;
  background-size: 900px auto;
  background-position: top center;
  line-height: 1.6;
  position: relative;
  max-width: 100%;
  overflow-x: clip;
}



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

h1 {
  margin: 0 0 0.75rem;
  line-height: 1.12;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.025em;
}

h2 {
  margin: 0 0 0.75rem;
  line-height: 1.12;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.025em;
  font-size: clamp(2.1rem, 5vw, 3rem);
  text-align: center;
}

h3 {
  margin: 0 0 0.75rem;
  line-height: 1.25;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.section {
  padding: 4.4rem 0;
  position: relative;
}
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: transparent;
}

.hero__nav,
.hero__content {
  position: relative;
}

.hero__nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 1.6rem;
}

.brand {
  font-family: var(--font-body);
  font-size: 1.8rem;
  color: var(--text);
  text-decoration: none;
}

.hero__content {
  margin-top: 2rem;
  margin-bottom: 8vh;
  text-align: center;
  max-width: 860px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 1.1rem;
  color: var(--text);
}

.hero__photo-frame {
  width: min(80vw, 360px);
  margin: 0 auto 1.25rem;
  border-radius: 240px 240px 20px 20px;
  overflow: hidden;
  border: 2px solid rgba(179, 154, 114, 0.42);
  box-shadow: 0 0 0 6px rgba(179, 154, 114, 0.14), var(--shadow-soft);
  background: var(--surface);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

.hero__photo-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5.2;
  object-fit: cover;
  object-position: center;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 10vw, 5.4rem);
  margin-bottom: 0.5rem;
  text-shadow: 0 6px 20px rgba(78, 58, 42, 0.16);
  font-weight: 500;
}

.hero__date {
  font-size: clamp(1rem, 3.2vw, 1.35rem);
  margin-bottom: 1.8rem;
  color: var(--muted);
}

.hero__date-image {
  display: block;
  width: min(72vw, 420px);
  margin: 0.2rem auto 1.6rem;
  margin-top: 1.2rem;
  margin-bottom: 1.5rem;
}
@media(min-width: 900px) {
  .hero__date-image {
    width: min(72vw, 420px);
    margin: 0.2rem auto 1.6rem;
    margin-top: 1.2rem;
    margin-bottom: 2.5rem;
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.hero__actions .btn--primary {
  width: clamp(230px, 58vw, 250px);
  min-height: 52px;
  padding-inline: 1.5rem;
  box-shadow: 0 6px 16px rgba(53, 40, 28, 0.1);
}

.music-fab {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1.25rem, calc(1rem + env(safe-area-inset-bottom, 0px)));
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  border: 1.5px solid rgba(152, 168, 142, 0.85);
  border-radius: 50%;
  background: rgba(251, 246, 238, 0.95);
  color: #718069;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(60, 48, 40, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease,
    background-color 0.25s ease, border-color 0.25s ease;
}

.music-fab:hover {
  transform: translateY(-2px);
  background: rgba(255, 250, 244, 0.98);
  border-color: rgba(152, 168, 142, 1);
  box-shadow: 0 7px 18px rgba(60, 48, 40, 0.18);
}

.music-fab:focus-visible {
  outline: 3px solid rgba(179, 154, 114, 0.5);
  outline-offset: 3px;
}

.music-toggle__icon {
  display: block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.music-toggle__icon--pause {
  display: none;
}

#music-toggle.is-playing .music-toggle__icon--play {
  display: none;
}

#music-toggle.is-playing .music-toggle__icon--pause {
  display: block;
}

.music-fab.has-error {
  opacity: 0.72;
  box-shadow: 0 6px 14px rgba(53, 40, 28, 0.12);
  border-color: rgba(201, 168, 161, 0.55);
}

.thanks {
  text-align: center;
  padding-top: 4.4rem;
  padding-bottom: 4.4rem;
}

.thanks h2 {
  max-width: 18ch;
  margin-inline: auto;
  font-weight: 600;
}

@media (max-width: 679px) {
  .hero__nav {
    padding-top: 1.45rem;
  }

  .timeline {
    padding-top: 5.2rem;
    padding-bottom: 0.6rem;
  }

  .visual-story {
    padding-top: 2.4rem;
    padding-bottom: 2.8rem;
  }

  .dresscode {
    padding-top: 3.2rem;
    padding-bottom: 3rem;
  }

  .salons.section {
    padding-top: 3rem;
    padding-bottom: 2.6rem;
  }

  .stay.section {
    padding-top: 3rem;
    padding-bottom: 2.6rem;
  }

  .explore.section {
    padding-top: 2.6rem;
    padding-bottom: 2.6rem;
  }

  .schedule {
    padding-top: 3.4rem;
    padding-bottom: 2.8rem;
  }

  .schedule-item {
    padding-block: 1.85rem;
  }

  .schedule__header {
    margin-bottom: 0.5rem;
  }

  .gift.section {
    padding-top: 2.8rem;
    padding-bottom: 2.6rem;
  }

  .rsvp.section {
    padding-top: 2.6rem;
    padding-bottom: 2.6rem;
  }

  .contact.section {
    padding-top: 2.8rem;
    padding-bottom: 2.8rem;
  }

  .contact__header {
    margin-bottom: 2rem;
  }

  .thanks {
    padding-top: 3.2rem;
    padding-bottom: 3.2rem;
  }
}

@media (min-width: 680px) {
  .thanks {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media (min-width: 1400px) {
  .thanks {
    padding-top: 5.2rem;
    padding-bottom: 5.2rem;
  }
}

.section--paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45),
    rgba(255, 255, 255, 0.18)
  );
  pointer-events: none;
}



.section-intro {
  text-align: center;
  max-width: 62ch;
  margin: 0.2rem auto 0.4rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s ease, background-color 0.35s ease, color 0.35s ease,
    border-color 0.35s ease, box-shadow 0.35s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(54, 41, 28, 0.14);
}

.btn:focus-visible {
  outline: 3px solid rgba(199, 169, 119, 0.35);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  margin-top: 20px;
}

.btn--primary:hover {
  background: linear-gradient(145deg, var(--accent-dark), #6f8166);
}

.btn--secondary,
.btn--ghost {
  background: rgba(255, 255, 255, 0.17);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
}

.btn--secondary:hover,
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.3);
}



@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}



.countdown__grid,
.details__grid {
  display: grid;
  gap: 1rem;
}

.countdown__grid {
  margin-top: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.countdown__frame {
  margin-top: 1.4rem;
  padding: 0.2rem;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.countdown__card {
  background: rgba(255, 251, 245, 0.12);
  border-radius: 140px 140px 0 0;
  padding: 1.35rem 0.9rem 1rem;
  text-align: center;
  box-shadow: 0 10px 26px rgba(53, 40, 28, 0.08);
  border: 2.8px solid rgba(179, 154, 114, 0.52);
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.countdown__value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  margin: 0;
  font-weight: 400;
  color: #111111;
  line-height: 1;
}

.countdown__label {
  margin: 0;
  color: #111111;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
@media (min-width: 680px) {
  .countdown__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
  }
}

@media (min-width: 900px) {
  .countdown .container {
    width: min(980px, 88%);
  }

  .countdown__grid {
    gap: 1.35rem;
  }

  .countdown__card {
    min-height: 190px;
    padding: 1.6rem 1rem 1.25rem;
    border-radius: 130px 130px 0 0;
  }

  .countdown__value {
    font-family: var(--font-display);
    font-size:3rem;
    font-weight: 400;
    margin-bottom: 10px;
  }

  .countdown__label {
    
    font-size: 1.5rem;
  }
}

@media (min-width: 1400px) {
  .countdown .container {
    width: min(1040px, 84%);
  }

  .countdown__card {
    min-height: 205px;
  }

  .countdown__value {
    font-size: 4rem;
    font-weight: 400;
  }

  .countdown__label {
    font-size: 1.55rem;
  }
}

.story__layout {
  display: grid;
  gap: 1.8rem;
}

.story__content h2 {
  text-align: left;
}

.story__media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  height: 100%;
}

.details__grid {
  margin-top: 1.5rem;
  gap: 1.15rem;
}

.details h2 {
  margin-bottom: 0.35rem;
}

.details__title {
  margin: 0 auto 0.85rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 9vw, 5.2rem);
  font-weight: 550;
  line-height: 1.05;
  letter-spacing: 0.03em;
  color: var(--text-strong);
}

.place-card {
  max-width: 680px;
  margin: 0 auto 0.75rem;
  text-align: center;
  background: transparent;
  border-radius: 0;
  padding: 0.4rem 1rem 0.9rem;
  border: 0;
  box-shadow: none;
}

.place-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  letter-spacing: 0.04em;
  margin-bottom: 0.45rem;
  font-weight: 500;
}

.place-card__address {
  max-width: 34ch;
  margin-inline: auto;
  color: var(--muted);
}

.place-card__map-btn {
  margin-top: 0.35rem;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
}

.place-card__map-btn:hover {
  background: linear-gradient(145deg, var(--accent-dark), #6f8166);
}

.info-card {
  background: linear-gradient(
    170deg,
    rgba(255, 252, 246, 0.98) 0%,
    rgba(244, 235, 223, 0.9) 100%
  );
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(179, 154, 114, 0.3);
  position: relative;
}

.info-card::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 0.8rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(179, 154, 114, 0),
    rgba(179, 154, 114, 0.75),
    rgba(179, 154, 114, 0)
  );
}

.info-card h3 {
  margin-bottom: 0.4rem;
  margin-top: 0.25rem;
  font-size: 1.6rem;
}

.rsvp {
  position: relative;
  overflow-x: clip;
}

.rsvp::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image: url("assets/img/flores.png");
  background-repeat: repeat;
  background-position: center top;
  background-size: 520px auto;

  opacity: 0.26;
}

.rsvp > .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 679px) {
  .rsvp::before {
    background-size: 360px auto;
    opacity: 0.24;
  }
}

@media (min-width: 1600px) {
  .rsvp::before {
    background-size: 620px auto;
    opacity: 0.24;
  }
}

.rsvp__frame {
  width: 100%;
  max-width: 900px;
  margin: 1rem auto 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.map__frame {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.rsvp__frame iframe {
  display: block;
  width: 100%;
  border: 0;
  overflow: hidden;
}

.map__frame iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

.dresscode__grid,
.salons__grid,
.stay__grid,
.explore__grid {
  display: grid;
  gap: 1rem;
}

.dresscode__grid {
  margin-top: 1rem;
}

.dresscode__card,
.salon-card,
.category-card,
.explore-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(179, 154, 114, 0.25);
  box-shadow: var(--shadow);
}

.dresscode__card {
  padding: 1.2rem 1rem;
  text-align: center;
}

.dresscode__card h3 {
  margin-bottom: 0.25rem;
}

.dresscode__note {
  margin-top: 1rem;
  text-align: center;
  padding: 1rem;
  border-radius: 14px;
  border: 1px dashed rgba(179, 154, 114, 0.45);
  background: rgba(255, 250, 242, 0.8);
}

.salons__grid {
  margin-top: 1rem;
}

.salon-card {
  padding: 1.1rem 1rem;
}

.salon-card h3 {
  margin-bottom: 0.2rem;
}

.salon-card p {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.salon-card__link {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 143, 117, 0.45);
}

.salon-card__link:hover {
  color: var(--text);
}

.stay__grid,
.explore__grid {
  margin-top: 1rem;
}

.category-card,
.explore-card {
  padding: 1.2rem 1rem;
}

.category-card h3,
.explore-card h3 {
  margin-bottom: 0.55rem;
}

.category-card ul,
.explore-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.category-card li,
.explore-card li {
  margin-bottom: 0.5rem;
}

.category-card li:last-child,
.explore-card li:last-child {
  margin-bottom: 0;
}

.category-card li span {
  display: block;
  font-weight: 700;
}

.category-card li small {
  display: block;
  color: var(--muted);
}

.hotel-link {
  display: inline-block;
  margin-top: 0.2rem;
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 143, 117, 0.45);
  font-weight: 400;
}

.hotel-link:hover {
  color: var(--text);
}

.schedule__container {
  max-width: 900px;
  margin-inline: auto;
}

.schedule__header {
  text-align: center;
  margin-bottom: 1rem;
}

.schedule__header h2 {
  margin-bottom: 0;
}

.schedule__list {
  margin-top: 0.5rem;
}

.schedule-item {
  padding-block: 2.5rem;
  border-bottom: 1px solid rgba(179, 154, 114, 0.28);
  text-align: left;
}

.schedule-item:last-child {
  border-bottom: 0;
  padding-bottom: 0.5rem;
}

.schedule-item__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--muted);
}

.schedule-item__text,
.schedule-item__note {
  margin: 0 0 1rem;
  color: var(--text);
  max-width: 42ch;
}

.schedule-item__note {
  color: var(--muted);
  font-size: 0.98rem;
}

.schedule-item__times {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  max-width: 36ch;
}

.schedule-item__times li {
  margin: 0 0 0.55rem;
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.45;
  color: var(--text-strong);
}

.schedule-item__times li:last-child {
  margin-bottom: 0;
}

.schedule-item__times strong {
  font-weight: 700;
}

.schedule-item__place {
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 400;
  color: var(--text);
}

.schedule-item__media {
  margin: 1.5rem auto;
  width: min(100%, 320px);
  border: 0;
  padding: 0;
  background: transparent;
}

.schedule-item__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-sm);
}

.schedule-item__media--vallesa img {
  object-position: center 32%;
}

.schedule-item__media--vallesa-alt img {
  object-position: center 48%;
}

.schedule-item__maps {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 44px;
  margin: 0 auto;
  padding: 0.75rem 1.3rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.schedule-item__maps:hover {
  background: rgba(179, 154, 114, 0.12);
  color: var(--text-strong);
  transform: translateY(-1px);
}

.schedule-item__maps:focus-visible {
  outline: 3px solid rgba(179, 154, 114, 0.3);
  outline-offset: 3px;
}

@media (min-width: 680px) {
  .schedule-item {
    text-align: center;
    padding-block: 2.75rem;
  }

  .schedule-item__eyebrow,
  .schedule-item__place {
    text-align: center;
  }

  .schedule-item__eyebrow {
    font-size: 1.06rem;
  }

  .schedule-item__text,
  .schedule-item__note,
  .schedule-item__times {
    margin-inline: auto;
    text-align: center;
  }

  .schedule-item__media {
    width: min(100%, 520px);
  }
}

@media (min-width: 1024px) {
  .schedule-item__eyebrow {
    font-size: 1.1rem;
  }

  .schedule-item__media {
    width: min(100%, 580px);
  }
}

@media (min-width: 1600px) {
  .schedule__container {
    max-width: 960px;
  }

  .schedule-item__media {
    width: min(100%, 650px);
  }
}

.timeline__grid {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline__poster {
  margin: 1rem auto 0;
  width: min(92vw, 430px);
  padding: 0;
  border: 0;
  outline: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: visible;
}

.timeline__poster picture {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.timeline__poster img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}

.timeline__item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.15rem;
  text-align: center;
  border: 1px solid rgba(179, 154, 114, 0.2);
  box-shadow: var(--shadow);
}

.timeline__icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--accent-dark);
  border: 1px solid rgba(179, 154, 114, 0.42);
  background: rgba(179, 154, 114, 0.1);
}

.timeline__time {
  margin-bottom: 0.1rem;
  color: var(--accent-dark);
  font-weight: 700;
}

.timeline__item h3 {
  margin-bottom: 0;
}

.visual-story {
  position: relative;
}

.visual-story__rail {
  margin-top: 1.5rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(78%, 1fr);
  gap: 0.9rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: auto;
  scroll-snap-type: none;
  padding-bottom: 0.5rem;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.visual-story__rail::-webkit-scrollbar {
  display: none;
}

.visual-story__rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.visual-card {
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
  position: relative;
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 48%, rgba(38, 26, 18, 0.16) 100%);
  pointer-events: none;
}

.visual-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  transition: transform 0.8s ease;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.visual-card:hover img {
  transform: scale(1.04);
}

.visual-story__rail.is-dragging .visual-card:hover img {
  transform: none;
}

.visual-card--lg img {
  min-height: 320px;
}

.gift__card {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  background: rgba(255, 250, 244, 0.88);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem;
  box-shadow: 0 18px 46px rgba(53, 40, 28, 0.10);
  border: 1px solid rgba(179, 154, 114, 0.28);
  backdrop-filter: blur(2px);
}

.gift__icon {
  width: 86px;
  margin: 0 auto 0.8rem;
}

.gift__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.gift__data {
  margin-top: 1rem;
}

.gift__iban {
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(239, 228, 214, 0.4);
  text-align: center;
}

#gift-iban {
  overflow-wrap: anywhere;
}

.gift__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 0.85rem;
  padding: 0.7rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.gift__copy:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-1px);
}

.gift__copy:focus-visible {
  outline: 3px solid rgba(152, 168, 142, 0.35);
  outline-offset: 3px;
}

.gift__copy-status {
  min-height: 1.2em;
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  text-align: center;
}

.section__divider {
  display: block;
  width: 58px;
  height: 1px;
  margin: 1.25rem auto 0;
  background: var(--gold);
}

.section__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section__header h2 {
  margin-bottom: 0;
}

.contact__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contact__header h2 {
  margin-bottom: 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 940px;
  margin-inline: auto;
}

.contact-card {
  display: flex;
  min-height: 0;
  padding: 2rem 1.25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(179, 154, 114, 0.32);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.contact-card__name {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.025em;
}

.contact-card__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
  font-style: normal;
}

.contact-card__address {
  margin: 0;
  color: var(--muted);
}

.contact-card__phone {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  text-decoration: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.contact-card__phone:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.contact-card__phone:focus-visible {
  outline: 3px solid rgba(179, 154, 114, 0.3);
  outline-offset: 4px;
  border-radius: 4px;
}

@media (min-width: 680px) {
  .contact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }

  .contact-card {
    min-height: 240px;
    padding: 2.5rem 2rem;
  }

  .contact-card__name {
    margin-bottom: 1.5rem;
  }
}

.rsvp__intro {
  max-width: 64ch;
  margin-inline: auto;
  text-align: center;
}

.footer {
  position: relative;
  z-index: 2;
  padding: 0.65rem 0;
  text-align: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
}

.footer__credit {
  display: inline;
  margin-top: 0;
  font-size: 1rem;
  color: var(--white);
  text-decoration: none;
  opacity: 0.95;
  transition: opacity 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.footer__credit:hover {
  opacity: 1;
  color: var(--white);
}

@media (min-width: 680px) {
  .hero__actions .btn--primary {
    width: 240px;
    
  }

  .music-fab {
    width: 56px;
    height: 56px;
    right: max(1.35rem, env(safe-area-inset-right, 0px));
    bottom: max(1.5rem, calc(1.25rem + env(safe-area-inset-bottom, 0px)));
  }

  .countdown__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .details__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dresscode__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .salons__grid,
  .explore__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stay__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .visual-story__rail {
    grid-auto-columns: minmax(42%, 1fr);
  }

  .timeline h2 {
    margin-bottom: 0.35rem;
  }

  .timeline__poster {
    margin: 0.55rem auto 0;
    width: min(96vw, 1100px);
    padding: 0;
    border: 0;
    outline: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
    filter: none;
  }

  .timeline__poster picture {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .timeline__poster img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    aspect-ratio: auto;
    object-fit: unset;
    object-position: center;
    filter: none;
    /* Recorta el fleco crema semitransparente del propio PNG */
    clip-path: inset(2px);
  }
}

@media (max-width: 679px) {
  .hero__photo-frame {
    width: min(82vw, 330px);
  }
}

@media (min-width: 900px) {
  .btn--primary{
    margin-top: 30px;
  }
  .timeline.section {
    padding-top: -2.2rem;
    padding-bottom: 3.2rem;
  }

  .timeline h2 {
    margin-bottom: -4.15rem;
  }

  .timeline__poster {
    margin-top: 0.25rem;
  }

  .timeline__poster img {
    clip-path: inset(10px 0 0 10px);
  }

  .section {
    padding: 5.2rem 0;
  }

  .story__layout {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 2rem;
  }

  .map__frame iframe {
    height: 420px;
  }

  .visual-story__rail {
    grid-auto-columns: minmax(30%, 1fr);
    gap: 1.1rem;
  }

  .stay__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .explore__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gift__card {
    padding: 2.1rem 2rem;
  }

  .hero__content {
    margin-top: 2.8rem;
  }
}

/* Laptop / escritorio intermedio: compactar ritmo vertical entre secciones */
@media (min-width: 1024px) and (max-width: 1599px) {
  .timeline.section {
    padding-bottom: 3rem;
  }

  .timeline h2 {
    margin-bottom: 2.25rem;
  }

  .timeline__poster {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
  }

  .timeline__poster img {
    width: min(46vw, 620px);
    max-width: 100%;
    height: auto;
    display: block;
    margin-inline: auto;
  }

  .visual-story.section {
    padding-top: 2.8rem;
    padding-bottom: 3.6rem;
  }

  .dresscode {
    padding-top: 4.4rem;
    padding-bottom: 3.6rem;
  }

  .salons.section {
    padding-top: 3.6rem;
    padding-bottom: 3.8rem;
  }

  .stay.section {
    padding-top: 3.8rem;
    padding-bottom: 3.4rem;
  }

  .explore.section {
    padding-top: 3.4rem;
    padding-bottom: 3.4rem;
  }

  .schedule {
    padding-top: 3.8rem;
    padding-bottom: 3.5rem;
  }

  .schedule-item__media {
    width: min(100%, 560px);
  }

  .gift.section {
    padding-top: 3.4rem;
    padding-bottom: 3.6rem;
  }

  .rsvp.section {
    padding-top: 3.6rem;
    padding-bottom: 3.2rem;
  }

  .contact.section {
    padding-top: 3.6rem;
    padding-bottom: 3.4rem;
  }
}

/* Pantallas grandes: timeline refinado, carrusel y mapa */
@media (min-width: 1600px) {
  .timeline.section {
    padding-bottom: 3.2rem;
  }

  .timeline h2 {
    margin-bottom: 2.5rem;
  }

  .timeline__poster {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
  }

  .timeline__poster img {
    width: min(42vw, 740px);
    max-width: min(100%, 780px);
    height: auto;
    display: block;
    margin-inline: auto;
  }

  .visual-story .container {
    width: min(1480px, 92%);
  }

  .visual-story__rail {
    grid-auto-columns: minmax(26%, 1fr);
    gap: 1.25rem;
  }

  .details .map__frame {
    width: min(1480px, 92vw);
    margin-inline: calc(50% - min(740px, 46vw));
  }

  .details .map__frame iframe {
    height: 540px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
