/* ═══════════════════════════════════════════
   ELENA & LUIS — WEDDING INVITATION
   Rustic Vineyard Palette
   ═══════════════════════════════════════════ */

/* ── Custom Properties ───────────────────── */
:root {
  /* Editorial Palette - Sophisticated & Warm */
  --olive: #586432;
  --olive-light: #7A8450;
  --mustard: #D4A373;
  --mustard-dark: #A67035;
  --burgundy: #5C1E2D;
  --burgundy-light: #8A3A4E;
  --terracotta: #BC6C25;
  --brown: #433422;
  --beige: #E9E0D2;
  --cream: #FAF9F6;
  /* Luxury Paper White */
  --cream-dark: #F2EFE9;
  --white: #FFFFFF;
  --text: #2D2926;
  --text-light: #635D5A;
  --border: #E9E0D2;
  --gold: #D4A373;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.03);

  /* Typography - Editorial Pairings */
  --ff-heading: 'Cormorant Garamond', serif;
  --ff-body: 'Montserrat', sans-serif;
  --ff-libre: 'Libre Baskerville', serif;
  --ff-accent: 'Libre Baskerville', serif;

  /* Spacing Rhythm */
  --section-py: clamp(3.5rem, 8vw, 7rem);
  --container-max: 1200px;
  --container-narrow: 800px;

  /* Refined Details */
  --radius: 18px;
  --radius-soft: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 14px 34px rgba(45, 41, 38, 0.05);
  --shadow-card-hover: 0 22px 46px rgba(45, 41, 38, 0.08);
  /* More architectural than rounded */
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);
  --shadow-elegant: 0 20px 50px rgba(45, 41, 38, 0.08);
  --transition: .6s cubic-bezier(0.16, 1, 0.3, 1);
  /* Luxury ease-out-expo */
}

/* ── Reset & Base ──────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--cream);
}

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

a {
  color: var(--burgundy);
  text-decoration: none;
}

/* ── Container ─────────────────────────── */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ── Section ───────────────────────────── */
.section {
  padding: var(--section-py) 0;
}

.section__overline {
  display: block;
  font-family: var(--ff-body);
  font-size: .8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: .5rem;
  text-align: center;
}

.section__title {
  font-family: var(--ff-heading);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--burgundy);
  text-align: center;
  margin-bottom: 2.5rem;
  line-height: 1.25;
}


/* ── Navigation ────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all var(--transition);
}

.nav--scrolled {
  background: rgba(250, 249, 246, 0.98);
  padding: 0.8rem 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.nav__inner {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 55px;
  /* Slightly larger logo */
  width: auto;
  transition: transform var(--transition), filter var(--transition);
}

.nav:not(.nav--scrolled) .nav__logo-img {
  filter: brightness(0) invert(1);
  /* Make logo white when on hero */
}

.nav:not(.nav--scrolled) .nav__toggle span {
  background: var(--white);
  /* Make hamburger white when on hero */
}

.nav__logo-img:hover {
  transform: scale(1.05);
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav__links a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--white);
  /* White for better visibility on hero */
  letter-spacing: 1px;
  position: relative;
  transition: color var(--transition);
  text-transform: uppercase;
}

.nav--scrolled .nav__links a {
  color: var(--text);
  /* Switch back to dark when scrolled */
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--mustard);
  transition: width var(--transition);
}

.nav__links a:hover {
  color: var(--burgundy);
}

.nav__links a:hover::after {
  width: 100%;
}

/* Toggle (mobile) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--burgundy);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    flex-direction: column;
    background: var(--cream);
    padding: 5rem 2rem 2rem;
    gap: 1.6rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, .1);
    transition: right var(--transition);
    z-index: 1000;
  }

  .nav__links.open {
    right: 0;
  }

  .nav__links a {
    font-size: 1.1rem;
    color: var(--burgundy);
  }

  .nav__links a:hover {
    color: var(--mustard);
  }
}

/* ── Hero ───────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--text);
  color: var(--white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('images/paisaje-2.jpeg') center / cover no-repeat;
  transform: scale(1.1);
  transition: transform 1.5s cubic-bezier(0, 0, 0, 1);
}

.hero--loaded .hero__bg {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(45, 41, 38, 0.45) 0%,
      rgba(45, 41, 38, 0.2) 50%,
      rgba(45, 41, 38, 0.5) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 8rem 1.5rem 2rem;
  /* Added 8rem top padding to push content down */
  max-width: 950px;
}

.hero__pre {
  font-family: var(--ff-heading);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  letter-spacing: 4px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
}

.hero--loaded .hero__pre {
  animation: fadeUp 1s forwards .2s;
}

.hero__title {
  font-family: var(--ff-heading);
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 500;
  line-height: 0.9;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
}

.hero--loaded .hero__title {
  animation: fadeUp 1s forwards .4s;
}

.hero__heart {
  display: inline-block;
  font-size: 0.75em;
  color: var(--mustard);
  transform: scaleX(1.3);
  margin: 0 0.15em;
  vertical-align: middle;
  line-height: 1;
}

.hero__date {
  font-family: var(--ff-heading);
  font-size: clamp(1.3rem, 2.8vw, 1.8rem);
  letter-spacing: 5px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(20px);
}

.hero--loaded .hero__date {
  animation: fadeUp 1s forwards .6s;
}

.hero__venue {
  font-size: 1rem;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: 3rem;
  text-transform: uppercase;
  opacity: 0;
}

.hero--loaded .hero__venue {
  animation: fadeUp 1s forwards .8s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__welcome {
  font-size: clamp(.9rem, 1.8vw, 1.05rem);
  line-height: 1.7;
  opacity: .88;
  margin-bottom: 2rem;
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.countdown__number {
  font-family: var(--ff-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--mustard);
}

.countdown__label {
  font-size: .7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .75;
  margin-top: 4px;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-hint span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-hint span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  background: rgba(255, 255, 255, .7);
  border-radius: 2px;
  animation: scrollBounce 1.6s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(12px);
    opacity: .3;
  }
}

/* ── Buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 1.2rem 3rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--burgundy);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--white);
  color: var(--burgundy);
  border-color: var(--burgundy);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(92, 30, 45, 0.15);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn--outline:hover {
  background: var(--text);
  color: var(--white);
  transform: translateY(-3px);
}

/* ── About ─────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about__text p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--text-light);
}

.about__text p:first-child::first-letter {
  font-family: var(--ff-heading);
  font-size: 3rem;
  float: left;
  line-height: 1;
  margin-right: .5rem;
  color: var(--burgundy);
  font-weight: 700;
}

.about__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.about__image img {
  width: 100%;
  transition: transform .6s ease;
}

.about__image:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ── Details / Cards ─────────────────────── */
.details {
  background: var(--cream-dark);
}



.details__subsection {
  text-align: center;
  margin: 3rem 0 1.25rem;
}

.details__subheading {
  font-family: var(--ff-heading);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 400;
  color: var(--burgundy);
  margin: 0;
}

.details__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
  border: 1px solid var(--beige);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-elegant);
}

.card__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1.5rem;
  color: var(--olive);
}

.card__icon svg {
  width: 100%;
  height: 100%;
}

.card__title {
  font-family: var(--ff-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--burgundy);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card__text {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
}



/* ── Premium Transport & Timeline ────────────────── */
.transport-grid {
  max-width: 600px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.transport-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.transport-item:last-child {
  border-bottom: none;
}

.transport-item__info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.transport-item__city {
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--burgundy);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.transport-item__dot {
  width: 5px;
  height: 5px;
  background: var(--mustard);
  border-radius: 50%;
  opacity: 0.6;
}

.transport-item__venue {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

.transport-item__time {
  font-family: var(--ff-libre);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--olive);
}

/* Timeline Vertical Editorial */
.event-timeline {
  position: relative;
  max-width: 550px;
  margin: 5rem auto;
  padding-left: 3rem;
}

.event-timeline__track {
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--olive), var(--mustard), var(--burgundy));
  opacity: 0.25;
}

.event-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  transition: transform var(--transition);
}

.event-item:last-child {
  margin-bottom: 0;
}

.event-item__dot {
  position: absolute;
  left: -3rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 1px solid var(--mustard);
  z-index: 1;
}

.event-item__dot::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--mustard);
  border-radius: 50%;
}

.event-item__icon-wrapper {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.event-item:hover .event-item__icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-elegant);
  border-color: var(--mustard);
}

.event-item__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  font-weight: 600;
  color: var(--burgundy);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.tl__time {
  font-family: var(--ff-libre);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--olive);
}

/* Mobile: vertical timeline */
@media (max-width: 768px) {
  .tl {
    overflow-x: hidden;
  }

  .tl__track {
    min-width: 100%;
    flex-direction: column;
    padding: 0 1rem 0 3rem;
    gap: 2.5rem;
  }

  .tl__track::before {
    top: 0;
    bottom: 0;
    left: 10px;
    right: auto;
    width: 3px;
    height: 100%;
  }

  .tl__node {
    flex-direction: row;
    text-align: left;
    gap: 1.2rem;
  }

  .tl__dot {
    position: absolute;
    left: -3rem;
  }

  .tl__icon {
    width: 60px;
    height: 60px;
  }
}

/* ── Details Layout Mobile ────────────────── */
@media (max-width: 1024px) {
  .details__main-cards {
    grid-template-columns: 1fr;
  }
}

.card__map-wrapper {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
  background: #eee;
}

.card__map-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details__venue-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 800px;
  margin: 0 auto;
}

.details__venue-image img {
  width: 100%;
}

@media (max-width: 768px) {
  .details__main-cards {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════
   GALLERY · TRIO PREMIUM RESPONSIVE
═══════════════════════════════════════════ */

.section__header--center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.gallery__intro {
  max-width: 620px;
  margin: 1rem auto 0;
  color: var(--text-light);
  line-height: 1.75;
}

.gallery__grid--trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Grid de 2 columnas para galería */
.gallery__grid--duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(120, 110, 90, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Altura máxima para imágenes de galería */
.gallery__item img {
  display: block;
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

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

.gallery__item--panorama img {
  aspect-ratio: 3 / 2;
  max-height: unset;
}

.gallery__item--soft img {
  object-position: center center;
}

/* Hover solo en escritorio o dispositivos con hover real */
@media (hover: hover) and (pointer: fine) {
  .gallery__item img {
    transition: transform 0.7s ease;
  }

  .gallery__item:hover img {
    transform: scale(1.03);
  }
}

/* Tablet */
@media (min-width: 768px) {
  .gallery__grid--trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
  }

  .section__header--center {
    margin-bottom: 3.5rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .gallery__grid--trio {
    gap: 1.5rem;
  }

  .gallery__item--soft {
    transform: translateY(20px);
  }
}

/* Pantallas grandes */
@media (min-width: 1280px) {
  .gallery__grid--trio {
    gap: 1.75rem;
  }

  .section__header--center {
    margin-bottom: 4rem;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {

  .gallery__item,
  .gallery__item img {
    transition: none;
    transform: none;
  }
}

/* ── RSVP Section ───────────────────────── */
.rsvp {
  background: var(--cream-dark);
}

.rsvp__intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

/* Form */
.form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__label {
  display: block;
  font-weight: 700;
  font-size: .88rem;
  color: var(--text);
  margin-bottom: .4rem;
  letter-spacing: .3px;
}

.form__input,
.form__textarea {
  width: 100%;
  font-family: var(--ff-body);
  font-size: .95rem;
  padding: .75rem 1rem;
  border: 1.5px solid var(--beige);
  border-radius: 8px;
  background: var(--cream);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(96, 108, 56, .15);
}

.form__input--short {
  max-width: 120px;
}

.form__textarea {
  resize: vertical;
}

.form__radio-group {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.form__radio {
  display: flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  font-size: .95rem;
}

.form__radio input[type="radio"] {
  accent-color: var(--olive);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form__submit {
  width: 100%;
  margin-top: .5rem;
}

/* Validation */
.form__input.error,
.form__textarea.error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .12);
}

/* Success */
.rsvp__success {
  text-align: center;
  padding: 3rem 1.5rem;
}

.rsvp__success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: popIn .5s ease-out;
}

.rsvp__success h3 {
  font-family: var(--ff-heading);
  font-size: 1.8rem;
  color: var(--burgundy);
  margin-bottom: .75rem;
}

.rsvp__success p {
  color: var(--text-light);
  font-size: 1.05rem;
}

@keyframes popIn {
  0% {
    transform: scale(0);
  }

  70% {
    transform: scale(1.15);
  }

  100% {
    transform: scale(1);
  }
}

/* ── FAQ / Accordion ─────────────────────── */
.accordion__item {
  border-bottom: 1px solid var(--beige);
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.2rem 0;
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  /* hide default marker */
  transition: color var(--transition);
}

.accordion__header::-webkit-details-marker {
  display: none;
}

.accordion__header::after {
  content: '+';
  font-family: var(--ff-body);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--olive);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

details[open] .accordion__header::after {
  content: '−';
}

.accordion__header:hover {
  color: var(--burgundy);
}

.accordion__body {
  padding: 0 0 1.2rem;
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.7;
}

/* ── Contact ────────────────────────────── */
.contact {
  text-align: center;
}

.contact__text {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ────────────────────────────── */
.footer {
  background: var(--burgundy);
  color: rgba(255, 255, 255, .85);
  text-align: center;
  padding: 4rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.footer__text {
  font-family: var(--ff-heading);
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin-bottom: .3rem;
}

.footer__sub {
  font-size: .82rem;
  opacity: .65;
}

/* ── Scroll Reveal ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Utilities ───────────────────────────── */
@media (max-width: 480px) {
  .hero__title {
    font-size: 2.6rem;
  }

  .form {
    padding: 1.5rem 1.2rem;
  }

  .btn {
    padding: .8rem 1.8rem;
    font-size: .82rem;
  }
}

/* ── Utility Classes (inline style replacements) ── */
.section__header {
  text-align: center;
  margin-bottom: 4rem;
}

.btn--inline {
  display: inline-block;
  width: auto;
}

/* ── Nav Overlay (mobile menu backdrop) ── */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition);
}

@media (max-width: 768px) {
  .nav__overlay.active {
    display: block;
    opacity: 1;
  }
}

/* ── RSVP Conditional Fields Animation ── */
#rsvp-conditional-fields {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 0.5s ease-out, opacity 0.4s ease-out;
  overflow: hidden;
}

#rsvp-conditional-fields.is-hidden {
  grid-template-rows: 0fr;
  opacity: 0;
}

#rsvp-conditional-fields>* {
  min-height: 0;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ═══════════════════════════════════════════
   DETAILS SECTION
═══════════════════════════════════════════ */

/* ── Details Intro y Grid (Redefinidos abajo en UNIFICACIÓN VISUAL) ── */

/* Grid principal */


@media (max-width: 860px) {
  .details__main-cards {
    grid-template-columns: 1fr;
  }
}

/* Cards - mantener solo versión unificada al final del archivo */

/* Autobuses - mantener solo versión unificada al final del archivo */

/* ═══════════════════════════════════════════
   HILO CONECTOR
═══════════════════════════════════════════ */

.dia-thread {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 2.1rem auto;
}

.dia-thread__line {
  width: 1px;
  height: 2rem;
  background: rgba(92, 30, 45, 0.10);
}

.dia-thread__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mustard);
  opacity: 0.75;
}

/* ═══════════════════════════════════════════
   TIMELINE WRAPPER
═══════════════════════════════════════════ */

.tl-section {
  width: 100%;
}

.tl-section__heading {
  font-family: var(--ff-heading);
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

/* ═══════════════════════════════════════════
   EVENT-ITEM: contenido
═══════════════════════════════════════════ */

.event-item__content {
  flex: 1;
}

.event-item__time {
  display: block;
  font-family: var(--ff-libre);
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--olive);
  margin-bottom: 0.2rem;
}

.event-item__title {
  font-family: var(--ff-heading);
  font-size: 1.42rem;
  font-weight: 600;
  color: var(--burgundy);
  margin: 0 0 0.22rem;
  letter-spacing: 0.01em;
}

.event-item__desc {
  font-size: 0.94rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

@media (max-width: 760px) {

  .tl-section__heading {
    font-size: 1.35rem;
  }

  .event-item__time {
    font-size: 1.08rem;
  }

  .event-item__title {
    font-size: 1.28rem;
  }

  .event-item__desc {
    font-size: 0.9rem;
  }
}

/* ═══════════════════════════════════════════
   UNIFICACIÓN VISUAL · DETAILS CARDS + BUS
   Pegar al final del styles.css
═══════════════════════════════════════════ */

/* ── Cards principales: Ceremonia + Lugar ── */
.details__main-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
  margin-bottom: 5rem;
  align-items: stretch;
}

.card--detailed {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.8rem 2rem 2rem;
  min-height: 420px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(92, 30, 45, 0.10);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.card--detailed::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: linear-gradient(90deg,
      rgba(92, 30, 45, 0) 0%,
      rgba(92, 30, 45, 0.16) 50%,
      rgba(92, 30, 45, 0) 100%);
}

.card--detailed:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(92, 30, 45, 0.16);
  box-shadow: var(--shadow-card-hover);
}

.card__icon-wrap {
  width: 68px;
  height: 68px;
  margin-bottom: 1.45rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 239, 233, 0.95);
  border: 1px solid rgba(92, 30, 45, 0.08);
}

.card__icon-img,
.card__icon-svg {
  width: 28px;
  height: 28px;
}

.card__icon-img {
  object-fit: contain;
  opacity: 0.76;
}

.card__icon-svg {
  color: var(--burgundy);
  opacity: 0.8;
}

.card--detailed .card__title {
  margin: 0 0 1.4rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.card__body {
  flex: 1;
  margin-bottom: 1.8rem;
}

.card__date {
  margin: 0 0 0.42rem;
  font-family: var(--ff-heading);
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--text);
}

.card__time {
  margin: 0 0 0.8rem;
  font-family: var(--ff-libre);
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--burgundy);
}

.card__note {
  margin: 0 auto;
  max-width: 30ch;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--text-light);
}

/* ── Autobuses ── */
.bus-block {
  width: 100%;
  max-width: 920px;
  margin: 4rem auto 0;
}

.bus-block__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.9rem;
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-light);
  text-align: center;
}

.bus-block__label::before,
.bus-block__label::after {
  content: "";
  width: 62px;
  height: 1px;
  background: rgba(92, 30, 45, 0.14);
}

.bus-block__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.bus-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.5rem;
  padding: 1.7rem 1.8rem;
  min-height: 126px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(92, 30, 45, 0.10);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.bus-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.8rem;
  right: 1.8rem;
  height: 1px;
  background: linear-gradient(90deg,
      rgba(92, 30, 45, 0) 0%,
      rgba(92, 30, 45, 0.16) 50%,
      rgba(92, 30, 45, 0) 100%);
}

.bus-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 30, 45, 0.16);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card-hover);
}

.bus-card__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
}

.bus-card__city {
  font-family: var(--ff-heading);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.02;
  color: var(--burgundy);
  letter-spacing: 0.01em;
}

.bus-card__venue {
  font-family: var(--ff-body);
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text-light);
  font-style: italic;
}

.bus-card__time {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  width: 110px;
  font-family: var(--ff-libre);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1;
  color: var(--olive);
  text-align: right;
  white-space: nowrap;
}

.bus-block--vuelta .bus-card__time {
  color: var(--burgundy);
}

.bus-card__btn {
  grid-column: 1 / -1;
  margin-top: 0.8rem;
  min-width: auto;
  padding: 0.75rem 1.2rem;
  font-size: 0.65rem;
}

.bus-card__btn svg {
  width: 16px;
  height: 16px;
}

/* ── Ajustes responsive ── */
@media (max-width: 860px) {
  .details__main-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .bus-block__cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .bus-card {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.5rem;
    padding: 1.3rem 1.2rem;
    min-height: auto;
  }


  .bus-card__city {
    font-size: 1.5rem;
  }

  .bus-card__venue {
    font-size: 0.92rem;
  }

  .bus-card__time {
    grid-column: 1;
    justify-content: flex-start;
    width: auto;
    text-align: left;
    font-size: 1.1rem;
  }

  .bus-card__btn {
    grid-column: 1 / -1;
    margin-top: 0.6rem;
  }
}

@media (max-width: 640px) {
  .card--detailed {
    padding: 2.35rem 1.4rem 1.8rem;
    min-height: auto;
  }

  .card__date {
    font-size: 1.32rem;
  }

  .card__time {
    font-size: 1rem;
  }

  .card__note {
    max-width: 100%;
  }
}

/* ── Créditos ───────────────────────────── */
.credits {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.credits__text {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.6;
}

.credits__link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: color var(--transition), border-color var(--transition), opacity var(--transition);
}

.credits__link:hover {
  color: var(--mustard);
  border-color: var(--mustard);
}

.form__privacy {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   BOTONES UNIFICADOS
═══════════════════════════════════════════ */

.card__btn,
.card__link,
.card__link--calendar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: auto;
  padding: 0.95rem 1.45rem;
  min-width: 245px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(92, 30, 45, 0.14);
  border-radius: var(--radius-pill);
  box-shadow: none;
  transition:
    transform var(--transition),
    background var(--transition),
    color var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.card__btn svg,
.card__link svg,
.card__link--calendar svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.72;
}

.card__btn:hover,
.card__link:hover,
.card__link--calendar:hover {
  transform: translateY(-2px);
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
  box-shadow: 0 14px 28px rgba(92, 30, 45, 0.12);
}

.card__btn:hover svg,
.card__link:hover svg,
.card__link--calendar:hover svg {
  opacity: 1;
}

@media (max-width: 640px) {
  .card__btn,
  .card__link,
  .card__link--calendar {
    width: 100%;
    min-width: 0;
  }
}

/* ═══════════════════════════════════════════
   14 · BANNER PANORÁMICO
   ═══════════════════════════════════════════ */
.banner-panorama {
  position: relative;
  width: 100%;
  height: clamp(300px, 50vw, 500px);
  overflow: hidden;
}

.banner-panorama__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.banner-panorama__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85);
}

.banner-panorama__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 2rem 2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.banner-panorama__text {
  font-family: var(--ff-heading);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-style: italic;
  color: var(--white);
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
  margin: 0;
}

/* ═══════════════════════════════════════════
   15 · CARRUSEL DE COMUNIÓN
   ═══════════════════════════════════════════ */
.carousel-section {
  background: var(--cream);
  padding: var(--section-py) 0;
}

.carousel {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: var(--shadow-elegant);
  background: var(--white);
}

.carousel__track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel__slide {
  min-width: 100%;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.carousel__slide.active {
  opacity: 1;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  display: block;
  object-fit: contain;
  background: var(--cream-dark);
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  z-index: 10;
}

.carousel__btn:hover {
  background: var(--burgundy);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.carousel__btn--prev {
  left: 1rem;
}

.carousel__btn--next {
  right: 1rem;
}

.carousel__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.carousel__dot.active {
  background: var(--white);
}

.carousel__dot:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
}

.carousel:hover .carousel__btn,
.carousel:hover .carousel__dots {
  opacity: 1;
}

/* Responsive carousel */
@media (max-width: 768px) {
  .carousel__btn {
    width: 40px;
    height: 40px;
  }

  .carousel__btn--prev {
    left: 0.5rem;
  }

  .carousel__btn--next {
    right: 0.5rem;
  }

  .carousel__slide img {
    max-height: 350px;
  }

  /* Galería en móvil: 1 columna */
  .gallery__grid--duo {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery__item img {
    max-height: 380px;
  }
}