/* ============================================================
   ARCELIA & NESTOR · WEDDING INVITATION
   Mobile-first · Elegant Dark & Gold
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────── */
:root {
  --dark:       #0C0A07;
  --dark-2:     #161310;
  --dark-3:     #1E1A14;
  --cream:      #F8F2E4;
  --cream-2:    #EDE4D0;
  --gold:       #C4973A;
  --gold-light: #E8D5A3;
  --gold-dim:   #9B7529;
  --gold-shine: #F0D98A;
  --text-d:     #F0E8D5;
  --text-l:     #1A1208;
  --text-muted: #9B8B72;
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-serif:   'Playfair Display', Georgia, serif;
  --ff-body:    'Lato', sans-serif;
  --radius:     4px;
  --transition: 0.4s ease;
}

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 20px;
}

body {
  font-family: var(--ff-body);
  background: var(--dark);
  color: var(--text-d);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; }

/* ── ENVELOPE COVER ─────────────────────────────────────── */
.envelope-cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
}
.envelope-cover.is-open {
  animation: envelopeFade 0.8s ease forwards;
  pointer-events: none;
}
@keyframes envelopeFade {
  0% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
.envelope-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  width: 100%;
  max-width: 400px;
}
.envelope-flap {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  margin-bottom: 32px;
}
.envelope-seal {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, var(--gold) 0%, #8B6914 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--dark);
  font-weight: 600;
  margin-bottom: 28px;
  box-shadow: 0 4px 24px rgba(196, 151, 58, 0.4);
  animation: sealPulse 3s infinite ease-in-out;
}
@keyframes sealPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(196, 151, 58, 0.3); }
  50% { box-shadow: 0 4px 32px rgba(196, 151, 58, 0.6); }
}
.envelope-names {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  color: var(--gold);
  margin-bottom: 8px;
}
.envelope-date {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.7;
  margin-bottom: 40px;
}
.envelope-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--transition), transform var(--transition);
  animation: btnFloat 2.5s infinite ease-in-out;
}
.envelope-btn:hover {
  background: var(--gold-shine);
}
.envelope-btn:active {
  transform: scale(0.96);
}
.envelope-btn-arrow {
  font-size: 1.1rem;
}
@keyframes btnFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ── REVEAL ANIMATIONS ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SECTIONS ───────────────────────────────────────────── */
.section {
  padding: 72px 20px;
}
.s-dark  { background: var(--dark-2); }
.s-light { background: var(--cream);  color: var(--text-l); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-pre {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 16px;
}
.s-light .section-title { color: var(--text-l); }
.s-dark  .section-title { color: var(--text-d); }

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.section-divider span:first-child,
.section-divider span:last-child {
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold);
}
.s-diamond {
  color: var(--gold);
  font-size: 0.6rem;
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Foto principal como fondo del hero */
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Overlay degradado para legibilidad del texto */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(8, 6, 3, 0.50) 0%,
      rgba(8, 6, 3, 0.40) 35%,
      rgba(8, 6, 3, 0.68) 70%,
      rgba(8, 6, 3, 0.92) 100%
    );
}

/* starfield canvas */
#particles-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px 60px;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

/* ── HERO LOGO ──────────────────────────────────────────── */
.hero-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  animation: fadeInDown 1s ease both;
}
.hero-logo-img {
  max-width: min(320px, 85vw);
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 24px rgba(196, 151, 58, 0.18));
}
.logo-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
}

.hero-pre {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.8;
  margin-bottom: 24px;
  animation: fadeInDown 1s ease both;
}

.hero-monogram {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  animation: fadeInDown 1s 0.1s ease both;
}

.hero-names {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 10vw, 5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text-d);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  animation: fadeInDown 1s 0.2s ease both;
}
.hero-amp {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  color: var(--gold);
  line-height: 1;
  margin: 2px 0;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  animation: fadeIn 1s 0.4s ease both;
}
.hero-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.hero-diamond {
  color: var(--gold);
  font-size: 0.5rem;
}

.hero-date-text {
  font-family: var(--ff-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 6px;
  animation: fadeIn 1s 0.5s ease both;
}
.hero-venue {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1rem, 4vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 28px;
  animation: fadeIn 1s 0.55s ease both;
}

/* ── GUEST CARD (URL personalization) ───────────────────── */
.guest-card {
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
  background: rgba(196, 151, 58, 0.06);
  animation: fadeIn 1s 0.6s ease both;
}
.guest-card-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.guest-card-names {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.2rem, 5vw, 1.8rem);
  color: var(--text-d);
  line-height: 1.2;
  margin-bottom: 6px;
}
.guest-card-passes {
  font-size: 0.8rem;
  color: var(--gold-light);
  opacity: 0.85;
}

/* ── COUNTDOWN ──────────────────────────────────────────── */
.countdown {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  margin-bottom: 36px;
  animation: fadeIn 1s 0.7s ease both;
}
.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
}
.c-num {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  letter-spacing: 0.02em;
}
.c-label {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}
.c-sep {
  font-family: var(--ff-display);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: var(--gold-dim);
  padding-bottom: 16px;
  line-height: 1;
}

/* ── HERO CTA ───────────────────────────────────────────── */
.hero-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-body);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.7;
  transition: opacity var(--transition);
  animation: fadeIn 1s 0.9s ease both;
}
.hero-cta:hover { opacity: 1; }
.hero-cta-arrow {
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

/* ── CARD SEPARATORS ────────────────────────────────────── */
.card-sep {
  background: var(--dark-3);
  padding: 36px 20px;
  position: relative;
  overflow: hidden;
}
.card-sep::before,
.card-sep::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.card-sep::before { top: 12px; }
.card-sep::after  { bottom: 12px; }

.card-sep-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 340px;
  margin: 0 auto;
}
.card-sep-ornament {
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.5em;
}
.card-sep-text {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1rem, 4vw, 1.25rem);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ── TIMELINE ───────────────────────────────────────────── */
.timeline {
  max-width: 360px;
  margin: 0 auto;
  position: relative;
}
.timeline-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.timeline-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  background: rgba(196, 151, 58, 0.07);
  color: var(--gold);
}
.timeline-icon svg {
  stroke: var(--gold);
  width: 24px;
  height: 24px;
}
.timeline-body { flex: 1; }
.tl-time {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.tl-title {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-d);
  margin-bottom: 4px;
}
.tl-place {
  font-size: 0.9rem;
  color: var(--gold-light);
  margin-bottom: 2px;
}
.tl-addr {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.timeline-connector {
  display: flex;
  justify-content: flex-start;
  padding-left: 26px;
  margin: 12px 0;
}
.timeline-connector span {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
}

/* ── LOCATION / VENUE CON FONDO ─────────────────────────── */

/* Sección con imagen de fondo */
.s-venue {
  position: relative;
  overflow: hidden;
  padding: 0;                 /* el padding lo lleva .venue-inner */
}

/* Imagen de fondo + overlay oscuro */
.venue-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.venue-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.venue-bg-overlay {
  position: absolute;
  inset: 0;
  /* degradado: muy oscuro abajo (donde va el contenido) y semitransparente arriba */
  background: linear-gradient(
    to bottom,
    rgba(12, 10, 7, 0.55) 0%,
    rgba(12, 10, 7, 0.78) 100%
  );
}

/* Contenedor del contenido encima del fondo */
.venue-inner {
  position: relative;
  z-index: 1;
  padding: 72px 20px;
}

/* Variantes claras de headers para usar sobre fondo oscuro */
.section-pre--light  { color: var(--gold-light); }
.section-title--light { color: var(--text-d); }
.section-divider--light span:first-child,
.section-divider--light span:last-child { background: var(--gold-light); opacity: 0.5; }

/* Tarjeta de ubicación sobre fondo oscuro */
.location-content {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.location-card {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid rgba(196, 151, 58, 0.2);
}
/* Variante oscura: fondo semitransparente con borde dorado */
.location-card--dark {
  background: rgba(12, 10, 7, 0.72);
  border: 1px solid rgba(196, 151, 58, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.location-card--dark .loc-name { color: var(--text-d); }
.location-card--dark .loc-addr { color: var(--gold-light); opacity: 0.85; }

.loc-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.loc-name {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--text-l);
  margin-bottom: 8px;
}
.loc-addr {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.btn-map:hover {
  background: var(--gold-shine);
  transform: translateY(-1px);
}

/* ── STORY / NUESTRA HISTORIA ──────────────────────────── */
.story-content {
  max-width: 480px;
  margin: 0 auto 40px;
  text-align: center;
}
.story-text {
  font-family: var(--ff-display);
  font-size: clamp(1.05rem, 4vw, 1.25rem);
  color: var(--text-l);
  line-height: 1.7;
  margin-bottom: 24px;
}
.story-highlight {
  font-style: italic;
  color: var(--gold);
}

/* ── PADRES & PADRINOS ─────────────────────────────────── */
.padres-padrinos {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  text-align: center;
}
.pp-group {
  padding: 20px 16px;
  border: 1px solid rgba(196, 151, 58, 0.2);
  border-radius: var(--radius);
  background: rgba(196, 151, 58, 0.04);
}
.pp-label {
  font-family: var(--ff-body);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.pp-names {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  color: var(--text-l);
  line-height: 1.6;
}
.pp-cross {
  font-style: normal;
  color: var(--gold-dim);
  font-size: 0.85em;
}

/* ── ITINERARIO ────────────────────────────────────────── */
.itinerary-list {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.itinerary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  background: rgba(196, 151, 58, 0.05);
}
.itinerary-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.itinerary-name {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-d);
  white-space: nowrap;
}
.itinerary-dots {
  flex: 1;
  border-bottom: 1px dotted var(--gold-dim);
  min-width: 20px;
  margin-bottom: 4px;
}
.itinerary-time {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  color: var(--gold);
  white-space: nowrap;
  font-weight: 500;
}

/* ── GIFT PREFER BADGE ─────────────────────────────────── */
.gift-prefer {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(196, 151, 58, 0.12);
  border: 1px solid var(--gold-dim);
  border-radius: 20px;
  padding: 5px 16px;
  margin-bottom: 12px;
}

/* ── DRESS CODE ─────────────────────────────────────────── */
.dress-grid {
  display: grid;
  gap: 20px;
  max-width: 480px;
  margin: 0 auto 28px;
}
.dress-card {
  background: var(--dark-3);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.dress-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  color: var(--gold);
}
.dress-icon svg {
  stroke: var(--gold);
  fill: none;
}
.dress-icon--images {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
}
.dress-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(196, 151, 58, 0.2));
}
.dress-card h3 {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 10px;
}
.dress-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.dress-note {
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
}
.dress-note p {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── GALLERY ────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-2);
  aspect-ratio: 1;
}
.gallery-item.g-tall {
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-item.g-wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

/* Placeholder when image missing */
.gallery-item.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-2);
  border: 1px dashed rgba(196, 151, 58, 0.3);
}
.gallery-item.img-placeholder img { display: none; }
.gallery-placeholder-text {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold-dim);
  pointer-events: none;
}
.gallery-item.img-placeholder .gallery-placeholder-text {
  display: flex;
}

/* ── GIFTS ──────────────────────────────────────────────── */
.gifts-content {
  max-width: 480px;
  margin: 0 auto;
}
.gifts-intro {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.gifts-grid {
  display: grid;
  gap: 20px;
}
.gift-card {
  background: var(--dark-3);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}
.gift-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.gift-card h3 {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 10px;
}
.gift-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.gift-account {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(196, 151, 58, 0.08);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 12px 24px;
}
.gift-account-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.gift-account-num {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

/* Liverpool logo en texto — sin imagen externa (evita mixed content) */
.liverpool-text-logo {
  display: inline-block;
  font-family: var(--ff-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #E40521;
  background: #fff;
  padding: 5px 14px;
  border-radius: 3px;
  margin-bottom: 4px;
}
.btn-liverpool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  background: #E40521;
  color: #fff;
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 12px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  width: 100%;
}
.btn-liverpool:hover {
  background: #c00019;
  transform: translateY(-1px);
}

/* ── RSVP ───────────────────────────────────────────────── */
.rsvp-content {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}
.rsvp-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.s-light .rsvp-intro { color: #5A4E3B; }
.rsvp-intro strong { color: var(--text-l); }

.rsvp-form-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  margin-bottom: 28px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.form-group input,
.form-group select {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid rgba(196, 151, 58, 0.25);
  border-radius: var(--radius);
  background: var(--cream-2);
  color: var(--text-l);
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold);
}

/* Texto de ayuda bajo el campo de pases */
.form-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
  transition: color 0.3s ease;
}
.form-hint--warn {
  color: #E07B39;
  font-weight: 700;
}

/* ── STEPPER (custom +/- para mobile) ──────────────────── */
.stepper-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid rgba(196, 151, 58, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-2);
}
.stepper-wrap input {
  flex: 1;
  text-align: center;
  font-family: var(--ff-display);
  font-size: 1.5rem;
  padding: 14px 8px;
  border: none;
  border-left: 1px solid rgba(196, 151, 58, 0.2);
  border-right: 1px solid rgba(196, 151, 58, 0.2);
  background: transparent;
  color: var(--text-l);
  outline: none;
  min-width: 0;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper-wrap input::-webkit-outer-spin-button,
.stepper-wrap input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.stepper-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  min-height: 54px;
  border: none;
  background: var(--gold);
  color: var(--dark);
  font-size: 1.6rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.stepper-btn:active {
  background: var(--gold-shine);
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239B7529' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  font-family: var(--ff-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 14px 24px;
  border-radius: var(--radius);
  margin-top: 4px;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn-whatsapp:hover {
  background: #1ebe5e;
  transform: translateY(-1px);
}
.wa-icon { display: flex; align-items: center; }

.rsvp-or {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.rsvp-direct-wa {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  color: var(--gold-dim);
  transition: color var(--transition);
}
.rsvp-direct-wa:hover { color: var(--gold); }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  padding: 60px 20px 40px;
  text-align: center;
  border-top: 1px solid rgba(196, 151, 58, 0.12);
}
.footer-inner { max-width: 400px; margin: 0 auto; }
.footer-monogram {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.footer-names {
  font-family: var(--ff-display);
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.footer-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-divider span:first-child,
.footer-divider span:last-child {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-dim);
  opacity: 0.4;
}
.footer-divider span:nth-child(2) {
  color: var(--gold-dim);
  font-size: 0.5rem;
  opacity: 0.6;
}
.footer-date {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 6px;
}
.footer-venue {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-msg {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ── BACK TO TOP BUTTON ─────────────────────────────────── */
.btn-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  z-index: 999;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.btn-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.btn-top:hover { background: var(--gold-shine); }

/* ── MUSIC BUTTON ──────────────────────────────────────── */
.btn-music {
  position: fixed;
  bottom: 24px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 999;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.btn-music:hover { background: var(--gold-shine); }
.btn-music:active { transform: scale(0.92); }
.btn-music.is-playing {
  animation: pulse-music 2s infinite;
}
@keyframes pulse-music {
  0%, 100% { box-shadow: 0 2px 12px rgba(196, 151, 58, 0.3); }
  50% { box-shadow: 0 2px 20px rgba(196, 151, 58, 0.6); }
}

/* ── RSVP COUNTER ───────────────────────────────────────── */
.rsvp-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(196,151,58,0.08), rgba(196,151,58,0.03));
  border: 1px solid rgba(196,151,58,0.25);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
}
.rsvp-counter-num {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 10vw, 4rem);
  color: var(--gold-dim);
  line-height: 1;
  font-weight: 300;
  transition: all 0.4s ease;
}
.rsvp-counter-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── BTN CONFIRMAR ──────────────────────────────────────── */
.btn-confirmar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 24px;
  border: none;
  border-radius: var(--radius);
  margin-top: 4px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-confirmar:hover {
  background: var(--gold-shine);
  transform: translateY(-1px);
}
.btn-confirmar:active { transform: translateY(0); }

/* ── RSVP SUCCESS ───────────────────────────────────────── */
.rsvp-success {
  text-align: center;
  padding: 28px 20px;
  border: 1px solid rgba(196,151,58,0.25);
  border-radius: var(--radius);
  background: rgba(196,151,58,0.04);
  margin-bottom: 24px;
}
.rsvp-success-icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
}
.rsvp-success-title {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-l);
  margin-bottom: 8px;
}
.rsvp-success-msg {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.rsvp-success-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.btn-download-comp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 13px 20px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}
.btn-download-comp:hover { background: var(--gold-shine); }
.btn-whatsapp-small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.btn-whatsapp-small:hover { background: #1ebe5e; }

/* ── ADMIN PANEL ────────────────────────────────────────── */
.admin-content { max-width: 600px; margin: 0 auto; }
.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 28px;
}
.admin-stat {
  background: var(--dark-3);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 16px 24px;
  text-align: center;
  flex: 1;
  min-width: 120px;
}
.admin-stat-num {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.admin-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.admin-table-wrap {
  overflow-x: auto;
  margin-bottom: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(196,151,58,0.15);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.admin-table th {
  background: var(--dark-3);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 12px 14px;
  text-align: left;
  font-weight: 400;
  white-space: nowrap;
}
.admin-table td {
  padding: 11px 14px;
  color: var(--text-d);
  border-top: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.admin-table tbody tr:hover { background: rgba(196,151,58,0.03); }
.admin-table .badge-si {
  display: inline-block;
  background: rgba(37,211,102,0.12);
  color: #25D366;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}
.admin-table .badge-no {
  display: inline-block;
  background: rgba(255,80,80,0.1);
  color: #ff6060;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 700;
}
.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-download-csv {
  flex: 1;
  min-width: 160px;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 13px 20px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}
.btn-download-csv:hover { background: var(--gold-shine); }
.btn-clear-list {
  flex: 1;
  min-width: 140px;
  background: transparent;
  color: #ff6060;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 13px 20px;
  border: 1px solid rgba(255,96,96,0.3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}
.btn-clear-list:hover { background: rgba(255,96,96,0.08); }

/* ── KEYFRAMES ──────────────────────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

/* ── TABLET & DESKTOP ───────────────────────────────────── */
@media (min-width: 600px) {
  .section { padding: 88px 32px; }

  .dress-grid  { grid-template-columns: 1fr 1fr; }
  .gifts-grid  { grid-template-columns: 1fr 1fr; }

  .timeline    { max-width: 440px; }
  .gallery-grid { max-width: 560px; gap: 12px; }

  .location-content { max-width: 560px; }
  .map-wrapper { height: 280px; }
}

@media (min-width: 960px) {
  .section { padding: 100px 40px; }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 720px;
  }
  .gallery-item.g-wide { grid-column: span 2; }
}

/* ── REDUCED MOTION ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; }
  .hero-cta-arrow { animation: none; }
}
