/* =========================================
   sections.css — Estilos por sección
   RAQUEL & CHUS · Boda 2026
   ========================================= */

/* =========================================
   HERO
   ========================================= */
#hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  max-width: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title {
  display: block;
  width: min(100%, 700px);
  height: auto;
  margin: 0 auto 1rem;
}

.text-title {
  display: block;
  width: min(100%, 500px);
  /* width: 600px; */
  height: auto;
  margin: 0 auto 1rem;
}

/* =========================================
   HISTORIA
   ========================================= */
#historia {
  max-width: none;
  width: 100%;
}

.historia-text {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: min(48%, 512px);
  text-align: center;
  margin: 0 auto;
}

.historia-text p {
  margin: 0;
  line-height: 1.6;
  max-width: none;
}

/* =========================================
   ITINERARIO — imagen responsive
   ========================================= */
.itinerario-img-wrap {
  margin-top: 2rem;
  width: min(130vw, 1400px);
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.itinerario-img-wrap img {
  width: 100%;
  border-radius: 4px;
  display: block;
}

/* Desktop-first visibility: horizontal on large screens */
.itinerario-img-wrap .img-desktop {
  display: block;
}

.itinerario-img-wrap .img-mobile {
  display: none;
}

/* =========================================
   CONFIRMACIÓN
   ========================================= */
#confirmacion {
  background-image: url('../images/backgrounds/web-confirmar-asistencia.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

#confirmacion .section-inner {
  /* border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 40px rgba(107, 31, 43, 0.2);
  border-radius: 8px; */
  padding: clamp(36px, 7vw, 52px) clamp(24px, 5vw, 40px);
  max-width: none;
  width: 100%;
}

#confirmacion p {
  color: rgba(255, 255, 255);
  font-weight: bold;
}

.btn-confirmar {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 14px 22px;
  /* border: 1px solid var(--majorero); */
  color: var(--garnacha);
  background: var(--arena);
  font-family: 'Droid Serif', serif;
  font-weight: bold;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.btn-text {
  display: inline-block;
  position: relative;
}

.btn-confirmar:hover {
  background: var(--arena);
  color: var(--garnacha);
}

/* =========================================
   MAP
   ========================================= */
#map .map-embed {
  margin-top: 1.2rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

#map .map-embed iframe {
  display: block;
  width: 100%;
  min-height: 420px;
}

.qr-img {
  display: block;
  width: 350px;
  max-width: 100%;
  height: auto;
  margin: 1rem auto 0;
}

.iban {
  font-style: bold;
  font-size: 1.1rem;
  margin-top: 1rem;
  text-align: center;
}

/* =========================================
   CIERRE — texto + imagen lateral
   ========================================= */

.monograma {
  display: block;
  width: min(100%, 140px);
  height: auto;
  margin: 0 auto 0;
}

.fecha-sub {
  font-family: 'Droid Serif', serif;
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--olivo);
  margin-bottom: 1rem;
}

.countdown {
  display: flex;
  gap: clamp(16px, 5vw, 52px);
  justify-content: center;
  flex-wrap: nowrap;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.countdown-number {
  font-family: 'Amsterdam Four', 'Droid Serif', serif;
  font-size: clamp(2.8rem, 7vw, 4rem);
  color: var(--garnacha);
  line-height: 1;
  min-width: 2.5ch;
  text-align: center;
}

.countdown-label {
  font-family: 'Droid Serif', serif;
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: var(--olivo);
}

.couple-behind {
  display: flex;
  width: min(88vw, 400px);
  height: auto;
  margin: 0;
  padding: 0;
  transform: none;
  pointer-events: auto;
  cursor: pointer;
}

.falling-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
}

.falling-item {
  position: fixed;
  top: -240px;
  width: 200px;
  height: auto;
  will-change: transform, opacity;
}

body.intro-locked {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}

body.intro-locked main,
body.intro-locked .site-footer {
  opacity: 0;
  filter: blur(3px);
  pointer-events: none;
}

main,
.site-footer {
  transition: opacity 1.5s ease, filter 1.5s ease;
}

body.intro-locked .music-btn {
  opacity: 0;
  pointer-events: none;
}

.intro-letter {
  position: fixed;
  inset: 0;
  z-index: 10020;
  transition: opacity 1.75s ease, visibility 1.75s ease;
}

.intro-letter__trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.intro-letter__trigger picture {
  display: block;
  width: 100%;
  height: 100%;
}

.intro-letter__art {
  display: block;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.intro-letter--opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}