/* ============================================================
   CESAR & LISSETTE — style.css
   Paleta: Mauve · Sage · Vintage Peach · Rust · Off-White
   Wedding v1.0 — Elegante · Romántico · Boho Moderno
   ============================================================ */


/* ── 1. VARIABLES ─────────────────────────────────────────── */

:root {
  /* Paleta cromática */
  --rust:          #9B4A2E;
  --rust-hover:    #7D3A22;
  --rust-faint:    rgba(155, 74, 46, 0.08);

  --mauve:         #C4A5B5;
  --mauve-light:   #EDE0E8;
  --mauve-bg:      #F5EFF3;

  --sage:          #8FAF8A;
  --sage-light:    #D4E6D1;
  --sage-bg:       #EDF4EC;

  --peach:         #D4956A;
  --peach-light:   #F0D4BB;

  --off-white:     #FAF8F4;
  --white:         #FFFFFF;

  --ink:           #2C1A1A;
  --ink-mid:       #6B4E4E;
  --ink-light:     #A08585;

  /* Tipografía */
  --font-serif:    'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:     'Jost', system-ui, -apple-system, sans-serif;

  /* Espaciado base */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-6: 3rem;
  --sp-8: 4rem;
  --sp-12: 6rem;
  --sp-16: 8rem;

  /* Radios */
  --r-xs: 3px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 100px;

  /* Transiciones */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.2s var(--ease);
  --t-base: 0.4s var(--ease);
  --t-slow: 0.7s var(--ease);

  /* Sombras */
  --shadow-xs: 0 2px 8px rgba(44, 26, 26, 0.06);
  --shadow-sm: 0 4px 20px rgba(44, 26, 26, 0.08);
  --shadow-md: 0 8px 40px rgba(44, 26, 26, 0.12);
  --shadow-lg: 0 16px 60px rgba(44, 26, 26, 0.16);
}


/* ── 2. RESET ─────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background-color: var(--off-white);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

input,
select,
textarea {
  font-family: inherit;
}


/* ── 3. UTILIDADES ────────────────────────────────────────── */

.container {
  width: min(90%, 1080px);
  margin-inline: auto;
  padding-inline: var(--sp-2);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mauve);
  text-align: center;
  display: block;
  margin-bottom: var(--sp-1);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: var(--ink);
  text-align: center;
  line-height: 1.15;
  margin-bottom: var(--sp-2);
}

.section-subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink-mid);
  text-align: center;
  margin-bottom: var(--sp-8);
}


/* ── 4. BOTONES ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  padding: 0.9rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--r-xs);
  transition: background var(--t-base), color var(--t-base),
              transform var(--t-base), box-shadow var(--t-base);
}

.btn--rust {
  background-color: var(--rust);
  color: var(--white);
}

.btn--rust:hover,
.btn--rust:focus-visible {
  background-color: var(--rust-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(155, 74, 46, 0.32);
  outline: none;
}

.btn--sage {
  background-color: transparent;
  color: var(--sage);
  border: 1px solid var(--sage);
}

.btn--sage:hover,
.btn--sage:focus-visible {
  background-color: var(--sage);
  color: var(--white);
  outline: none;
}

.btn:active {
  transform: translateY(0);
}


/* ── 5. ANIMACIONES REVEAL ────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delays escalonados para grupos de elementos reveal */
.reveal:nth-child(1) { transition-delay: 0.00s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }


/* ── 6. NAVEGACIÓN ────────────────────────────────────────── */

.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 5%;
  transition: background var(--t-base), box-shadow var(--t-base),
              padding var(--t-base);
}

.nav.scrolled {
  background-color: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 24px rgba(44, 26, 26, 0.07);
  padding-block: 1rem;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav__links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  transition: color var(--t-fast);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--rust);
  transition: width var(--t-base);
}

.nav__links a:hover,
.nav__links a:focus-visible {
  color: var(--rust);
  outline: none;
}

.nav__links a:hover::after {
  width: 100%;
}

/* Botón hamburguesa */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-1);
  background: none;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background-color: var(--ink);
  transition: all var(--t-base);
  transform-origin: center;
}

.nav__toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Nav mobile overlay */
.nav__mobile {
  position: fixed;
  inset: 0;
  z-index: 49;
  background-color: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}

.nav__mobile.open {
  opacity: 1;
  pointer-events: auto;
}

.nav__mobile nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.nav__mobile a {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.04em;
  transition: color var(--t-fast);
}

.nav__mobile a:hover {
  color: var(--rust);
}

.nav__mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 5%;
  font-size: 2.2rem;
  color: var(--ink-mid);
  line-height: 1;
  transition: color var(--t-fast);
}

.nav__mobile-close:hover {
  color: var(--rust);
}


/* ── 7. HERO ──────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-16) var(--sp-4);
  background-color: var(--off-white);
  overflow: hidden;
}

/* Orbes suaves de fondo */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero__orb--1 {
  top: -15%;
  left: -8%;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(ellipse at center,
    var(--mauve-bg) 0%, transparent 70%);
}

.hero__orb--2 {
  bottom: -10%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  max-width: 500px;
  max-height: 500px;
  background: radial-gradient(ellipse at center,
    var(--sage-bg) 0%, transparent 70%);
}

/* Decoraciones botánicas SVG */
.hero__botanical {
  position: absolute;
  pointer-events: none;
  color: var(--mauve);
}

.hero__botanical--left {
  left: 2%;
  bottom: 8%;
  width: clamp(60px, 8vw, 110px);
  height: auto;
  color: var(--mauve);
  opacity: 0.55;
  animation: sway 8s ease-in-out infinite;
}

.hero__botanical--right {
  right: 2%;
  top: 12%;
  width: clamp(55px, 7vw, 100px);
  height: auto;
  color: var(--sage);
  opacity: 0.50;
  animation: sway 10s ease-in-out infinite reverse;
}

@keyframes sway {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%       { transform: rotate(3deg) translateY(-8px); }
}

/* Contenido */
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  /* Animación de entrada — controlada por JS */
  opacity: 0;
  transform: translateY(32px);
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: var(--sp-4);
}

.hero__names {
  font-family: var(--font-serif);
  font-size: clamp(4.5rem, 13vw, 9.5rem);
  font-weight: 300;
  line-height: 0.92;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.08em;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
}

.hero__name {
  display: block;
}

.hero__ampersand {
  font-size: 0.45em;
  color: var(--rust);
  font-style: italic;
  line-height: 1.1;
  display: block;
}

/* Ornamento central */
.hero__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-block: var(--sp-4);
}

.hero__ornament-line {
  display: block;
  width: clamp(40px, 8vw, 80px);
  height: 1px;
  background-color: var(--mauve-light);
}

.hero__ornament svg {
  width: 18px;
  height: 18px;
  color: var(--rust);
  flex-shrink: 0;
}

/* Cita romántica */
.hero__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-mid);
  margin-bottom: var(--sp-4);
  line-height: 1.5;
}

/* Fecha */
.hero__date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: var(--sp-1);
}

.hero__date-dot {
  color: var(--mauve);
  font-size: 1.2em;
  line-height: 1;
}

.hero__meta {
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--ink-light);
  margin-bottom: var(--sp-6);
}

.hero__cta {
  margin-top: var(--sp-2);
}

/* Badge tech */
.hero__badge {
  position: absolute;
  bottom: 1.8rem;
  right: 2rem;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  opacity: 0.45;
  border: 1px solid var(--peach-light);
  padding: 0.28rem 0.85rem;
  border-radius: var(--r-pill);
  font-family: 'Courier New', monospace;
  transition: opacity var(--t-base);
}

.hero__badge:hover {
  opacity: 0.9;
}


/* ── 8. COUNTDOWN ─────────────────────────────────────────── */

.countdown {
  background-color: var(--mauve-bg);
  padding: var(--sp-12) 0;
  text-align: center;
}

.countdown__timer {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: var(--sp-8);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: var(--sp-4);
}

.countdown__number {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 300;
  color: var(--rust);
  line-height: 1;
  letter-spacing: -0.03em;
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.countdown__label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-top: 0.6rem;
}

.countdown__sep {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--mauve);
  line-height: 1;
  padding-top: 0.05em;
  opacity: 0.45;
  align-self: flex-start;
}


/* ── 9. UBICACIÓN ─────────────────────────────────────────── */

.ubicacion {
  background-color: var(--off-white);
  padding: var(--sp-12) 0;
}

.ubicacion__map {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--mauve-light);
  margin-bottom: var(--sp-4);
}

.ubicacion__map iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 45vw, 480px);
}

.ubicacion__actions {
  text-align: center;
  margin-top: var(--sp-4);
}


/* ── 10. RSVP ─────────────────────────────────────────────── */

.rsvp {
  background-color: var(--sage-bg);
  padding: var(--sp-12) 0;
}

.rsvp__form {
  max-width: 680px;
  margin-inline: auto;
  background-color: var(--white);
  padding: var(--sp-8);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* Filas de dos columnas */
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: var(--sp-4);
}

.form__group:last-of-type {
  margin-bottom: 0;
}

/* Labels */
.form__label {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.form__label-optional {
  font-size: 0.72rem;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-light);
  margin-left: 0.25rem;
}

/* Inputs */
.form__input {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink);
  background-color: var(--off-white);
  border: 1px solid var(--sage-light);
  border-radius: var(--r-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast),
              background-color var(--t-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form__input:hover {
  border-color: var(--sage);
}

.form__input:focus {
  border-color: var(--sage);
  background-color: var(--white);
  box-shadow: 0 0 0 3px rgba(143, 175, 138, 0.18);
}

.form__input::placeholder {
  color: var(--ink-light);
  font-weight: 300;
}

.form__input.error {
  border-color: #b84b4b;
  box-shadow: 0 0 0 3px rgba(184, 75, 75, 0.12);
}

/* Select */
.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%238FAF8A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Textarea */
.form__textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.6;
}

/* Radio buttons */
.form__radio-group {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.form__radio-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink);
  user-select: none;
}

.form__radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form__radio-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--sage);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.form__radio-label input[type="radio"]:checked + .form__radio-custom {
  background-color: var(--sage);
  border-color: var(--sage);
}

.form__radio-label input[type="radio"]:checked + .form__radio-custom::after {
  content: '';
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background-color: var(--white);
  border-radius: 50%;
}

.form__radio-label input[type="radio"]:focus-visible + .form__radio-custom {
  box-shadow: 0 0 0 3px rgba(143, 175, 138, 0.3);
}

/* Mensaje de error inline */
.form__error-msg {
  font-size: 0.75rem;
  color: #b84b4b;
  margin-top: 0.25rem;
  display: block;
}

/* Botón submit */
.form__submit {
  width: 100%;
  margin-top: var(--sp-4);
  position: relative;
  overflow: hidden;
}

.form__submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Mensaje de éxito */
.rsvp__success {
  max-width: 460px;
  margin-inline: auto;
  margin-top: var(--sp-6);
}

.rsvp__success-card {
  background-color: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
  animation: slideUp 0.55s var(--ease) both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rsvp__success-icon {
  font-size: 2.8rem;
  color: var(--rust);
  display: block;
  margin-bottom: var(--sp-2);
}

.rsvp__success-card h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: var(--sp-2);
}

.rsvp__success-card p {
  font-size: 0.95rem;
  color: var(--ink-mid);
  font-weight: 300;
  line-height: 1.6;
}


/* ── 11. CONFIRMADOS ──────────────────────────────────────── */

.confirmados {
  background-color: var(--mauve-bg);
  padding: var(--sp-12) 0;
  text-align: center;
}

.confirmados__card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: var(--sp-6) var(--sp-12);
}

.confirmados__number {
  font-family: var(--font-serif);
  font-size: clamp(5rem, 16vw, 11rem);
  font-weight: 300;
  color: var(--rust);
  line-height: 1;
  letter-spacing: -0.03em;
  display: block;
  font-variant-numeric: tabular-nums;
}

.confirmados__label {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-top: var(--sp-2);
}

.confirmados__sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--mauve);
  margin-top: 0.3rem;
}


/* ── 12. GALERÍA ──────────────────────────────────────────── */

.galeria {
  background-color: var(--off-white);
  padding: var(--sp-12) 0;
}

.galeria__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 1rem;
  margin-top: var(--sp-8);
}

/* Item destacado: 2 columnas × 2 filas */
.galeria__item--featured {
  grid-column: span 2;
  grid-row: span 2;
}

/* Items base */
.galeria__item {
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: pointer;
  padding: 0;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.galeria__item:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}

/* Overlay en hover */
.galeria__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(44, 26, 26, 0);
  transition: background-color var(--t-base);
  border-radius: var(--r-md);
  pointer-events: none;
}

.galeria__item:hover::after {
  background-color: rgba(44, 26, 26, 0.12);
}

.galeria__photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.65s var(--ease);
}

.galeria__item > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s var(--ease);
}

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

.galeria__item:hover .galeria__photo {
  transform: scale(1.05);
}

/* Colores de placeholder — reemplaza con <img> real */
.galeria__photo--1 { background-color: var(--mauve-light); }
.galeria__photo--2 { background-color: var(--sage-light); }
.galeria__photo--3 { background-color: var(--peach-light); }
.galeria__photo--4 { background-color: var(--mauve-bg); }
.galeria__photo--5 { background-color: var(--sage-bg); }
.galeria__photo--6 { background-color: var(--peach-light); }

.galeria__placeholder {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: rgba(44, 26, 26, 0.2);
  letter-spacing: 0.08em;
  pointer-events: none;
  user-select: none;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(26, 14, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.3s var(--ease);
}

.lightbox[hidden] {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.8rem;
  font-size: 2.4rem;
  line-height: 1;
  color: rgba(255,255,255,0.75);
  transition: color var(--t-fast), transform var(--t-fast);
}

.lightbox__close:hover {
  color: white;
  transform: scale(1.1);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.75);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}

.lightbox__nav:hover {
  color: white;
  background-color: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
}

.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

.lightbox__stage {
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  overflow: hidden;
}

.lightbox__stage img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r-md);
}

/* Placeholder en lightbox */
.lightbox__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  min-width: min(70vw, 560px);
  min-height: min(60vh, 400px);
}

.lightbox__placeholder span {
  font-family: var(--font-serif);
  font-size: 4rem;
  color: rgba(255,255,255,0.18);
  letter-spacing: 0.1em;
}


/* ── 13. PLAYLIST ─────────────────────────────────────────── */

.playlist {
  background-color: var(--sage-bg);
  padding: var(--sp-12) 0;
}

.playlist__embed {
  max-width: 780px;
  margin-inline: auto;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--sage-light);
}

.playlist__embed iframe {
  display: block;
  width: 100%;
  height: 380px;
}


/* ── 14. FOOTER ───────────────────────────────────────────── */

.footer {
  background-color: var(--ink);
  color: var(--off-white);
  padding: var(--sp-12) 0 var(--sp-8);
  text-align: center;
}

.footer__names {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-3);
}

.footer__ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin-block: var(--sp-3);
}

.footer__ornament-line {
  display: block;
  width: 50px;
  height: 1px;
  background-color: rgba(196, 165, 181, 0.3);
}

.footer__ornament svg {
  width: 14px;
  height: 14px;
  color: var(--rust);
}

.footer__date {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--mauve);
  margin-bottom: var(--sp-1);
}

.footer__location {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--ink-light);
}

.footer__divider {
  width: 50px;
  height: 1px;
  background-color: rgba(160, 133, 133, 0.2);
  margin: var(--sp-6) auto;
}

.footer__made {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-light);
  margin-bottom: var(--sp-2);
}

/* Detalle tech — sutil y elegante */
.footer__tech {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(160, 133, 133, 0.3);
  margin-top: var(--sp-6);
}


/* ── 15. ÁLBUM QR ─────────────────────────────────────────── */

.album {
  background-color: var(--off-white);
  padding: var(--sp-12) 0;
}

.album__card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--sp-8);
  max-width: 860px;
  margin-inline: auto;
  background-color: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--mauve-light);
}

/* Marco del QR */
.album__qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.album__qr-frame {
  padding: var(--sp-3);
  border: 2px solid var(--mauve-light);
  border-radius: var(--r-md);
  background-color: var(--off-white);
  position: relative;
  /* Esquinas decorativas */
  box-shadow: var(--shadow-xs);
}

/* Esquinas decorativas con mauve */
.album__qr-frame::before,
.album__qr-frame::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--rust);
  border-style: solid;
}

.album__qr-frame::before {
  top: -2px;
  left: -2px;
  border-width: 2px 0 0 2px;
  border-radius: 4px 0 0 0;
}

.album__qr-frame::after {
  bottom: -2px;
  right: -2px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 4px 0;
}

.album__qr-img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: var(--r-sm);
}

/* Placeholder mientras carga el QR */
.album__qr-img:not([src]),
.album__qr-img[src=""] {
  background-color: var(--mauve-light);
  opacity: 0.4;
}

.album__qr-hint {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  text-align: center;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Columna de información */
.album__info-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}

.album__title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
}

.album__desc {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.7;
}

/* Pasos numerados */
.album__steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  width: 100%;
}

.album__step {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink-mid);
}

.album__step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--sage-light);
  color: var(--sage);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
}

.album__btn {
  margin-top: var(--sp-1);
  align-self: flex-start;
}

.album__note {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--ink-light);
  letter-spacing: 0.06em;
  margin-top: calc(var(--sp-1) * -1);
}


/* ── 16. GUÍA REPÚBLICA DOMINICANA ───────────────────────── */

.guia-rd {
  background-color: var(--mauve-bg);
  padding: var(--sp-12) 0;
}

.rd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: var(--sp-8);
}

/* Card base */
.rd-card {
  background-color: var(--white);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-4);
  box-shadow: var(--shadow-xs);
  border: 1px solid transparent;
  transition: transform var(--t-base), box-shadow var(--t-base),
              border-color var(--t-base);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.rd-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--mauve-light);
}

/* Card destacada: ocupa 2 columnas */
.rd-card--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--white) 70%, var(--peach-light) 100%);
  border-color: var(--peach-light);
}

/* Icono SVG */
.rd-card__icon {
  width: 44px;
  height: 44px;
  color: var(--rust);
  flex-shrink: 0;
  margin-bottom: var(--sp-1);
}

.rd-card__icon svg {
  width: 100%;
  height: 100%;
}

/* Títulos */
.rd-card__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.25;
}

/* Distancia / subtítulo */
.rd-card__distance {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--sage);
  text-transform: uppercase;
  margin-top: calc(var(--sp-1) * -0.5);
}

/* Cuerpo de texto */
.rd-card__body {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* Lista de puntos */
.rd-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: var(--sp-1);
}

.rd-card__list li {
  font-size: 0.84rem;
  font-weight: 300;
  color: var(--ink-mid);
  padding-left: 1.1em;
  position: relative;
  line-height: 1.5;
}

.rd-card__list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--rust);
  font-weight: 700;
}

.rd-card__list strong {
  font-weight: 500;
  color: var(--ink);
}


/* ── 17. REPRODUCTOR DE MÚSICA FLOTANTE ──────────────────── */

.music-player {
  position: fixed;
  bottom: 1.8rem;
  left: 2rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.music-player__btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--rust);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(155, 74, 46, 0.38);
  transition: background var(--t-fast), transform var(--t-fast),
              box-shadow var(--t-fast);
  flex-shrink: 0;
}

.music-player__btn:hover {
  background-color: var(--rust-hover);
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(155, 74, 46, 0.5);
}

.music-player__btn:active {
  transform: scale(0.96);
}

.music-player__btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Pulso suave cuando está reproduciendo */
.music-player__btn.playing {
  animation: musicPulse 2.4s ease-in-out infinite;
}

@keyframes musicPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(155, 74, 46, 0.38); }
  50%       { box-shadow: 0 4px 32px rgba(155, 74, 46, 0.65); }
}

/* Tooltip con nombre de la canción */
.music-player__tooltip {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
  background-color: rgba(250, 248, 244, 0.95);
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--mauve-light);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--t-base), transform var(--t-base);
  pointer-events: none;
  backdrop-filter: blur(8px);
}

/* Mostrar tooltip al hacer hover sobre el player */
.music-player:hover .music-player__tooltip,
.music-player__btn.playing ~ .music-player__tooltip {
  opacity: 1;
  transform: translateX(0);
}


/* ── 18. RESPONSIVE ───────────────────────────────────────── */

/* ── Tablet ── */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .galeria__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .galeria__item--featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  /* Álbum QR */
  .album__card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .album__qr-col {
    margin-inline: auto;
  }

  .album__info-col {
    align-items: center;
  }

  .album__btn {
    align-self: center;
  }

  /* Cards RD */
  .rd-card--featured {
    grid-column: span 1;
  }
}

/* ── Mobile ── */
@media (max-width: 580px) {
  .form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .rsvp__form {
    padding: var(--sp-4);
  }

  .countdown__unit {
    padding-inline: var(--sp-2);
  }

  .countdown__sep {
    display: none;
  }

  .countdown__timer {
    gap: var(--sp-3);
  }

  .hero__names {
    font-size: clamp(3.8rem, 17vw, 5.5rem);
  }

  .galeria__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .galeria__item--featured {
    grid-column: span 1;
    grid-row: span 1;
  }

  .lightbox__nav {
    display: none;
  }

  .confirmados__card {
    padding-inline: var(--sp-4);
  }

  .form__radio-group {
    flex-direction: column;
    gap: var(--sp-2);
  }

  .hero__botanical {
    opacity: 0.25;
  }

  /* Álbum QR mobile */
  .album__qr-img {
    width: 160px;
    height: 160px;
  }

  /* Cards RD mobile: 1 columna */
  .rd-grid {
    grid-template-columns: 1fr;
  }
}


/* Reproductor en mobile */
@media (max-width: 580px) {
  .music-player { bottom: 1.2rem; left: 1.2rem; }
  .music-player__btn { width: 44px; height: 44px; }
  .music-player__tooltip { display: none; }
}

/* ── 16. ACCESIBILIDAD ────────────────────────────────────── */

/* Focus visible para teclado */
:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

/* Reduce movimiento si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* High contrast mode */
@media (forced-colors: active) {
  .btn--rust {
    border: 2px solid ButtonText;
  }
}
