* {
  -webkit-tap-highlight-color: transparent;
}
body {
  font-family: var(--font-secondary);
  background: var(--ivory);
  color: var(--mid);
  overflow-x: hidden;
  width: 100%;
}

.text-primary{
    color: var(--gold);
}

/* ── CANVAS ── */
#petals-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* ── NAVBAR ── */
#navbar {
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  transition: background var(--transition), backdrop-filter var(--transition);
  flex-direction: column; 
  justify-content: center; 
  padding: 0.5rem 2rem 0.5rem; 
  gap: 0.5rem;
}
#navbar.scrolled {
  background: rgba(255,253,247,0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
#navbar ul {
  list-style: none;
  display: flex;
  gap: 3.2rem;
  align-items: center;
}
#navbar a {
  font-family: var(--font-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  transition: color var(--transition);
}
#navbar.scrolled a { color: var(--gold); }
/*
#navbar a.nav-cta {
  border: 1px solid var(--ivory);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  transition: all var(--transition);
}

#navbar a.nav-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ivory) !important;
}
*/
#navbar-menu {
  display: flex; 
  width: 100%; 
  max-width: 1200px; 
  margin: 0 auto; 
  justify-content: center; 
  position: relative; 
  align-items: center;
}

/* ── Language switcher ── */
.lang-switcher {
  position: absolute;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.lang-btn {
    border: none;
  background: none;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem;
  /*border-radius: 50px;*/
  color: rgba(255,255,255,0.55);
  /*transition: color var(--transition);*/
  /*border: 1px solid var(--gold2);*/
}
#navbar.scrolled .lang-btn { color: var(--gold); }
.lang-btn.active {
  color: var(--gold2);
  font-weight: 600;
}
#navbar.scrolled .lang-btn.active { color: var(--gold); }
.lang-btn:hover { color: var(--gold2); }
.lang-sep {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
  line-height: 1;
}
#navbar.scrolled .lang-sep { color: rgba(0,0,0,0.2); }


/* ── HERO ── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(145deg, #2A1D13 0%, #402E1D 50%, #1C120A 100%);
  padding-bottom: 60px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(201,169,110,0.15) 0%, rgba(28,18,10,0.4) 40%, rgba(28,18,10,0.95) 100%);
  z-index: 1;
}

/* ── HERO GRID REFACTOR ── */
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: 1fr auto 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 0px 2vw 10px; 
  pointer-events: none;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.hero-grid *,
.hero-grid > div {
  -webkit-user-select: none;
  user-select: none;
}
.hero-grid > div { pointer-events: auto; }

.hg-top { 
    grid-column: 2; 
    grid-row: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center; 
    gap: 0em; 
    height: 100%; 
    padding-top: 7vh; 
    margin: 0; 
    z-index: 3; 
}
.hg-bottom { 
    grid-column: 2; 
    grid-row: 3; 
    display: flex; 
    flex-direction: column; 
    justify-content: flex-start; 
    align-items: center; 
    gap: 0em; 
    height: 100%; 
    padding-top: 0vh; 
    margin: 0; 
    z-index: 3; 
}
.hg-date { 
    grid-column: 1 / 4; 
    grid-row: 4; 
    text-align: center; 
    margin-top: clamp(1rem, 3vh, 2rem); 
}
.hg-left { 
    grid-column: 1; 
    grid-row: 2; 
    display: flex; 
    justify-content: flex-end; 
    align-items: center; 
    width: 100%; 
    /* OLD: margin-right: -20vw; */
    margin-right: -20vmin; 
    padding-right: 0; 
    gap: 0rem; 
    z-index: 3; 
}
.hg-right { 
    grid-column: 3; 
    grid-row: 2; 
    display: flex; 
    justify-content: flex-start; 
    align-items: center; 
    width: 100%; 
    /* OLD: margin-left: -20vw; */
    margin-left: -20vmin; 
    padding-left: 0; 
    gap: 0rem; 
    z-index: 3; 
}

.hg-center {
  grid-column: 2; 
  grid-row: 2; 
  /* OLD: width: 40vw; */
  width: 40vmin; 
  min-width: 160px;
  max-width: 450px; 
  /* OLD: max-height: 35vh; */
  max-height: 40vmin;
  z-index: 1;
}

.hover-scale-css {
  cursor: default;
}

/* logo when not resalted */
.hover-scale-css span {
  font-family: var(--font-primary);
  font-weight: 100;
  opacity: 0.9;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(135deg, #E8C4B8 0%, #C9A96E 50%, #8C7343 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px #231910; /* Hacks to make it thinner by blending with dark background */
  transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 1s ease, color 1s ease;
  display: inline-block;
  line-height: 1;
}

/* OLD:
.hg-top span { font-size: clamp(1.2rem, 6vh, 3.5rem); }
.hg-bottom span { font-size: clamp(0.9rem, 3.2vh, 2.5rem); }
.hg-left span, .hg-right span { font-size: clamp(1rem, 7vw, 4.5rem); }
*/
.hg-top span { font-size: clamp(1.2rem, 8vmin, 3.5rem); }
.hg-bottom span { font-size: clamp(0.9rem, 4.5vmin, 2.5rem); }
.hg-left span, .hg-right span { font-size: clamp(1rem, 7vmin, 4.5rem); }

/*.hover-scale-css:hover span,*/
/*.hover-scale-css:active span,*/
.hero-grid.highlight-all-names .hover-scale-css span,
.hover-scale-css.highlight span {
  transform: scale(1.25);
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: #FFF4E0;
  filter: drop-shadow(0 0 10px rgba(201,169,110,0.4));
}

.hover-scale-a {
  transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), stroke 1s ease, stroke-width 1s ease;
  transform-box: fill-box;
  transform-origin: center;
  cursor: default;
}

.hover-scale-heart {
  transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), stroke 1s ease;
  transform-box: fill-box;
  transform-origin: center;
  pointer-events: auto;
  cursor: pointer;
}

/* ── RESPONSIVE MOBILE/PORTRAIT ── */
@media (max-width: 900px) {
    .hero-grid{
        padding: 10px 2vw 20px
    }
  .hg-center {
    width: 35vw;
  }
  .hg-left {
    margin-right: -12vw;
  }
  .hg-right {
    margin-left: -12vw;
  }
  .hg-bottom {
    padding-top: 0;
    margin-top: -17vh;
  }
  .hg-left span,
  .hg-right span {
    font-size: clamp(1rem, 7vw, 4rem);
  }
  .hg-top span,
  .hg-bottom span {
    font-size: clamp(1rem, 5vw, 4rem);
  }
}

@media (max-width: 600px) {
  .hero-grid {
    grid-template-rows: 0.5fr auto 1fr auto;
  }
  .hg-center {
    width: 35vw;
  }
  .hg-left {
    margin-right: -12vw;
  }
  .hg-right {
    margin-left: -12vw;
  }
  .hg-left span,
  .hg-right span {
    font-size: clamp(1rem, 9vw, 4.5rem);
  }
  .hg-top span,
  .hg-bottom span {
    font-size: clamp(1rem, 8vw, 4.5rem);
    /*font-size: clamp(1rem, 9vw, 4.5rem);*/
  }
  .hg-bottom {
    padding-top: 0;
    margin-top: -12vh;
  }
  .hg-top {
    padding-bottom: 2vh;
  }
}

@media (max-width: 400px) {
  .hero-grid {
    grid-template-rows: 0.5fr auto 1fr auto;
  }
  .hg-center {
    width: 35vw;
  }
  .hg-left {
    margin-right: -12vw;
  }
  .hg-right {
    margin-left: -12vw;
  }
  .hg-left span,
  .hg-right span {
    font-size: clamp(1rem, 10vw, 4.5rem);
  }
  .hg-top span,
  .hg-bottom span {
    font-size: clamp(1rem, 10vw, 4.5rem);
    /*font-size: clamp(1rem, 9vw, 4.5rem);*/
  }
  .hg-bottom {
    padding-top: 0;
    margin-top: -12vh;
  }
  .hg-top {
    padding-bottom: 2vh;
  }
}

/* ── RESPONSIVE PARA PANTALLAS ENORMES (>1500px) ── */
@media (min-width: 1200px) {
  .hg-left {
    margin-right: -100px; /* Al usar px en lugar de vw, no se monta infinito */
  }
  .hg-right {
    margin-left: -100px;
  }
  .hg-top{
    margin-bottom: -10px;
  }
  .hg-bottom{
    margin-top: -150px;
  }
  .hg-left span,
  .hg-right span {
    font-size: 3.5rem; /* Tamaño máximo de fuente */
  }
  .hg-top span,
  .hg-bottom span {
    font-size: 2.9rem;
  }
  .hg-center {
    max-width: 300px; /* Aquí puedes controlar el ancho de la A (el svg central) */
  }
}

/*.interactive-group:hover .hover-scale-a, 
.hover-scale-a:hover,
.hero-grid:has(.hover-scale-css:hover) .hover-scale-a,*/
.hover-scale-a.highlight,
.hero-grid.highlight-all-names .hover-scale-a {
  transform: scale(1.03);
  stroke: #FFF4E0 !important;
  stroke-width: 16 !important;
}

.interactive-group:hover .hover-scale-heart, 
.hero-grid:has(.hover-scale-css:hover) .hover-scale-heart {
  transform: scale(1.03);
  stroke: #FFF4E0 !important;
}

.hover-scale-heart:hover {
  transform: scale(1.4) !important;
  stroke: #FFF4E0 !important;
}
.hero-content {
  position: absolute;
  top: 55vh;
  left: 0;
  width: 100%;
  z-index: 2;
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}
.hero-pre {
  font-family: var(--font-secondary);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--blush2);
}
.hero-content h1 {
  font-family: var(--font-primary);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.hero-bg-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.ampersand {
  font-style: italic;
  color: var(--gold2);
}
.hero-date {
  font-family: var(--font-primary);
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--blush2);
}
.hero-divider {
  font-size: 2.02rem;
  color: var(--gold2);
  opacity: 0.7;
  line-height: 1;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-hint span {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  position: relative;
}
.scroll-hint span::after {
  content: '';
  position: absolute;
  top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 2px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; top: 5px; }
  100% { opacity: 0; top: 20px; }
}

/* ── FADE-IN ANIMATIONS ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.9s forwards;
}
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

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

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  font-family: var(--font-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  /*color: var(--dark);*/
  color: white;
  background: linear-gradient(135deg, var(--gold2) 0%, var(--gold) 100%);
  padding: 0.85rem 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(201,169,110,0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,169,110,0.5);
  filter: brightness(1.05);
}
.btn-primary:active { transform: translateY(-1px); }
.btn-full { width: 100%; padding: 1rem; }

/* ── SECTION SHARED ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-label {
  font-family: var(--font-secondary);
  font-size: 0.81rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.story-title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    text-align: center;
}
.story-title-icon {
    flex: 0 0 auto;
}
h2 {
  font-family: var(--font-primary);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 1rem;
}

/* ── COUNTDOWN ── */
/* ── HERO COUNTDOWN ── */
.hero-countdown {
  margin-top: 0rem;
}
.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.count-item { display: flex; flex-direction: column; min-width: 60px; text-align: center; }
.count-num {
  font-family: var(--font-primary);
  font-size: 2.48rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.count-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.3rem;
  color: rgba(255,255,255,0.6);
}
.count-sep { font-size: 1.69rem; font-weight: 300; color: rgba(201,169,110,0.4); margin-top: -1rem; }

/* ── HISTORIA ── */
.section-light  { padding: 4rem 0; background: var(--ivory); }
.section-dark   { padding: 4rem 0; background: var(--mid); color: var(--ivory2); }
.section-dark h2 { color: var(--ivory); }

.timeline {
  position: relative;
  max-width: 600px;
  margin: 3.5rem auto 0;
}
.tl-item {
  position: relative;
  margin-bottom: 3rem;
  display: block;
}
.tl-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ivory2);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.46rem;
  flex-shrink: 0;
  position: absolute;
  left: -1.5rem;
  top: 0;
  box-shadow: 0 0 0 6px var(--ivory);
}
.tl-content { padding-left: 0; }
.tl-content h3 {
  font-family: var(--font-primary);
  font-size: 1.57rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}
.tl-year {
  font-size: 0.79rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}
.tl-content p {
  font-size: 1.03rem;
  line-height: 1.7;
  color: var(--light-text);
}

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,169,110,0.25);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
  backdrop-filter: blur(6px);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: rgba(201,169,110,0.08);
}
.card-icon { font-size: 2.48rem; margin-bottom: 1rem; }
.card h3 {
  font-family: var(--font-primary);
  font-size: 1.57rem;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 0.25rem;
}
.card-time {
  font-size: 0.79rem;
  letter-spacing: 0.3em;
  color: var(--gold2);
  margin-bottom: 0.75rem;
  display: block;
}
.card p { font-size: 0.99rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold2);
  text-decoration: none;
  border-bottom: 1px solid rgba(201,169,110,0.3);
  transition: border-color var(--transition), color var(--transition);
}
.card-link:hover { color: var(--gold2); border-color: var(--gold2); }

/* ── DRESS CODE ── */
.dress-code {
  text-align: center;
  margin-top: 4rem;
  padding: 3rem 2rem;
  border-top: 1px solid rgba(201,169,110,0.2);
}
.palette {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}
.color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform var(--transition);
}
.color-swatch:hover { transform: scale(1.2); }
.dress-code > p:last-child {
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  line-height: 1.9;
  color: #FFFFFF;/*rgba(255,255,255,0.55);*/
}

/* ── RSVP FORM ── */
.rsvp-note {
  font-size: 1.01rem;
  color: var(--light-text);
  margin-bottom: 2.5rem;
  text-align: center;
}
.rsvp-note strong { color: var(--gold); }
#rsvp-deadline-text{
    font-size: 1.5em;
}

#guest-rsvp-form,
#rsvp-form {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 8px 50px rgba(0,0,0,0.07);
  border: 1px solid rgba(201,169,110,0.15);
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}
.rsvp-form--legacy[hidden] {
  display: none !important;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}
.guest-details-panel {
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.38s ease, opacity 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}
.guest-details-panel.is-open {
  max-height: 1110px;
  opacity: 1;
  transform: translateY(0);
}
.guest-details-panel[aria-hidden="true"] {
  pointer-events: none;
}
.form-group input:disabled,
.form-group select:disabled,
.form-group textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.contact-info-box {
  border: 1.5px solid rgba(201,169,110,0.55);
  border-radius: 8px;
  padding: 1rem;
  margin: 0 0 1.25rem;
  background: rgba(201,169,110,0.06);
}
.contact-info-box .form-group:last-child {
  margin-bottom: 0;
}
.contact-info-disclaimer {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
  font-weight: bold;
}
/*
.form-group label {
  font-size: 0.81rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light-text);
}
*/
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-secondary);
  font-size: 1.03rem;
  color: #1C1C1C;
  background: #FFFDF7;
  border: 1.5px solid var(--gold);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-group select {
  -webkit-appearance: none !important;
  appearance: none !important;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23C9A96E%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E') !important;
  background-color: #FFFDF7 !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 1.2rem !important;
  padding-right: 2.5rem !important;
  color: #1C1C1C !important;
  border: 1.5px solid #C9A96E !important;
  opacity: 1 !important;
  display: block !important;
  visibility: visible !important;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}
.form-group input.invalid,
.form-group select.invalid {
  border-color: #E07070;
  box-shadow: 0 0 0 3px rgba(224,112,112,0.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }

/* ── FORM MESSAGES ── */
.form-msg {
  text-align: center;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
}
.form-msg span { font-size: 3.38rem; display: block; margin-bottom: 1rem; }
.form-msg h3 {
  font-family: var(--font-primary);
  font-size: 2.02rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.form-msg p { font-size: 1.01rem; color: var(--light-text); }
.form-msg--success { background: linear-gradient(135deg, #F0FAF0, #E8F5E8); border: 1px solid #A8D5A8; }
.form-msg--error   { background: linear-gradient(135deg, #FFF0F0, #FAE8E8); border: 1px solid #E0A0A0; }
.contact-action {
  max-width: 500px;
  margin: 2rem auto 0;
}

.contact-status {
  min-height: 1.3rem;
  margin: -0.25rem 0 1rem;
  color: #A33;
  font-size: 0.92rem;
  text-align: center;
}
.contact-status.success {
  color: #3F7B52;
}

#toast-container {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
  width: calc(100% - 2rem);
  max-width: 450px;
}
.toast {
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1.4rem;
  border-radius: 10px;
  background: #4CAF50;
  color: #FFFFFF;
  font-family: var(--font-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.error {
  background: #E07070;
}

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOOTER ── */
#footer {
  background: var(--dark);
  color: var(--ivory);
  text-align: center;
  padding: 5rem 2rem 8rem;
}
.footer-ornament {
  font-size: 2.25rem;
  color: var(--gold);
  opacity: 0.6;
  margin-bottom: 1rem;
}
.footer-names{
    font-family: var(--font-primary);    
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.footer-names-text {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}
.footer-names-heart{    
    color: var(--color-primary);
    font-size: clamp(1.5rem, 6vw, 4rem);
}
.footer-date {
  font-size: 1.2rem;
  letter-spacing: 0.4em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.footer-quote {
  font-family: var(--font-primary);
  font-size: 1.12rem;
  font-style: italic;
  color: #FFFFFF;/*rgba(255,255,255,0.45);*/
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.footer-credit {
  font-size: 0.81rem;
  letter-spacing: 0.15em;
  color: var(--gold2)
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  #navbar {
    flex-direction: column;
    padding: 0.5rem 0.5rem;
    gap: 0.5rem;
    justify-content: center;
  }
  #navbar ul {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    font-size: 0.85rem;
    padding: 0 2.75rem;
    gap: 0;
  }
  #navbar li,
  #navbar li a {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
  }
  #navbar a.nav-cta {
    padding: 0.4rem;
  }
  .lang-switcher {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
  }
  .hero-bg-logo {
    object-position: 65% center;
  }
  #hero { padding-top: 60px; }
  .section-light, #historia, #rsvp { padding: 4rem 0; }
  
  .container { padding: 0 1rem; }
  
  .rsvp-form-container {
    padding: 2rem 1.2rem;
  }
  .form-row { grid-template-columns: 1fr; }
  #guest-rsvp-form, #rsvp-form { padding: 1.5rem 1rem; }
  .tl-item { flex-direction: column; }
  .count-sep { display: none; }
  .countdown-grid { gap: 0; }
  .count-item { min-width: 70px; }
}

#gift-text b,
#gift-text strong {
  font-weight: 700;
  color: var(--gold);
}

.bold-gold{
    font-weight: bold;
    color: var(--gold);
    text-decoration: underline;
}

#attendeesModalSubtitle {
    color:var(--gold2); 
    margin-top:0; 
    margin-bottom:1.5rem;
    text-align: center;
}

#attendees-container{
    color:var(--ivory2); 
    font-size:1rem; 
    line-height:1.8; 
    text-align: center;
}

.attendee-group{
    color:var(--text-primary);   
    border: 1px solid var(--color-primary-dim);  
    background-color: var(--color-primary-dim); 
    border-radius: 5px;
    /*margin-left: 20px;*/
    /*margin-right: 20px;*/
    margin-bottom:0.3rem; 
    font-weight:bold;
}

#attendees-section{
    margin-bottom: 1rem;
    text-align: center;
}

.story-title{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:0.5rem;
    color: var(--gold)
}

#location-link{    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--gold2);
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition);
}
/* ── REMOVED INLINE STYLES ── */
#page-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background:linear-gradient(145deg, #2A1D13 0%, #402E1D 50%, #1C120A 100%); z-index: 99999; display: flex; align-items: center; justify-content: center; transition: opacity 0.6s ease, visibility 0.6s ease; }
#page-loader h1 { font-family: var(--font-primary); font-size: clamp(4rem, 25vw, 10rem); padding: 0 20px; text-align: center; color: white; animation: pulseLoader 1.5s infinite ease-in-out; margin: 0; font-weight: 100; -webkit-text-stroke: 2px #2A1D13; }
#page-loader h1 span { color: var(--gold); }

#hero { position:relative; min-height:100dvh; display:block; background:linear-gradient(145deg, #2A1D13 0%, #402E1D 50%, #1C120A 100%); }
.hero-overlay { position:absolute; inset:0; background:radial-gradient(circle at center, rgba(201,169,110,0.15) 0%, rgba(28,18,10,0.4) 40%, rgba(28,18,10,0.95) 100%); z-index:1; }
.hero-grid-svg { width:100%; height:100%; overflow:visible; }
.hero-grid-svg-container{
    flex: 1; 
    width:100%; 
    min-height: 0; 
    margin-top: max(3vh, 50px); 
    margin-bottom: max(3vh, 50px);
    max-height: 100vh; 
    max-width: 90vw;
}

.hover-scale-a { pointer-events: none; }
.a-emoji { opacity: 0; transition: opacity 0.3s, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); pointer-events: none; transform-box: fill-box; transform-origin: center; }
#emoji-top { transform: translate(0, -150px) scale(0.5); }
#emoji-left { transform: translate(-150px, 0) scale(0.5); }
#emoji-right { transform: translate(150px, 0) scale(0.5); }
#emoji-bottom { transform: translate(0, 150px) scale(0.5); }

#hero-date-container { 
    pointer-events: auto; 
    z-index: 999; 
    opacity: 0; 
    transition: opacity 0.5s; 
}
#hero-date-text {
    font-family: var(--font-primary);
    font-size: 3rem;
    letter-spacing: 0.12em; 
    fill: url(#gold);
    stroke: url(#gold);
    stroke-width: 0.5px;
    text-anchor: middle;
    dominant-baseline: middle;
    transition: fill var(--transition);
}

.deadline-countdown {
    display: block;
    margin-top: 0.45rem;
    color: var(--color-primary, var(--gold2));
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.08em;
}
.rsvp-expired-state {
    max-width: 640px;
    margin: 1.5rem auto 0;
    padding: 1.25rem;
    text-align: center;
    color: var(--light-text);
}
.rsvp-expired-state strong {
    color: var(--color-primary, var(--gold));
}
.rsvp-expired-state p {
    margin: 0.75rem 0 1rem;
}

#hero-countdown { 
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    padding: 0.5rem 0.75rem;
    background: rgba(18, 18, 18, 0.62);
    backdrop-filter: blur(8px);
    /*border-top: 1px solid rgba(201, 169, 110, 0.45);*/
    font-size: 1.2rem; 
    letter-spacing: 0em; 
    color: var(--color-primary); 
    display: flex; 
    justify-content: center; 
    gap: 0.45rem;
    transition: color var(--transition);
    font-weight: bold;
}


.text-center { text-align: center !important; }
.media-container { margin-top: 1rem; display:flex; flex-wrap:wrap; gap:0.75rem; justify-content:center; }
.media-item { max-height: 150px; max-width: 100%; width: auto; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); background:#111; }
.media-img { cursor: pointer; }
.max-w-600 { max-width: 600px; }
.mx-auto { margin-left: auto; margin-right: auto; }

.date-box { margin-top: 1.5rem; margin-bottom: 1.5rem; text-align: center; background: var(--color-primary-dim); padding: 1rem; border-radius: 8px; }
.mb-05 { margin-bottom: 0.5rem; }
.mb-0 { margin-bottom: 0; }

#conditions-section { margin-top: 3rem; display: none; }
#conditions-list { list-style:none; padding:0; text-align:center; max-width:800px; margin:0 auto; font-size:1.0rem; color:rgba(255,255,255,1); line-height:1.6; }

#gift-section { display:none; max-width: 500px; margin: 0 auto 3rem; background: rgba(201,169,110,0.05); border: 1px solid rgba(201,169,110,0.3); border-radius: 8px; padding: 2.5rem 2rem; }
.gift-icon { font-size: 2rem; margin-bottom: 1rem; }
#gift-title { font-family: var(--font-primary); font-size: 1.6rem; color: var(--gold); margin-bottom: 1rem; }
#gift-text { font-size: 1.05rem; line-height: 1.6; color: var(--light-text); margin-bottom: 2rem; white-space: pre-line; }
#gift-link { display: inline-block; padding: 0.8rem 2rem; width: auto; font-size: 0.9rem; letter-spacing: 0.1em; color: var(--dark); text-decoration: none; }
#gift-link span, .btn-text { color: white; }

#rsvp-form-container { position: relative; max-width: 500px; margin: 0 auto; overflow: hidden; border-radius: 8px; }
#rsvp-overlay { display: none; position: absolute; inset: 0; z-index: 10; backdrop-filter: blur(2px); background: rgba(28,18,10,0.4); flex-direction: column; justify-content: center; align-items: center; pointer-events: auto; }
#rsvp-overlay-text { transform: rotate(-10deg); font-size: clamp(1.2rem, 6vw, 2rem); color: var(--gold2); font-weight: bold; letter-spacing: 0.1em; text-shadow: 2px 2px 8px rgba(0,0,0,0.9); border: 2px solid var(--gold2); padding: 0.8rem 1.5rem; border-radius: 12px; background: rgba(0,0,0,0.6); white-space: normal; word-break: break-word; max-width: 90%; text-align: center; }

.hidden { display: none; }
.max-w-500 { max-width: 500px; }
.text-white { color: white !important; }
.d-inline-block { display: inline-block !important; }

/* Hero SVG classes */
.hero-grid-svg-container {
    width: 100%;
    max-width: 1600px;
    height: auto;
    max-height: 75vh;
    margin-top: 80px;
}

@media (max-width: 600px) {
    .hero-grid-svg-container {
        margin-top: 0px;
    }
}

.svg-text {
    font-family: var(--font-primary);
    font-weight: 100;
    fill: url(#gold);
    stroke: url(#gold);
    stroke-width: 2px;
    stroke-linejoin: round;
    text-anchor: middle;
    dominant-baseline: middle;
    letter-spacing: 0.05em;
}

.name-group {
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

.giant-a-class {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.a-emoji-class {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    opacity: 0;
    transform: scale(0.5);
}

/* State 1: Lola (top right), Armando (bottom left) */
.hero-grid-svg-container.state-1 #giant-a-1 { transform: translate(310px, -260px); }
.hero-grid-svg-container.state-1 #giant-a-2 { transform: translate(-310px, 260px); }
.hero-grid-svg-container.state-1 #text-lola,
.hero-grid-svg-container.state-1 #text-armando { opacity: 1; }
.hero-grid-svg-container.state-1 #emoji-lola,
.hero-grid-svg-container.state-1 #emoji-armando { opacity: 1; transform: scale(1); }

/* State 2: Aika (top left), Vera (bottom right) */
.hero-grid-svg-container.state-2 #giant-a-1 { transform: translate(-310px, -260px); }
.hero-grid-svg-container.state-2 #giant-a-2 { transform: translate(310px, 260px); }
.hero-grid-svg-container.state-2 #text-aika,
.hero-grid-svg-container.state-2 #text-vera { opacity: 1; }
.hero-grid-svg-container.state-2 #emoji-aika,
.hero-grid-svg-container.state-2 #emoji-vera { opacity: 1; transform: scale(1); }

/* Fading out transition state */
.hero-grid-svg-container.fading-out .name-group { opacity: 0 !important; }
.hero-grid-svg-container.fading-out .a-emoji-class { opacity: 0 !important; transform: scale(0.5) !important; }

.hero-flex-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    width: 100%;
    position: relative;
}

@media (max-width: 600px) {
    #hero-date-container {
        padding-inline: 0.25rem;
        font-size: 0.9rem;
    }
    #hero-countdown {
        font-size: 0.72rem;
        gap: 0.35rem;
    }
}

@media (max-height: 540px) {
    .hero-grid-svg-container {
        max-height: 65vh;
        width: auto;
        margin-top: 40px;
    }
    #hero-countdown {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

.location-image {
    width: 200px;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    margin: 5px;
}

.link-web{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--gold2);
    text-decoration: none;
    transition: border-color var(--transition), color var(--transition);
}