/* ═══════════════════════════════════════════
   Boda Grecia & Cesar · 20 marzo 2027
   Paleta: verde salvia + beige + cantera
   ═══════════════════════════════════════════ */

:root {
  --verde: #71805e;
  --verde-oscuro: #55613f;
  --verde-claro: #a8b294;
  --beige: #f5f1e8;
  --beige-medio: #e9e2d2;
  --crema: #fdfbf6;
  --texto: #443f36;
  --texto-suave: #7c7466;
  --blanco: #ffffff;
  --font-serif: 'Cormorant Garamond', serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Jost', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--texto);
  background: var(--crema);
  line-height: 1.7;
  overflow-x: hidden;
}

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

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
  text-align: center;
}

/* ───────── Animación reveal ───────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ───────── Tipografía de sección ───────── */
.section-eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: .78rem;
  color: var(--verde);
  margin-bottom: .6rem;
}
.section-eyebrow.light { color: var(--beige-medio); }

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--texto);
}
.section-title.light { color: var(--blanco); }

.title-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin: 1.1rem auto 0;
  color: var(--verde);
}
.title-ornament span {
  display: block;
  width: 70px;
  height: 1px;
  background: var(--verde-claro);
}
.title-ornament i { font-style: normal; font-size: 1.1rem; }
.title-ornament.light { color: var(--beige-medio); }
.title-ornament.light span { background: rgba(255,255,255,.45); }

/* ───────── Botones ───────── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .85rem 2rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all .3s ease;
  border: 1px solid var(--verde);
}
.btn-solid { background: var(--verde); color: var(--blanco); }
.btn-solid:hover { background: var(--verde-oscuro); border-color: var(--verde-oscuro); }
.btn-outline { background: transparent; color: var(--verde); }
.btn-outline:hover { background: var(--verde); color: var(--blanco); }
.btn-lg { padding: 1rem 2.6rem; font-size: .88rem; }

/* ───────── Portada de bienvenida ───────── */
body.intro-abierta { overflow: hidden; }
body.intro-abierta .hero-bg { animation-play-state: paused; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity .9s ease, visibility .9s ease;
}
.intro.cerrada {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.intro-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/img/foto28.jpg') 65% 30% / cover;
  transform: scale(1.06);
  animation: introZoom 14s ease-out infinite alternate;
}
@keyframes introZoom {
  from { transform: scale(1.06); }
  to { transform: scale(1.14); }
}
.intro-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(44,48,36,.72) 0%, rgba(44,48,36,.6) 50%, rgba(44,48,36,.78) 100%);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.intro-inner {
  position: relative;
  z-index: 2;
  color: var(--blanco);
  padding: 2rem 1.5rem;
  animation: introAparece 1.4s ease .2s both;
}
@keyframes introAparece {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.intro-eyebrow {
  text-transform: uppercase;
  letter-spacing: .45em;
  font-size: clamp(.7rem, 2vw, .85rem);
  margin-bottom: 1rem;
  opacity: .9;
}
.intro-names {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 5.4rem);
  line-height: 1.2;
  text-shadow: 0 2px 22px rgba(0,0,0,.4);
}
.intro-names span { color: var(--verde-claro); font-size: .68em; }
.intro-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin: 1rem 0 1.2rem;
}
.intro-ornament span { width: 62px; height: 1px; background: rgba(255,255,255,.5); }
.intro-ornament i { font-style: normal; color: var(--verde-claro); }
.intro-date {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: .25em;
  margin-bottom: 2.4rem;
}
.intro-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-sans);
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--blanco);
  padding: .95rem 2.1rem;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255,255,255,.26), rgba(255,255,255,.10));
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 6px 26px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .3s ease, background .3s ease;
  animation: introLatido 2.8s ease-in-out 1.4s infinite;
}
.intro-btn:hover {
  background: linear-gradient(135deg, rgba(255,255,255,.4), rgba(255,255,255,.18));
  transform: translateY(-2px);
}
@keyframes introLatido {
  0%, 100% { box-shadow: 0 6px 26px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.45), 0 0 0 0 rgba(255,255,255,.28); }
  50% { box-shadow: 0 6px 26px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.45), 0 0 0 14px rgba(255,255,255,0); }
}
.intro-note {
  margin-top: 1.2rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--beige-medio);
  opacity: .85;
}

@media (max-width: 640px) {
  .intro-bg {
    background-image: url('../assets/img/hero-movil.jpg');
    background-position: center bottom;
  }
}

/* ───────── Navegación ───────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: all .35s ease;
}
#navbar.scrolled {
  background: rgba(253, 251, 246, .95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(68, 63, 54, .08);
  padding: .55rem 0;
}
.nav-inner {
  width: min(1200px, 94%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: .1em;
  color: var(--blanco);
  text-decoration: none;
  white-space: nowrap;
  transition: color .35s;
}
.nav-logo span { font-family: var(--font-script); color: var(--verde-claro); }
#navbar.scrolled .nav-logo { color: var(--texto); }
#navbar.scrolled .nav-logo span { color: var(--verde); }

#nav-links {
  display: flex;
  list-style: none;
  gap: 1.6rem;
  align-items: center;
}
#nav-links a {
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blanco);
  white-space: nowrap;
  transition: color .3s;
}
#nav-links a:hover { color: var(--verde-claro); }
#navbar.scrolled #nav-links a { color: var(--texto); }
#navbar.scrolled #nav-links a:hover { color: var(--verde); }
#nav-links a.nav-cta {
  border: 1px solid currentColor;
  padding: .45rem 1.1rem;
  border-radius: 2px;
}

#nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
#nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--blanco);
  transition: all .3s;
}
#navbar.scrolled #nav-toggle span { background: var(--texto); }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  /* 100vh en móvil mide la pantalla SIN la barra del navegador: el hero
     quedaba más alto que lo visible (tapaba la flecha) y al retraerse la
     barra asomaba la sección siguiente. dvh se ajusta a la altura real. */
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/img/foto28.jpg');
  background-size: cover;
  background-position: 65% 30%;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40,42,32,.45) 0%, rgba(40,42,32,.25) 45%, rgba(40,42,32,.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--blanco);
  padding: 0 1rem;
  transform: translateY(-9vh);
  transform: translateY(-9dvh);
}
.hero-save {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .5em;
  font-size: clamp(.75rem, 2vw, .95rem);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 1.2s ease .3s forwards;
}
.hero-names {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
  opacity: 0;
  animation: fadeUp 1.2s ease .7s forwards;
}
.hero-names .amp { font-size: .65em; color: var(--verde-claro); }
.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  margin: 1.4rem 0;
  opacity: 0;
  animation: fadeUp 1.2s ease 1.1s forwards;
}
.hero-divider span { width: 90px; height: 1px; background: rgba(255,255,255,.6); }
.hero-divider i { font-style: normal; font-size: 1.2rem; color: var(--verde-claro); }
.hero-date {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  letter-spacing: .25em;
  opacity: 0;
  animation: fadeUp 1.2s ease 1.4s forwards;
}
.hero-sub {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .4em;
  font-size: .8rem;
  margin-top: 1rem;
  opacity: 0;
  animation: fadeUp 1.2s ease 1.7s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* En pantallas grandes el letrero va a la izquierda,
   sobre la zona despejada, lejos de los rostros */
@media (min-width: 1025px) {
  .hero { justify-content: flex-start; }
  .hero-content { padding-left: 5vw; }
  .hero-names { font-size: clamp(3rem, 6.5vw, 5.2rem); }
  .hero-date { font-size: clamp(1.2rem, 2.6vw, 1.6rem); }
  .hero-divider span { width: 70px; }
}
.hero-scroll {
  position: absolute;
  /* separada del borde inferior para que no la tapen los botones del sistema */
  bottom: calc(2.2rem + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  color: var(--blanco);
  z-index: 2;
  animation: bounce 2.2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ───────── Cuenta regresiva ───────── */
.countdown-section {
  background: var(--beige);
  padding: 4.5rem 0 4.8rem;
}
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.5rem, 2.5vw, 1.6rem);
  margin: 1.4rem 0 1.2rem;
}
.count-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--crema);
  border: 1px solid var(--beige-medio);
  border-radius: 4px;
  min-width: clamp(70px, 16vw, 110px);
  padding: 1.1rem .5rem .9rem;
  box-shadow: 0 4px 18px rgba(68,63,54,.06);
}
.count-box span {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  color: var(--verde-oscuro);
}
.count-box small {
  margin-top: .5rem;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-size: .62rem;
  color: var(--texto-suave);
}
.count-sep {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--verde-claro);
}
.countdown-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--texto-suave);
}

/* ───────── Nos casamos ───────── */
.story-section { padding: 5.5rem 0; }
.section-head { margin-bottom: 3rem; }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}
.story-photo {
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(68,63,54,.14);
}
.story-photo img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  transition: transform .8s ease;
}
.story-photo:hover img { transform: scale(1.05); }
.story-text { padding: 0 .5rem; }
.story-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--verde-oscuro);
  margin-bottom: 1.4rem;
  line-height: 1.5;
}
.story-text p:not(.story-quote):not(.story-signature) {
  margin-bottom: 1rem;
  color: var(--texto-suave);
}
.story-signature {
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--texto);
  margin-top: 1.6rem;
}
.story-signature span { color: var(--verde); }

/* ───────── Parallax ───────── */
.parallax {
  position: relative;
  min-height: 46vh;
  background-size: cover;
  background-position: center 35%;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  background: rgba(52, 58, 41, .55);
}
.parallax-content {
  position: relative;
  z-index: 2;
  padding: 4rem 1.5rem;
  text-align: center;
}
.parallax-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  color: var(--blanco);
  line-height: 1.6;
  text-shadow: 0 2px 14px rgba(0,0,0,.4);
}

/* ───────── Cuándo y dónde ───────── */
.venue-section {
  background: var(--crema);
  padding: 5.5rem 0;
}
.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
  text-align: left;
}
.venue-card {
  background: var(--blanco);
  border: 1px solid var(--beige-medio);
  border-radius: 6px;
  padding: 3rem 2.5rem;
  text-align: center;
  box-shadow: 0 10px 34px rgba(68,63,54,.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.venue-city {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--verde-oscuro);
  margin-top: 1.4rem;
}
.venue-photo {
  width: calc(100% + 5rem);
  margin: -3rem 0 1.6rem;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}
.venue-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
.venue-icon { color: var(--verde); margin-bottom: 1rem; }
.venue-card h3 {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: .85rem;
  font-weight: 400;
  color: var(--texto-suave);
  margin-bottom: .8rem;
}
.venue-name {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--texto);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.venue-detail {
  font-size: 1rem;
  color: var(--texto-suave);
}
.venue-hour {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--verde-oscuro);
  margin: .3rem 0 1rem;
}
.venue-note {
  font-size: .93rem;
  color: var(--texto-suave);
  margin-bottom: 1.6rem;
  max-width: 420px;
}
.venue-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.venue-map {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(68,63,54,.08);
  min-height: 380px;
}
.venue-map iframe {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* ───────── Código de vestimenta ───────── */
.dress-section {
  background: var(--beige);
  padding: 5rem 0;
}
.dress-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  margin: 2rem 0 1.4rem;
  color: var(--verde-oscuro);
}
.dress-icons i { font-style: normal; font-size: 1.3rem; color: var(--verde-claro); }
.dress-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--texto-suave);
}
.dress-note-kids {
  margin-top: .6rem;
  color: var(--verde-oscuro);
}

/* ───────── Dónde hospedarse ───────── */
.lodging-section {
  background: var(--crema);
  padding: 5.5rem 0;
}
.lodging-intro {
  max-width: 620px;
  margin: 1.6rem auto 0;
  color: var(--texto-suave);
  font-size: 1rem;
}
.lodging-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 2rem;
}
.lodging-card {
  background: var(--blanco);
  border: 1px solid var(--beige-medio);
  border-radius: 6px;
  padding: 2rem 1.4rem;
  box-shadow: 0 8px 26px rgba(68,63,54,.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.lodging-icon { color: var(--verde); }
.lodging-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  width: calc(100% + 2.8rem);
  margin: -2rem 0 1rem;
}
.lodging-photos img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.lodging-photos img:first-child { border-radius: 6px 0 0 0; }
.lodging-photos img:last-child { border-radius: 0 6px 0 0; }
.lodging-photos-family {
  width: 100%;
  margin: 0 0 1.2rem;
}
.lodging-photos-family img { height: 150px; border-radius: 4px !important; }
.lodging-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--texto);
  line-height: 1.3;
}
.lodging-detail {
  font-size: .88rem;
  color: var(--texto-suave);
  margin-bottom: .8rem;
}
.btn-sm { padding: .6rem 1.3rem; font-size: .72rem; }
.lodging-airbnb {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--texto-suave);
  margin-bottom: 2.4rem;
}
.lodging-family {
  max-width: 640px;
  margin: 0 auto;
  background: var(--beige);
  border: 1px solid var(--beige-medio);
  border-radius: 6px;
  padding: 2rem 2.2rem;
}
.lodging-family-title {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .25em;
  font-size: .8rem;
  color: var(--verde-oscuro);
  font-weight: 500;
  margin-bottom: .8rem;
}
.lodging-family p:not(.lodging-family-title):not(.lodging-family-hotel) {
  font-size: .95rem;
  color: var(--texto-suave);
  margin-bottom: 1rem;
}
.lodging-family-hotel {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--texto);
  margin-bottom: 1rem;
}

/* ───────── Mesa de regalos ───────── */
.gifts-section { padding: 5.5rem 0; }
.gifts-intro {
  max-width: 640px;
  margin: 1.6rem auto 0;
  color: var(--texto-suave);
  font-size: 1.05rem;
}

/* Encabezado: foto + "Nuestra boda" con la fecha */
.gifts-header { margin-bottom: 2.6rem; }
.gifts-photo {
  max-width: 560px;
  margin: 2.4rem auto 1.8rem;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(68,63,54,.14);
}
.gifts-photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 28%;
}

.gift-card {
  max-width: 620px;
  margin: 0 auto 1.4rem;
  background: var(--beige);
  border: 1px solid var(--beige-medio);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(68,63,54,.09);
}
#regalos .gift-card:last-of-type { margin-bottom: 0; }
.gift-body {
  padding: 2.6rem 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}
.gift-brand-img {
  width: 165px;
  max-width: 65%;
  height: auto;
  margin-top: 1.6rem;
  mix-blend-mode: multiply;
}
.gift-eyebrow {
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: .75rem;
  color: var(--verde);
}
.gift-date {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: .18em;
  color: var(--texto);
  margin-top: .3rem;
}
.gift-line {
  width: 60px;
  height: 1px;
  background: var(--verde-claro);
  margin: 1.2rem auto;
}
.gift-msg {
  color: var(--texto-suave);
  font-size: .97rem;
  line-height: 1.75;
  max-width: 420px;
}
.gift-names {
  font-family: var(--font-script);
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--texto);
  margin: 1.3rem 0 .9rem;
}
/* cuando los nombres siguen directo al título (tarjeta de Liverpool),
   se recorta el espacio superior para que no quede un hueco */
.gift-subtitle + .gift-names { margin-top: .2rem; }
.gift-event {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--texto-suave);
  margin-bottom: 1.6rem;
}
.gift-event strong {
  display: block;
  margin-top: .3rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--verde-oscuro);
}

/* ── Sobre digital ── */
.envelope-icon { color: var(--verde); margin-bottom: .8rem; }
.gift-subtitle {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--texto);
  margin-bottom: .9rem;
}
.bank-data {
  width: 100%;
  max-width: 420px;
  margin: 1.6rem 0;
  background: var(--blanco);
  border: 1px solid var(--beige-medio);
  border-radius: 6px;
  overflow: hidden;
}
.bank-row {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .85rem 1.2rem;
  text-align: left;
}
.bank-row + .bank-row { border-top: 1px solid var(--beige-medio); }
.bank-row dt {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--texto-suave);
}
.bank-row dd {
  font-size: 1.02rem;
  color: var(--texto);
  word-break: break-word;
}
#clabe {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: .06em;
  color: var(--verde-oscuro);
}
#copiar-clabe.copiado {
  background: var(--verde);
  color: var(--blanco);
}

/* ───────── Galería ───────── */
.gallery-section {
  background: var(--crema);
  padding: 5.5rem 0 6rem;
}
.gallery-grid {
  columns: 3;
  column-gap: 1.1rem;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.1rem;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  transition: transform .7s ease, filter .7s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(.85);
}
.gallery-item::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--blanco);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }

/* ───────── RSVP ───────── */
.rsvp-section {
  position: relative;
  background: url('../assets/img/foto19.jpg') center 25% / cover fixed;
  padding: 6rem 0;
}
.rsvp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(52, 58, 41, .78);
}
.rsvp-section .container { position: relative; z-index: 2; }
.rsvp-message {
  max-width: 680px;
  margin: 2.2rem auto 0;
  color: var(--blanco);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-style: italic;
  line-height: 1.7;
}
.rsvp-message strong { color: var(--verde-claro); font-style: normal; }

/* ───────── Footer ───────── */
.footer {
  background: #3b4230;
  color: var(--beige-medio);
  text-align: center;
  /* espacio extra abajo para que el reproductor flotante no tape el texto */
  padding: 3.5rem 1rem 7rem;
}
.footer-names {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--blanco);
}
.footer-names span { color: var(--verde-claro); }
.footer-date {
  letter-spacing: .4em;
  font-size: .9rem;
  margin: .6rem 0 1rem;
}
.footer-hashtag {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--verde-claro);
}
.footer-credit {
  margin-top: 1.6rem;
  font-size: .75rem;
  letter-spacing: .12em;
  opacity: .65;
}

/* ───────── Lightbox ───────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(30, 32, 24, .95);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 88vw;
  max-height: 86vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  transition: color .3s;
}
.lightbox button:hover { color: var(--verde-claro); }
.lb-close { top: 1rem; right: 1.5rem; font-size: 2.6rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ───────── Reproductor de música (liquid glass) ───────── */
.music-player {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  align-items: center;
  gap: .45rem;
  width: min(360px, calc(100% - 2.4rem));
  padding: .42rem .65rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,.28), rgba(255,255,255,.10));
  -webkit-backdrop-filter: blur(22px) saturate(1.8);
  backdrop-filter: blur(22px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow:
    0 6px 26px rgba(68,63,54,.14),
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -1px 1px rgba(68,63,54,.04);
}
.mp-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: var(--verde-oscuro);
  background: rgba(255,255,255,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 1px 3px rgba(68,63,54,.1);
  transition: background .3s, transform .2s;
}
.mp-btn svg { width: 15px; height: 15px; }
.mp-btn:hover { background: rgba(255,255,255,.8); transform: scale(1.06); }
.mp-time {
  flex: 0 0 auto;
  font-size: .63rem;
  letter-spacing: .05em;
  color: var(--texto);
  opacity: .75;
  min-width: 2.1rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.music-player input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background: rgba(68,63,54,.22);
  outline: none;
  cursor: pointer;
}
.mp-seek { flex: 1 1 auto; min-width: 60px; }
.mp-volume { flex: 0 0 56px; }
.music-player input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--verde-oscuro);
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 1px 4px rgba(68,63,54,.3);
}
.music-player input[type="range"]::-moz-range-thumb {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--verde-oscuro);
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 1px 4px rgba(68,63,54,.3);
}

/* En pantallas grandes el reproductor acompaña al letrero a la izquierda,
   para no tapar a los novios (que quedan al centro-derecha) */
@media (min-width: 1025px) {
  /* Mismo ancho y posición que las letras "Grecia & Cesar" del letrero */
  .music-player {
    left: 5vw;
    width: min(30vw, 383px);
    transform: none;
  }
}

/* En móvil y tablet el reproductor va arriba, justo debajo del logo,
   para no tapar a los novios. z-index bajo el del menú para que el
   desplegable del menú móvil quede por encima. */
/* En móvil y tablet el reproductor se integra en la barra superior,
   ocupando el espacio entre el logo y el botón del menú.
   z-index por encima del navbar para que su fondo no lo tape al hacer scroll;
   el menú desplegable abre por debajo, así que no se estorban. */
@media (max-width: 1024px) {
  .music-player {
    top: 20px;
    bottom: auto;
    left: calc(3vw + 82px);
    right: calc(3vw + 46px);
    width: auto;
    /* en tablet el hueco es muy ancho: se limita y se centra */
    max-width: 420px;
    margin-inline: auto;
    transform: none;
    z-index: 110;
    padding: .3rem .55rem;
    gap: .4rem;
    transition: top .35s ease;
  }
  #navbar.scrolled ~ .music-player { top: 11px; }
  /* el reproductor ya no está abajo: el footer no necesita reservarle espacio */
  .footer { padding-bottom: 3rem; }
}

/* ───────── Responsive ───────── */
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr 1fr; }
  .story-text { grid-column: 1 / -1; order: -1; }
  .venue-grid { grid-template-columns: 1fr; }
  .lodging-grid { grid-template-columns: 1fr; }
  .gifts-photo img { height: 280px; }
  .gallery-grid { columns: 2; }
  .parallax, .rsvp-section { background-attachment: scroll; }
}

@media (max-width: 1024px) {
  #nav-toggle { display: flex; }
  #nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(253, 251, 246, .98);
    box-shadow: 0 12px 24px rgba(68,63,54,.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease;
  }
  #nav-links.open { max-height: 540px; padding: .8rem 0; }
  #nav-links li { width: 100%; text-align: center; }
  #nav-links a {
    display: block;
    padding: .8rem 0;
    color: var(--texto) !important;
  }
  #nav-links a.nav-cta { border: none; }
  #navbar { background: rgba(253, 251, 246, 0); }
  .hero-content { transform: translateY(-13vh); transform: translateY(-13dvh); }
}

@media (max-width: 640px) {
  .hero-content { transform: translateY(-18vh); transform: translateY(-18dvh); }
  .story-grid { grid-template-columns: 1fr; }
  .story-photo img { min-height: 0; }
  /* En pantallas angostas se usa la misma foto recompuesta en vertical:
     pareja nítida abajo y la parte alta de la escena difuminada */
  .hero-bg {
    background-image: url('../assets/img/hero-movil.jpg');
    background-position: center bottom;
    animation: none;
  }
  .form-row { flex-direction: column; }
  .gallery-grid { columns: 2; column-gap: .7rem; }
  .gallery-item { margin-bottom: .7rem; }
  .count-sep { display: none; }
  .venue-card { padding: 2.2rem 1.4rem; }
  .venue-photo { width: calc(100% + 2.8rem); margin: -2.2rem 0 1.4rem; }
  .lodging-family { padding: 1.6rem 1.2rem; }
  .gift-body { padding: 2rem 1.3rem; }
  #clabe { font-size: 1.1rem; }
  /* dentro de la barra superior el espacio es corto: solo play, avance y mute */
  .mp-volume { display: none; }
  #mp-duration { display: none; }
  #mp-time { display: none; }
}
