@font-face {
  font-family: 'LeJourSerif';
  src: url('../assets/fonts/LeJourSerif.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'LeJourScript';
  src: url('../assets/fonts/LeJourScript.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'EyesomeScript';
  src: url('../assets/fonts/EyesomeScript.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --font-display: 'LeJourSerif', Georgia, serif;
  --font-serif: 'LeJourSerif', Georgia, serif;
  --font-script: 'LeJourScript', 'LeJourSerif', cursive;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --color-bg: #FAF6F0;
  --color-cream: rgba(243,233,220,0.82);
  --color-text: #3B2A20;
  --color-text-soft: #6B5A4B;
  --color-accent: #A8763E;
  --color-sage: #7C8563;
  --color-line: #DCCFBD;

  --max-width: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ---------- REVEAL ---------- */
.has-js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.16,.8,.28,1), transform 0.7s cubic-bezier(.16,.8,.28,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- MASTHEAD ---------- */
.masthead {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(250, 246, 240, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

.masthead.is-visible {
  transform: translateY(0);
}

.masthead__logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex: none;
}

.masthead__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text);
}

.masthead__date {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

@media (prefers-reduced-motion: reduce) {
  .masthead { transition: none; }
}

body {
  margin: 0;
  background: var(--color-bg) url('../assets/img/BG linen.jpg?v=2') repeat;
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin: 0 0 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0 0 8px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../assets/img/hero.jpg') 25% 30% / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,20,12,0.35) 0%, rgba(30,20,12,0.45) 55%, rgba(20,14,9,0.7) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 32px 24px;
}

.hero .eyebrow {
  color: rgba(255,255,255,0.85);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 12vw, 5.5rem);
  margin: 6px 0 14px;
  line-height: 1.1;
}

.hero__title .amp {
  font-family: var(--font-script, var(--font-display));
  font-size: 0.75em;
  padding: 0 0.1em;
}

.hero__date {
  margin-bottom: 28px;
}

.countdown {
  display: flex;
  gap: 18px;
  justify-content: center;
}

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

.countdown__number {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  line-height: 1;
}

.countdown__label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
}

/* ---------- INVITATION ---------- */
.invitation {
  padding: 56px 0 48px;
  text-align: center;
}

.invitation__text {
  font-family: 'Montserrat', var(--font-sans);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.8;
  color: var(--color-text);
  max-width: 560px;
  margin: 0 auto;
}

.invitation__text + .invitation__text {
  margin-top: 18px;
}

.divider {
  display: block;
  margin-top: 32px;
  color: var(--color-sage);
  font-size: 1.2rem;
}

/* ---------- AGENDA ---------- */
.agenda {
  background: #C08429;
  padding: 52px 0 44px;
  text-align: center;
}

.agenda__eyebrow {
  font-family: 'Montserrat', var(--font-sans);
  color: #FADC9A;
}

.agenda__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 2.8rem);
  letter-spacing: 0.04em;
  color: #FADC9A;
  margin: 0 0 4px;
}

.agenda__place {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 246, 230, 0.85);
  margin: 0 0 40px;
}

.agenda__accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.agenda__day {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  background: #AB2A02;
}

.agenda__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.agenda__icon {
  width: 36px;
  height: 36px;
  flex: none;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.agenda__day-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agenda__day-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #FADC9A;
}

.agenda__day-date {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.agenda__chevron {
  width: 12px;
  height: 12px;
  border-right: 1.5px solid #F2D275;
  border-bottom: 1.5px solid #F2D275;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex: none;
}

.agenda__day.is-open .agenda__chevron {
  transform: rotate(-135deg);
}

.agenda__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.agenda__list {
  list-style: none;
  margin: 0;
  padding: 0 20px 20px 64px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.agenda__note {
  margin: 0;
  padding: 0 20px 20px 64px;
  font-family: 'Montserrat', var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

.agenda__list li {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  position: relative;
}

.agenda__list li::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #F2D275;
}

.agenda__time {
  font-family: var(--font-serif);
  color: #F2D275;
  margin-right: 8px;
}

/* ---------- GALLERY ---------- */
.gallery {
  padding: 0 0 56px;
}

.gallery__grid {
  display: flex;
  gap: 6px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}

.gallery__grid::-webkit-scrollbar { display: none; }

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

.gallery__item {
  display: block;
  flex: 0 0 auto;
  width: 66%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  scroll-snap-align: center;
  -webkit-tap-highlight-color: transparent;
}

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

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

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 8, 6, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__arrow--prev { left: 12px; }
.lightbox__arrow--next { right: 12px; }

.lightbox__arrow:hover { background: rgba(255,255,255,0.22); }

@media (max-width: 480px) {
  .lightbox__arrow { width: 40px; height: 40px; font-size: 2rem; }
  .lightbox__close { font-size: 1.9rem; }
}

/* ---------- VENUE ---------- */
.venue {
  background: #F2D275;
  padding: 56px 0;
  text-align: center;
}

.venue__location {
  color: var(--color-text-soft);
  margin: 0 0 28px;
}

.venue__map {
  width: 100%;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(59,42,32,0.12);
}

.venue__note {
  font-family: 'Montserrat', var(--font-sans);
  font-size: 0.78rem;
  color: var(--color-text-soft);
  margin: 12px 0 44px;
}

.venue__note-link {
  color: #AB2A02;
  text-decoration: underline;
  font-weight: 600;
}

.venue__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 32px 0 0;
}

.venue__photo {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-line), var(--color-cream));
}

.venue__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.venue__photo.is-placeholder img { display: none; }
.venue__photo.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.venue__photo.is-placeholder::after {
  content: '📷';
  font-size: 1.6rem;
  opacity: 0.5;
}

.lodging { margin-top: 20px; }

.lodging__grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.lodging__card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #AB2A02;
  border: 1px solid #AB2A02;
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: #fff;
  text-align: left;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.lodging__card:hover {
  opacity: 0.92;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(128,20,42,0.25);
}

.lodging__name { font-weight: 600; font-size: 0.95rem; color: #fff; }

.lodging__link {
  font-size: 0.8rem;
  color: #fff;
  white-space: nowrap;
}

/* ---------- DRESS CODE ---------- */
.dresscode {
  padding: 56px 0;
  text-align: center;
}

.dresscode__grid {
  display: grid;
  gap: 32px;
  margin-top: 36px;
  text-align: left;
}

.dresscode__col {
  background: #FADC9A;
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dresscode__col:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(59,42,32,0.16);
}

.dresscode__hero-img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto 32px;
}

.dresscode__col h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #AB2A02;
}

.dresscode__col p { margin: 0 0 8px; color: var(--color-text-soft); line-height: 1.6; font-family: 'Montserrat', var(--font-sans); }

.dresscode__note { margin-top: 14px !important; font-size: 0.9rem; color: var(--color-text-soft); font-family: 'Montserrat', var(--font-sans); }

.swatches {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  font-family: 'Montserrat', var(--font-sans);
  gap: 12px;
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.swatches li { display: flex; align-items: center; gap: 6px; }

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  display: inline-block;
}

.swatches--palette { gap: 8px; }
.swatches--palette .swatch { width: 20px; height: 20px; }

/* ---------- RECOMENDACIONES CLAVE ---------- */
.tips {
  padding: 56px 0;
  text-align: center;
}

.tips__grid {
  display: grid;
  gap: 20px;
  margin-top: 36px;
  text-align: left;
}

.tips__card {
  background: #3E5526;
  border-radius: 12px;
  padding: 28px 24px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tips__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(59,42,32,0.22);
}

.tips__card-img {
  display: block;
  width: calc(100% + 48px);
  margin: -28px -24px 18px;
  aspect-ratio: 700 / 257;
  object-fit: cover;
}

.tips__card p {
  margin: 0;
  color: #FFFFFF;
  line-height: 1.6;
}

/* ---------- REGISTRY ---------- */
.registry {
  background: var(--color-cream);
  padding: 56px 0 64px;
  text-align: center;
}

.venue .section-title,
.lodging .eyebrow,
.tips .section-title,
.registry .section-title {
  color: #AB2A02;
}

.registry__text {
  font-family: 'Montserrat', var(--font-sans);
  color: var(--color-text-soft);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.registry__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(59,42,32,0.18);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn:active { transform: scale(0.97); }

.btn--outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

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

.venue .btn--outline {
  background: #AB2A02;
  border-color: #AB2A02;
  color: #fff;
}

.venue .btn--outline:hover { opacity: 0.88; }

.btn--fill {
  background: #C08429;
  color: #fff;
  min-width: 160px;
}

.btn--fill:hover { opacity: 0.88; }

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 32px 24px;
  font-family: var(--font-serif);
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

/* ---------- RESPONSIVE ---------- */
@media (min-width: 640px) {
  .venue__map { height: 400px; }
  .dresscode__grid { grid-template-columns: 1fr 1fr; }
  .tips__grid { grid-template-columns: repeat(3, 1fr); }
  .lodging__grid { grid-template-columns: repeat(3, 1fr); }
  .lodging__card { flex-direction: column; align-items: flex-start; gap: 6px; }
  .gallery__grid { gap: 10px; padding: 0 10px; }
  .gallery__item { width: 40%; }
}

@media (min-width: 900px) {
  /* Venue: mosaico asimétrico — foto grande a la izquierda, dos apiladas a la derecha */
  .venue__gallery {
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    height: 460px;
  }
  .venue__photo { aspect-ratio: auto; height: 100%; }
  .venue__photo:nth-child(1) { grid-row: 1 / 3; }

  /* Galería: mosaico asimétrico en vez del slide lateral (mobile conserva el slide) */
  .gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    max-width: 1100px;
    overflow: visible;
    scroll-snap-type: none;
    cursor: default;
  }
  .gallery__item {
    width: auto;
    aspect-ratio: auto;
    scroll-snap-align: none;
  }
  .gallery__item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
  .gallery__item:nth-child(6n+4) { grid-row: span 2; }
}

@media (max-width: 420px) {
  .countdown { gap: 10px; }
  .countdown__item { min-width: 48px; }
  .venue__gallery { gap: 8px; }
}
