/* ════════════════════════════════════════════════════
   Iglesia Vida Nueva — Estilos principales
   vidanuevaiglesia.com
════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────── */
:root {
  --color-bg: #0d0d0d;
  --color-bg-2: #141414;
  --color-bg-light: #f5f5f0;
  --color-surface: #1a1a1a;
  --color-surface-2: #222222;
  --color-border: rgba(255, 255, 255, 0.08);

  --color-gold: #e8c96c;
  --color-gold-dim: rgba(232, 201, 108, 0.15);
  --color-gold-glow: rgba(232, 201, 108, 0.3);
  --color-white: #ffffff;
  --color-muted: rgba(255, 255, 255, 0.55);

  /* Ministerios */
  --color-kids: #f5a623;
  --color-encendi2: #f7941d;

  --radius-card: 16px;
  --radius-sm: 8px;
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  overflow-x: hidden;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--color-bg);
  color: var(--color-white);
  overflow-x: hidden;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
}

/* ── Scroll Indicator ───────────────────────────── */
.scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), #fff8dc);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
#navbar {
  background: transparent;
  padding: 1rem 0;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(13, 13, 13, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.6rem 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.logo-nav {
  border: 2px solid var(--color-gold);
  transition: var(--transition);
  object-fit: cover;
}

.brand-text {
  font-size: 1.2rem;
  color: var(--color-white);
  letter-spacing: 0.04em;
}

.navbar-toggler {
  border: none !important;
  padding: 6px;
}
.navbar-toggler:focus {
  box-shadow: none;
}
.navbar-toggler-icon {
  filter: invert(1);
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem !important;
  transition: var(--transition);
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-link:hover {
  color: var(--color-gold) !important;
  background: var(--color-gold-dim);
}

.btn-instagram {
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.btn-instagram:hover {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) !important;
  border-color: transparent !important;
  color: white !important;
}

@media (max-width: 991px) {
  #navbar {
    background: rgba(13, 13, 13, 0.97) !important;
    padding: 0.75rem 0;
  }
  .navbar-collapse {
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 0.5rem;
  }
  .nav-link {
    padding: 0.65rem 1rem !important;
  }
}

/* ═══════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(ellipse at 60% 40%, #1a1208 0%, #0d0d0d 70%);
  overflow: hidden;
}

/* Partículas decorativas con CSS puro */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(
      circle 1.5px at 15% 25%,
      rgba(232, 201, 108, 0.25) 0%,
      transparent 100%
    ),
    radial-gradient(
      circle 1px at 82% 15%,
      rgba(232, 201, 108, 0.15) 0%,
      transparent 100%
    ),
    radial-gradient(
      circle 2px at 45% 70%,
      rgba(232, 201, 108, 0.2) 0%,
      transparent 100%
    ),
    radial-gradient(
      circle 1px at 70% 55%,
      rgba(232, 201, 108, 0.12) 0%,
      transparent 100%
    ),
    radial-gradient(
      circle 1.5px at 30% 85%,
      rgba(232, 201, 108, 0.18) 0%,
      transparent 100%
    ),
    radial-gradient(
      circle 1px at 90% 80%,
      rgba(232, 201, 108, 0.1) 0%,
      transparent 100%
    );
}

.overline-text {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-white);
}

.hero-title .highlight {
  color: var(--color-gold);
  display: block;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  max-width: 520px;
}

/* Botones hero */
.btn-primary-vn {
  background: var(--color-gold);
  color: #0d0d0d;
  border: 2px solid var(--color-gold);
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-primary-vn:hover {
  background: #f0d478;
  border-color: #f0d478;
  color: #0d0d0d;
  transform: translateY(-3px);
  box-shadow: 0 8px 28px var(--color-gold-glow);
}

.btn-outline-vn {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.35);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.btn-outline-vn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-gold);
  color: var(--color-gold);
  transform: translateY(-3px);
}

/* Stats hero */
.hero-stats {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--color-muted);
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  background: var(--color-border);
  align-self: stretch;
}

/* Logo hero */
.logo-hero-wrapper {
  position: relative;
  display: inline-block;
}
.logo-hero-wrapper::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 201, 108, 0.08) 0%,
    transparent 70%
  );
  opacity: 0;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  transform: scale(0.95);
}
.logo-hero-wrapper:hover::before {
  opacity: 1;
  transform: scale(1);
}
.logo-hero {
  width: min(380px, 90vw);
  border-radius: 50%;
  box-shadow:
    0 0 60px rgba(232, 201, 108, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    filter 0.45s ease;
}
.logo-hero-wrapper:hover .logo-hero {
  transform: scale(1.06);
  box-shadow:
    0 0 80px rgba(232, 201, 108, 0.35),
    0 24px 70px rgba(0, 0, 0, 0.55);
  filter: brightness(1.08);
}

/* Scroll hint */
.scroll-down-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.1rem;
  animation: bounce-down 3s ease-in-out infinite;
  text-decoration: none;
  transition: color 0.3s;
}
.scroll-down-hint:hover {
  color: var(--color-gold);
}

@keyframes bounce-down {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(4px);
  }
}

/* ═══════════════════════════════════════════════════
   VERSE BANNER
═══════════════════════════════════════════════════ */
.verse-banner {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.verse-text {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  max-width: 680px;
  margin: 0 auto;
}
.verse-icon {
  color: var(--color-gold);
  opacity: 0.7;
}
.verse-ref {
  font-size: 0.82rem;
  color: var(--color-gold);
  font-weight: 500;
  font-style: normal;
  display: block;
  margin-top: 0.4rem;
}

/* ═══════════════════════════════════════════════════
   SECCIONES — layout base
═══════════════════════════════════════════════════ */
.section-dark {
  background: var(--color-bg);
}
.section-light {
  background: var(--color-bg-light);
}
.section-instagram {
  background: var(--color-surface);
}

.section-overline {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}
.section-overline.dark {
  color: #9a7b30;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 1rem;
}
.section-title.dark {
  color: #1a1208;
}

.section-desc {
  font-size: 1rem;
  color: var(--color-muted);
  max-width: 540px;
  margin: 0 auto;
}
.section-desc.dark {
  color: #5c4a2a;
}

/* Animación de entrada */
.fade-enter {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.fade-enter.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════
   NOSOTROS — Pastor + Valores
═══════════════════════════════════════════════════ */
.pastor-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  transition: var(--transition);
}
.pastor-card:hover {
  border-color: var(--color-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(232, 201, 108, 0.1);
}
.pastor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-gold-dim);
  border: 2px solid var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.pastor-icon {
  font-size: 2rem;
  color: var(--color-gold);
}
.pastor-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}
.pastor-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}
.pastor-desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin: 0;
}

/* Valores */
.valores-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.valor-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  transition: var(--transition);
}
.valor-item:hover {
  border-color: rgba(232, 201, 108, 0.3);
  background: var(--color-surface-2);
}
.valor-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--color-gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  font-size: 1rem;
}
.valor-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.2rem;
}
.valor-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
}

/* ═══════════════════════════════════════════════════
   HORARIOS
═══════════════════════════════════════════════════ */
.schedule-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  transition: var(--transition);
  border-top: 4px solid #c9a84c;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.schedule-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}
.schedule-card--kids {
  border-top-color: var(--color-kids);
}
.schedule-card--encendi2 {
  border-top-color: var(--color-encendi2);
}

.schedule-day {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9a7b30;
  margin-bottom: 0.35rem;
}
.schedule-time {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1a1208;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.schedule-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1208;
  margin-bottom: 0.5rem;
}
.schedule-desc {
  font-size: 0.875rem;
  color: #6b5c3e;
  margin-bottom: 1rem;
}
.schedule-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f3e8c8;
  color: #6b3e00;
}
.badge-kids {
  background: #fff4e0;
  color: #7a4800;
}
.badge-encendi2 {
  background: #fff0e0;
  color: #7a3200;
}

.location-note {
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  color: #4a3c1e;
  font-size: 0.9rem;
}
.location-note-icon {
  font-size: 1.4rem;
  color: #c9a84c;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   MINISTERIOS
═══════════════════════════════════════════════════ */
.ministry-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.ministry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}
.ministry-kids {
  border-top: 3px solid var(--color-kids);
}
.ministry-kids:hover {
  border-color: var(--color-kids);
  box-shadow: 0 16px 50px rgba(245, 166, 35, 0.12);
}
.ministry-encendi2 {
  border-top: 3px solid var(--color-encendi2);
}
.ministry-encendi2:hover {
  box-shadow: 0 16px 50px rgba(247, 148, 29, 0.15);
}

.ministry-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--color-gold-dim);
  border: 2px solid rgba(232, 201, 108, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.ministry-icon {
  font-size: 2rem;
  color: var(--color-kids);
}

.encendi2-wrap {
  background: #f7941d22;
  border-color: rgba(247, 148, 29, 0.3);
  padding: 0;
  overflow: hidden;
}
.ministry-logo-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}

.ministry-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}
.ministry-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}
.ministry-desc {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.ministry-info {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.ministry-info span + span {
  margin-left: 1rem;
}

.btn-encendi2 {
  background: var(--color-encendi2);
  color: #fff;
  border: none;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
}
.btn-encendi2:hover {
  background: #e07518;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(247, 148, 29, 0.35);
}

/* ═══════════════════════════════════════════════════
   INSTAGRAM PROFILE
═══════════════════════════════════════════════════ */
.instagram-profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  max-width: 480px;
  transition: var(--transition);
}
.instagram-profile-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
.ig-profile-pic img {
  border: 3px solid transparent;
  background:
    linear-gradient(#1a1a1a, #1a1a1a) padding-box,
    linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045) border-box;
  object-fit: cover;
}
.ig-username {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.3rem;
}
.ig-bio {
  font-size: 0.88rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.6;
}
.ig-stats {
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
}
.ig-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ig-stat strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-white);
}
.ig-stat span {
  font-size: 0.7rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════════════════
   UBICACIÓN
═══════════════════════════════════════════════════ */
.location-info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
.location-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.location-detail {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}
.detail-icon {
  color: var(--color-gold);
  font-size: 1rem;
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
}
.location-detail strong {
  color: var(--color-white);
}
.link-vn {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.25s;
}
.link-vn:hover {
  color: #f0d478;
  text-decoration: underline;
}

.map-wrapper {
  border-radius: var(--radius-card);
  overflow: hidden;
  min-height: 300px;
}
.map-wrapper iframe {
  display: block;
  border-radius: var(--radius-card);
}

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.site-footer {
  background: #080808;
  border-top: 1px solid var(--color-border);
}
.footer-brand {
  font-size: 1.1rem;
  color: var(--color-white);
}
.footer-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  max-width: 260px;
}
.footer-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.footer-list li + li {
  margin-top: 0.3rem;
}
.footer-social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.25s;
}
.footer-social-link:hover {
  color: var(--color-gold);
}
.footer-divider {
  border-color: var(--color-border);
}
.footer-copy {
  color: rgba(255, 255, 255, 0.3);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE TWEAKS
═══════════════════════════════════════════════════ */
@media (max-width: 575px) {
  .hero-stats {
    gap: 1rem;
  }
  .stat-number {
    font-size: 1.6rem;
  }
  .logo-hero {
    width: min(260px, 80vw);
  }
  .instagram-profile-card {
    padding: 1.25rem;
  }
  .ig-stats {
    flex-direction: column;
    gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
