/* ============================================================
   public.css — Página principal e estilos públicos compartidos
   Requiere base.css cargado primero.
   ============================================================ */

/* ── Layout ─────────────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* ── Flying bees & flowers ──────────────────────────────── */
.dynamic-bee,
.dynamic-flower {
  position: fixed;
  z-index: 10;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 2.5rem 3rem;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.main-title {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.main-title em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.invite-text {
  margin-bottom: 1.6rem;
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
}

/* ── Details strip ──────────────────────────────────────── */
.details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0 0.5rem 2.5rem;
  padding: 2.5rem 1.5rem;
  border: 1.5px solid rgba(201, 168, 76, 0.5);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.1);
  backdrop-filter: blur(4px);
}

.detail-card {
  flex: 1;
  min-width: 140px;
  padding: 1rem 2rem;
  text-align: center;
}

.detail-icon {
  margin-bottom: 0.5rem;
  color: var(--gold);
  font-size: 1.6rem;
}

.detail-label {
  margin-bottom: 0.4rem;
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.detail-value {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
}

.detail-divider {
  align-self: center;
  padding: 0 0.5rem;
  opacity: 0.5;
  color: var(--gold);
  font-size: 1.2rem;
}

/* ── Info sections ──────────────────────────────────────── */
.info-section {
  margin: 0 0.5rem 2rem;
  text-align: center;
}

.info-section-inner {
  padding: 2rem 2rem 1.8rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(240, 230, 200, 0.4));
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 24px rgba(201, 168, 76, 0.08);
}

.info-icon {
  margin-bottom: 0.6rem;
  color: var(--gold);
  font-size: 1.8rem;
}

.info-title {
  margin-bottom: 0.5rem;
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.info-text {
  margin-bottom: 1.2rem;
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
}

.info-btn {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.65rem 1.8rem;
  background: rgba(255, 255, 255, 0.5);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.15s;
}

.info-btn:hover {
  background: var(--gold-pale);
  transform: translateY(-1px);
}

/* ── Parking badge ──────────────────────────────────────── */
.parking-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.5);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-sm);
}

.parking-badge .price {
  color: var(--brown-light);
  font-style: italic;
  font-weight: 400;
}

/* ── Gift section ───────────────────────────────────────── */
.gift-msg {
  margin-bottom: 1.5rem;
}

.gift-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.gift-btn {
  display: flex;
  min-width: 160px;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.6rem;
  background: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border: 1.5px solid var(--gold-light);
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.2s;
}

.gift-btn:hover {
  background: var(--gold-pale);
  transform: translateY(-2px);
}

.gift-store-name {
  margin-bottom: 0.3rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.gift-store-sub {
  color: var(--brown-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
}

/* ── RSVP notice ────────────────────────────────────────── */
.rsvp-notice {
  position: relative;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

.rsvp-notice::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-light), transparent);
}

.rsvp-inner {
  display: inline-block;
}

.rsvp-script {
  margin: 1rem 0 0.8rem;
  color: var(--brown);
  font-family: var(--font-body);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 300;
}

/* ── Gallery section ────────────────────────────────────── */
.gallery-section {
  margin: 0 0.5rem 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(201, 168, 76, 0.25);
  cursor: pointer;
  aspect-ratio: 1;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.6rem;
  background: linear-gradient(transparent, rgba(46, 32, 16, 0.7));
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-style: italic;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(46, 32, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: pointer;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  padding: 2rem 0 1rem;
  text-align: center;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 2rem;
  font-style: italic;
  opacity: 0.7;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 500px) {
  .details {
    flex-direction: column;
    gap: 0.5rem;
  }

  .detail-divider {
    display: none;
  }

  .botanical {
    width: 110px;
    height: 110px;
  }

  .hero {
    padding: 3.8rem 1.6rem 2.4rem;
  }

  .gold-border-frame {
    inset: 10px;
  }

  .info-section-inner {
    padding: 1.6rem 1.25rem 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
