/* ═══════════════════════════════════════
   VARIABLES & RESET
═══════════════════════════════════════ */
:root {
  --bg:          #faf8f5;
  --bg-alt:      #f2ede5;
  --bg-dark:     #201d18;
  --text:        #2c2820;
  --text-soft:   #5a5248;
  --accent:      #9c8060;
  --accent-h:    #7d6549;
  --gold:        #c4a96a;
  --gold-light:  #ecdfc0;
  --border:      #ddd5c5;
  --white:       #fffdf9;

  --serif:  'Cormorant Garamond', Georgia, serif;
  --script: 'Great Vibes', cursive;
  --sans:   'Jost', system-ui, sans-serif;

  --nav-h:    60px;
  --radius:   2px;
  --ease:     0.35s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

strong {
  font-weight: 500;
}

/* ═══════════════════════════════════════
   NAVEGACIÓN
═══════════════════════════════════════ */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2.5rem;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav__brand {
  font-family: var(--script);
  font-size: 1.8rem;
  color: var(--text);
  white-space: nowrap;
  padding: 0 2rem;
  text-align: center;
  line-height: 1;
  transition: color var(--ease);
}

.nav__brand:hover {
  color: var(--accent);
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav__list--left {
  justify-content: flex-end;
}

.nav__list--right {
  justify-content: flex-start;
}

.nav__link {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color var(--ease);
  position: relative;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--ease);
}

.nav__link:hover,
.nav__link--active {
  color: var(--accent);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: all 0.3s ease;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('assets/Galeria1.png') center 30% / cover no-repeat;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    155deg,
    rgba(32, 29, 24, 0.25) 0%,
    rgba(32, 29, 24, 0.52) 50%,
    rgba(32, 29, 24, 0.70) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--white);
}

.hero__eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.75rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero__title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(4.5rem, 15vw, 9.5rem);
  line-height: 1;
  color: var(--white);
  margin-bottom: 1.75rem;
}

.hero__amp {
  color: var(--gold);
  font-size: 0.72em;
}

.hero__divider {
  width: 1px;
  height: 55px;
  background: linear-gradient(to bottom, transparent, var(--gold-light), transparent);
  margin: 0 auto 1.75rem;
}

.hero__date {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 0.4em;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero__venue {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 253, 249, 0.88);
  margin-bottom: 3rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 65px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.55), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* Hero reveal */
.reveal-hero {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-hero.is-visible {
  animation: fadeUp 0.9s ease forwards;
}

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

/* ═══════════════════════════════════════
   CUENTA ATRÁS
═══════════════════════════════════════ */
.countdown-section {
  background: var(--bg-dark);
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.countdown-inner {
  max-width: 840px;
  margin: 0 auto;
}

.countdown__label {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.68rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.25rem;
}

.countdown__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

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

.countdown__number {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 5.5rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: 0.04em;
}

.countdown__name {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.6rem;
}

.countdown__sep {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0.4;
}

/* ═══════════════════════════════════════
   SECCIONES
═══════════════════════════════════════ */
.section {
  padding: 7rem 1.5rem;
}

.section--alt {
  background: var(--bg-alt);
}

.section__inner {
  max-width: 1020px;
  margin: 0 auto;
}

.section__inner--split {
  display: flex;
  align-items: center;
  gap: 5rem;
}

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

.section__heading {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  color: var(--text);
  line-height: 1.15;
}

.section__subtitle {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-top: 0.6rem;
}

.section__text {
  flex: 1;
}

.section__text p {
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.section__image-col {
  flex: 0 0 42%;
}

.section__photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
}

.separator {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 1rem 0 1.75rem;
}

.separator--center {
  margin-left: auto;
  margin-right: auto;
}

/* ═══════════════════════════════════════
   NUESTRA HISTORIA
═══════════════════════════════════════ */
.story-timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.story-timeline::before {
  content: '';
  position: absolute;
  left: 68px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}

.story__item {
  display: flex;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  align-items: flex-start;
}

.story__item:last-child {
  margin-bottom: 0;
}

.story__year {
  flex: 0 0 68px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1.35rem;
  color: var(--gold);
  text-align: right;
  padding-right: 2rem;
  padding-top: 0.1rem;
  position: relative;
}

.story__year::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 0.6rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--bg);
}

.story__content {
  flex: 1;
}

.story__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.story__content p {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ═══════════════════════════════════════
   GALERÍA
═══════════════════════════════════════ */
.gallery-section {
  background: var(--bg-dark);
  padding: 5rem 0 0;
}

.gallery-header {
  text-align: center;
  padding: 0 1.5rem 3rem;
}

.gallery-header .section__heading {
  color: var(--white);
}

.gallery-header .section__subtitle {
  color: rgba(255, 253, 249, 0.45);
}

.gallery-header .separator {
  background: var(--gold);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 290px;
  gap: 4px;
}

.gallery__item {
  overflow: hidden;
  cursor: zoom-in;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

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

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

/* Stagger gallery reveal */
.gallery__item:nth-child(2) { transition-delay: 0.07s; }
.gallery__item:nth-child(3) { transition-delay: 0.14s; }
.gallery__item:nth-child(4) { transition-delay: 0.07s; }
.gallery__item:nth-child(5) { transition-delay: 0.14s; }
.gallery__item:nth-child(6) { transition-delay: 0.14s; }
.gallery__item:nth-child(7) { transition-delay: 0.21s; }

/* ═══════════════════════════════════════
   EVENT CARDS (HORARIOS)
═══════════════════════════════════════ */
.event-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.event-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease), transform var(--ease);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(44, 40, 32, 0.10);
}

.event-card__img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.event-card__body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card__time {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.1rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}

.event-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.event-card__place {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.event-card__note {
  font-size: 0.88rem;
  color: var(--text-soft);
  flex: 1;
  margin-bottom: 1.5rem;
}

/* Stagger event cards */
.event-card:nth-child(2) { transition-delay: 0.1s; }
.event-card:nth-child(3) { transition-delay: 0.2s; }

/* ═══════════════════════════════════════
   DETAILS GRID
═══════════════════════════════════════ */
.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2.5rem 2.25rem;
  border-radius: var(--radius);
  transition: box-shadow var(--ease), transform var(--ease);
}

.detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(44, 40, 32, 0.08);
}

.detail-card__icon {
  font-size: 0.9rem;
  color: var(--gold);
  letter-spacing: 0.35em;
  margin-bottom: 1.1rem;
}

.detail-card__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.detail-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.8;
}

/* ═══════════════════════════════════════
   IBAN (GRACIAS)
═══════════════════════════════════════ */
.iban-block {
  margin-top: 2.25rem;
  padding: 1.75rem 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.iban-block__label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.iban-block__code {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  word-break: break-all;
}

.iban-block__toast {
  font-size: 0.8rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.iban-block__toast--visible {
  opacity: 1;
}

/* ═══════════════════════════════════════
   BOTONES
═══════════════════════════════════════ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1rem 2.75rem;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--white);
  cursor: pointer;
  transition: all var(--ease);
  margin-top: 1.75rem;
  border-radius: var(--radius);
}

.btn:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
}

.btn--hero {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.btn--hero:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--white);
}

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

.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn--small {
  font-size: 0.65rem;
  padding: 0.6rem 1.5rem;
  margin-top: 0;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.footer {
  background: var(--bg-dark);
  color: var(--white);
  text-align: center;
  padding: 5rem 1.5rem;
}

.footer__names {
  font-family: var(--script);
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.footer__date {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 2.5rem;
}

.footer__credit {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.28);
  line-height: 1.8;
}

.footer__credit a {
  color: var(--gold);
  transition: color var(--ease);
}

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

/* ═══════════════════════════════════════
   REVEAL ANIMATIONS
═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

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

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 960px) {
  .event-cards {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }

  .details-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 230px;
  }

  .gallery__item--tall {
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .nav {
    grid-template-columns: 1fr auto;
    padding: 0 1.25rem 0 1.25rem;
    position: fixed;
  }

  .nav__list--left,
  .nav__list--right {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0 1.5rem;
    box-shadow: 0 8px 32px rgba(44, 40, 32, 0.08);
    z-index: 199;
  }

  .nav__list--left.is-open {
    display: flex;
  }

  .nav__list--right {
    display: none !important;
  }

  .nav__list--left li {
    width: 100%;
    text-align: center;
  }

  .nav__link {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 0.74rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__toggle {
    display: flex;
    position: static;
    transform: none;
  }

  .nav__brand {
    padding: 0;
    font-size: 1.5rem;
  }

  .section {
    padding: 5rem 1.25rem;
  }

  .section__inner--split {
    flex-direction: column;
    gap: 2.5rem;
  }

  .section__image-col {
    flex: none;
    width: 100%;
  }

  .section__photo {
    height: 340px;
  }

  .story-timeline::before {
    left: 54px;
  }

  .story__year {
    flex: 0 0 54px;
    font-size: 1.1rem;
    padding-right: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 190px;
  }

  .countdown__unit {
    min-width: 72px;
  }

  .countdown__sep {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(3.8rem, 20vw, 5.5rem);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 155px;
  }

  .gallery__item--wide {
    grid-column: span 2;
  }

  .countdown__sep {
    display: none;
  }

  .countdown__grid {
    gap: 1.25rem;
  }

  .countdown__unit {
    min-width: 64px;
  }
}
