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

:root {
  --ivory:     #f5f0e8;
  --ivory-2:   #ede6d8;
  --sand:      #d4c4a8;
  --gold:      #a8895a;
  --gold-pale: #c9aa78;
  --sea:       #5a8fa8;
  --sea-dark:  #3a6478;
  --earth:     #6a4e2e;
  --text:      #2c2418;
  --text-mid:  #5a4a38;
  --text-light:#8a7868;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--ivory);
  color: var(--text);
  overflow-x: hidden;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}
a {
  color: var(--text-mid);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: saturate(0.8) brightness(0.88) contrast(1.05);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center top, transparent 40%, rgba(20,14,8,0.18) 100%),
    linear-gradient(to bottom,
      rgba(20,14,8,0.02) 0%,
      rgba(20,14,8,0.0)  35%,
      rgba(245,240,232,0.55) 68%,
      rgba(245,240,232,1)   100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 2rem 5rem;
  animation: heroReveal 2s cubic-bezier(0.22,0.61,0.36,1) both;
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.6rem;
}

.hero-names {
  font-family: 'EB Garamond', serif;
  font-size: clamp(4.5rem, 13vw, 10rem);
  font-weight: 400;
  font-style: italic;
  line-height: 0.88;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-names .amp {
  font-style: normal;
  font-size: 0.55em;
  color: var(--gold);
  display: inline-block;
  vertical-align: middle;
  margin: 0 0.18em;
  line-height: 1;
}

.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin: 1.6rem auto 1.4rem;
}
.hero-rule-line {
  height: 1px;
  width: 70px;
  background: var(--gold);
  opacity: 0.5;
}
.hero-rule-diamond {
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.8;
}

.hero-date {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.7rem, 1.6vw, 0.88rem);
  letter-spacing: 0.3em;
  color: var(--text-mid);
  font-weight: 400;
}

.hero-place {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-style: italic;
  color: var(--sea-dark);
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
}

/* ─── ORNAMENT BAR ─── */
.ornament-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.4rem 2rem;
  gap: 0.6rem;
}
.ob-line { height: 1px; flex: 1; max-width: 180px; background: var(--sand); }
.ob-text {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-pale);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* ─── SECTIONS ─── */
section {
  padding: 5rem 2rem;
  max-width: 780px;
  margin: 0 auto;
}

.section-tag {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 1.2rem;
}

.section-heading {
  font-family: 'EB Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

/* ─── INTRO ─── */
.intro { text-align: center; }

.intro-body {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-mid);
  max-width: 560px;
  margin: 1.4rem auto 0;
}


.intro-body-2 {
  font-family: 'EB Garamond', serif;
  font-size: clamp(0.8rem, 0.9vw, 1.0rem);
  font-weight: 300;
  line-height: 0.30;
  color: var(--text-mid);
  max-width: 560px;
  margin: 1.4rem auto 0;
}

    
    
/* ─── PROGRAMME ─── */
.programme { text-align: center; }

.programme-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 3rem;
  text-align: left;
}

.programme-table thead tr {
  border-bottom: 1px solid var(--sand);
}

.programme-table th {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  font-weight: 400;
  color: var(--text-light);
  text-transform: uppercase;
  padding: 0 1.5rem 1rem;
}
.programme-table th:first-child { padding-left: 0; }

.programme-table tbody tr {
  border-bottom: 1px solid rgba(212,196,168,0.35);
  transition: background 0.25s;
}
.programme-table tbody tr:hover { background: rgba(212,196,168,0.12); }

.programme-table td {
  padding: 1.8rem 1.5rem;
  vertical-align: top;
}
.programme-table td:first-child { padding-left: 0; }

.td-day {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--sea-dark);
  white-space: nowrap;
}

.td-event {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
}

.td-date {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.td-desc {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-mid);
}

.row-wedding td { background: rgba(168,137,90,0.04); }
.row-wedding .td-event { color: var(--earth); }



/* ─── RSVP ─── */
.rsvp {
  text-align: center;
  padding: 5rem 2rem 6rem;
  max-width: 780px;
  margin: 0 auto;
}

.rsvp-frame {
  border: 1px solid rgba(168,137,90,0.35);
  padding: 4rem 3rem;
  position: relative;
  background: var(--ivory);
}

.rsvp-frame::before,
.rsvp-frame::after {
  content: '';
  position: absolute;
  width: 28px; height: 28px;
  border-color: var(--gold-pale);
  border-style: solid;
  opacity: 0.6;
}
.rsvp-frame::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.rsvp-frame::after  { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

.rsvp-instruction {
  font-family: 'Cinzel', serif;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.rsvp-text {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.85;
  color: var(--text-mid);
  max-width: 480px;
  margin: 0 auto 2.8rem;
}

.rsvp-btn {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--text);
  padding: 1.1rem 3.2rem;
  text-decoration: none;
  border: 1px solid var(--text);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.rsvp-btn:hover {
  background: var(--earth);
  border-color: var(--earth);
  color: var(--ivory);
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid rgba(212,196,168,0.5);
  padding: 2.5rem 2rem;
  text-align: center;
}

.footer-monogram {
  font-family: 'EB Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text-mid);
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.footer-sub {
  font-family: 'Cinzel', serif;
  font-size: 0.58rem;
  letter-spacing: 0.4em;
  color: var(--gold);
}
/* Botón de Idioma */
.lang-switch {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 100;
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lang-switch a {
  text-decoration: none;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.5rem 0.8rem;
  transition: all 0.3s ease;
  background: rgba(245, 240, 232, 0.6); /* Fondo semi-transparente para que se vea sobre la imagen */
  backdrop-filter: blur(2px);
}

.lang-switch a:hover {
  background: var(--gold);
  color: var(--ivory);
}

@media (max-width: 640px) {
  .lang-switch {
    top: 1.5rem;
    right: 1rem;
  }
}
/* ─── ANIMATIONS ─── */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .hero-content { padding-bottom: 4rem; }
  .place-cols { grid-template-columns: 1fr; }
  .place-col { border-right: none; border-bottom: 1px solid rgba(212,196,168,0.5); }
  .place-col:last-child { border-bottom: none; }
  .rsvp-frame { padding: 3rem 1.5rem; }
  .programme-table { display: block; }
  .programme-table thead { display: none; }
  .programme-table tbody, .programme-table tr, .programme-table td { display: block; }
  .programme-table tr { padding: 1.5rem 0; border-bottom: 1px solid rgba(212,196,168,0.35); }
  .programme-table td { padding: 0.2rem 0; }
}

.scrolling-bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1; /* Keeps it behind everything */
  overflow: hidden;
}

.bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.bg-layer.active {
  opacity: 1;
}

/* Transparency */
section, header {
  background: transparent !important;
}
.reveal {
  background: rgba(255, 255, 255, 0.87) !important; 
  margin: 40px auto; 
  padding: 40px;
  border-radius: 8px;
  width: 90%;  
  max-width: 780px;  
  display: block; 
}