/*! © Eternamente — Todos los derechos reservados. Ver DERECHOS-DE-AUTOR.txt */
/* ============================================================
   ETERNAMENTE — Hoja de estilos principal
   Estética: Minimalismo refinado | Crema + Oro
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:        #FAF7F2;
  --accent:    #C9A84C;
  --accent-dk: #A8873A;
  --text:      #2C2C2C;
  --muted:     #8A7E6E;
  --border:    rgba(201, 168, 76, 0.3);
  --white:     #FFFFFF;
  --card-bg:   #FDFBF7;
  --shadow:    0 4px 24px rgba(44, 44, 44, 0.07);

  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-body: 'Lato', Arial, sans-serif;

  --radius:    6px;
  --transition: 0.3s ease;
  --max-w:     900px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

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

/* ── Typography helpers ─────────────────────────────────────── */
.section-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--text);
  letter-spacing: 0.04em;
  margin-bottom: 0.4em;
  text-align: center;
}

.section-pre {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 0.5em;
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.section-ornament {
  font-size: 1rem;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.5em;
  margin-bottom: 1rem;
}

/* ── Section layout ─────────────────────────────────────────── */
section {
  padding: 6rem 1.5rem;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 2.5rem;
  border: 1.5px solid var(--accent);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  background: transparent;
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-outline {
  display: inline-block;
  padding: 0.65rem 1.8rem;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  background: transparent;
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--white);
}

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

/* ── Fade-in animation ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(44,44,44,0.42), rgba(44,44,44,0.42)),
    url('fotos/Nuestrahistoria.webp')
    center/cover no-repeat;
  padding: 2rem 1.5rem;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(250,247,242,0.08) 0%,
    rgba(44,44,44,0.1) 60%,
    rgba(250,247,242,0.18) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  /* Sube un poco el contenido para dar aire entre el botón
     "Confirmar Asistencia" y el hint "Desliza para descubrir". */
  margin-bottom: 4rem;
}

.hero-pre {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.2rem;
}

.hero-names {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 7.5rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.05em;
}

.hero-ampersand {
  font-family: var(--font-script);
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
  /* Hereda el tamaño de .hero-names, así la 'y' siempre coincide con los
     nombres en cualquier pantalla (incluido móvil). */
  font-size: 1em;
  line-height: 1.2;
}

.hero-date {
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85);
  margin: 1.5rem 0;
  text-transform: uppercase;
}

.hero-ornament {
  font-size: 0.8rem;
  letter-spacing: 0.6em;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  margin: 0.5rem auto 0;
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* ══════════════════════════════════════════════════════════════
   COUNTDOWN
══════════════════════════════════════════════════════════════ */
#countdown {
  background: var(--text);
  padding: 4rem 1.5rem;
  text-align: center;
}

#countdown .section-pre { color: rgba(255,255,255,0.5); }

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.countdown-num {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(2.8rem, 8vw, 5rem);
  color: var(--accent);
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 0.3em;
}

.countdown-sep {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--accent);
  opacity: 0.4;
  padding-bottom: 1.2rem;
}

.countdown-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
}

/* ══════════════════════════════════════════════════════════════
   STORY
══════════════════════════════════════════════════════════════ */
#story { background: var(--bg); }

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.story-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.story-icon {
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.story-card h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.story-card p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.8;
}

/* ══════════════════════════════════════════════════════════════
   FAMILY
══════════════════════════════════════════════════════════════ */
#family { background: var(--card-bg); }

.family-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.family-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.family-card .family-role {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.family-card h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.family-parents {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 2;
}

.sponsors-wrap {
  margin-top: 4rem;
  text-align: center;
}

.sponsors-title {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 2rem;
  letter-spacing: 0.06em;
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.sponsor-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.sponsor-category {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.sponsor-names {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.9;
}

/* ══════════════════════════════════════════════════════════════
   SCHEDULE
══════════════════════════════════════════════════════════════ */
#schedule { background: var(--bg); }

.schedule-list {
  max-width: 560px;
  margin: 3rem auto 0;
  position: relative;
}

.schedule-list::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.schedule-item:nth-child(odd) { flex-direction: row; }
.schedule-item:nth-child(even) { flex-direction: row-reverse; }

.schedule-time {
  font-family: var(--font-head);
  font-size: 1.1rem;
  color: var(--accent);
  min-width: 70px;
  text-align: center;
}

.schedule-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.schedule-content {
  flex: 1;
  padding: 1rem 1.2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.schedule-emoji { font-size: 1.1rem; }

.schedule-label {
  font-size: 0.9rem;
  color: var(--text);
}

/* ══════════════════════════════════════════════════════════════
   VENUES
══════════════════════════════════════════════════════════════ */
#venues { background: var(--card-bg); }

.venues-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.venue-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.venue-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, #e8dcc8 0%, #d4c4a0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.venue-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.venue-body { padding: 1.8rem; }

.venue-type {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.venue-name {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.venue-address {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.venue-time {
  font-size: 0.87rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-weight: 400;
}

/* ══════════════════════════════════════════════════════════════
   DRESSCODE
══════════════════════════════════════════════════════════════ */
#dresscode { background: var(--bg); }

.dresscode-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.dresscode-title-badge {
  display: inline-block;
  padding: 0.5rem 2rem;
  border: 1.5px solid var(--accent);
  border-radius: 40px;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.dresscode-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.dresscode-colors-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.dresscode-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.swatch-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.swatch-name {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.dresscode-avoid {
  font-size: 0.85rem;
  color: var(--muted);
}

.dresscode-avoid strong {
  color: var(--text);
  font-weight: 400;
}

/* ══════════════════════════════════════════════════════════════
   GALLERY
══════════════════════════════════════════════════════════════ */
#gallery { background: var(--card-bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 1;
  background: #e8dcc8;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(44,44,44,0.45);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,18,14,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-inner p {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  margin-top: 0.8rem;
  letter-spacing: 0.08em;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition);
  z-index: 10000;
  padding: 0.5rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { color: var(--accent); }

.lightbox-close { top: 1.5rem; right: 1.5rem; font-size: 1.5rem; }
.lightbox-prev  { left: 1rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.lightbox-next  { right: 1rem; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ══════════════════════════════════════════════════════════════
   GIFTS
══════════════════════════════════════════════════════════════ */
#gifts { background: var(--card-bg); }

.gifts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.gift-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(44,44,44,0.1);
}

.gift-icon { font-size: 2rem; margin-bottom: 0.8rem; }

.gift-store {
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.gift-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

/* ══════════════════════════════════════════════════════════════
   HOTEL
══════════════════════════════════════════════════════════════ */
#hotel { background: var(--bg); }

.hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.hotel-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.hotel-card:hover { transform: translateY(-4px); }

.hotel-img-wrap {
  height: 140px;
  background: linear-gradient(135deg, #e8dcc8 0%, #d4c4a0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.hotel-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-body { padding: 1.5rem; }

.hotel-stars { color: var(--accent); font-size: 0.85rem; margin-bottom: 0.4rem; }

.hotel-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.hotel-address, .hotel-phone {
  font-size: 0.83rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.hotel-discount {
  font-size: 0.82rem;
  color: var(--accent);
  margin: 0.6rem 0 1rem;
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════════
   RSVP
══════════════════════════════════════════════════════════════ */
#rsvp { background: var(--card-bg); }

.rsvp-form {
  max-width: 520px;
  margin: 2.5rem auto 0;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 80px; }

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem;
  background: #25D366;
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-top: 0.5rem;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
#footer {
  background: var(--text);
  padding: 4rem 1.5rem;
  text-align: center;
}

.footer-inner { max-width: var(--max-w); margin: 0 auto; }

.footer-ornament {
  font-size: 0.8rem;
  letter-spacing: 0.6em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.footer-names {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.footer-date {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}

.footer-hashtag {
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
}

.music-btn {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8888;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;
  border-radius: 50%;

  background: rgba(250, 247, 242, 0.93);
  border: 1.5px solid var(--accent);
  box-shadow: 0 4px 20px rgba(44, 44, 44, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: var(--accent);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;

  transition: background var(--transition), box-shadow var(--transition), transform 0.2s ease, color var(--transition);
  outline: none;
  border: 1.5px solid var(--accent);
}

.music-btn:hover {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 28px rgba(201, 168, 76, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.music-note {
  display: block;
  line-height: 1;
  font-style: normal;
}

/* Continuous pulse ring */
.music-btn::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: musicPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes musicPulse {
  0%   { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0;    transform: scale(1.3); }
}

/* ══════════════════════════════════════════════════════════════
   VIEW TOGGLE HEADER
══════════════════════════════════════════════════════════════ */
.view-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  background: rgba(250, 247, 242, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none; /* let clicks pass through except the button */
}

.view-toggle-btn {
  pointer-events: all;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 1.2rem;
  background: transparent;
  border: 1.5px solid var(--accent);
  border-radius: 40px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  outline: none;
  white-space: nowrap;
}

.view-toggle-btn:hover,
.view-toggle-btn:focus-visible {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.vt-icon {
  font-size: 1rem;
  line-height: 1;
}

.vt-label {
  font-size: 0.78rem;
}

/* Push page content below the fixed header */
body {
  padding-top: 44px;
}

/* ── Mobile frame wrapper ───────────────────────────────────── */
.mobile-frame {
  transition: max-width 0.4s ease, box-shadow 0.4s ease, border-radius 0.4s ease;
}

/* When body has .view-mobile, constrain to phone width */
body.view-mobile .mobile-frame {
  max-width: 390px;
  margin: 0 auto;
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 0 0 10px #1a1a1a,
    0 0 0 12px #2e2e2e,
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}

/* Notch bar at top of phone frame */
body.view-mobile .mobile-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 0 0 18px 18px;
  z-index: 100;
  pointer-events: none;
}

/* Dim the area outside the phone frame */
body.view-mobile {
  background: #111;
}

body.view-mobile #hero {
  border-radius: 36px 36px 0 0;
}

body.view-mobile #footer {
  border-radius: 0 0 36px 36px;
}

/* Keep music button and header above the frame */
body.view-mobile .music-btn {
  right: calc(50% - 195px - 70px);
}

/* Desktop: tamaño de los nombres CONSCIENTE DE LA ALTURA del viewport,
   para que el hero quepa sin cortarse en laptops/pantallas bajas y deje
   aire entre "Confirmar Asistencia" y "Desliza para descubrir". */
@media (min-width: 601px) {
  .hero-names { font-size: clamp(3rem, 8vh, 6rem); }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — @600px
══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  section { padding: 4rem 1rem; }

  .hero-names { font-size: clamp(2.4rem, 12vw, 4rem); }

  .family-grid { grid-template-columns: 1fr; }

  .venues-grid { grid-template-columns: 1fr; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .schedule-list::before { left: 20px; transform: none; }

  .schedule-item,
  .schedule-item:nth-child(even) {
    flex-direction: row;
    align-items: flex-start;
  }

  .schedule-time { min-width: 55px; font-size: 0.95rem; }

  .countdown-grid { gap: 0.2rem; }
  .countdown-unit { min-width: 60px; }
  .countdown-sep { font-size: 1.8rem; padding-bottom: 0.8rem; }

  .lightbox-prev { left: 0.3rem; }
  .lightbox-next { right: 0.3rem; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE PREVIEW — refleja las reglas @600px cuando el toggle
   "Vista Movil" esta activo, para que la previsualizacion en
   escritorio coincida con lo que ve un celular real.
══════════════════════════════════════════════════════════════ */
body.view-mobile section { padding: 4rem 1rem; }
body.view-mobile .hero-names { font-size: clamp(2.4rem, 12vw, 4rem); }
body.view-mobile .family-grid { grid-template-columns: 1fr; }
body.view-mobile .venues-grid { grid-template-columns: 1fr; }
body.view-mobile .gallery-grid { grid-template-columns: repeat(2, 1fr); }
body.view-mobile .schedule-list::before { left: 20px; transform: none; }
body.view-mobile .schedule-item,
body.view-mobile .schedule-item:nth-child(even) {
  flex-direction: row;
  align-items: flex-start;
}
body.view-mobile .schedule-time { min-width: 55px; font-size: 0.95rem; }
body.view-mobile .countdown-grid { gap: 0.2rem; }
body.view-mobile .countdown-unit { min-width: 60px; }
body.view-mobile .countdown-sep { font-size: 1.8rem; padding-bottom: 0.8rem; }
body.view-mobile .lightbox-prev { left: 0.3rem; }
body.view-mobile .lightbox-next { right: 0.3rem; }


/* ── Fallback de imagen (si una foto falla al cargar) ── [OWASP A10] ── */
.media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--muted);
  background: linear-gradient(135deg, #e8dcc8 0%, #d4c4a0 100%);
}

/* ── Crédito de diseño + sello de seguridad (inyectado por js/credit.js) ── */
.footer-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s ease;
}
.footer-credit:hover,
.footer-credit:focus-visible {
  color: rgba(255, 255, 255, 0.85);
}
.footer-seal {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  opacity: 0.9;
}