/* ============================================
   VARIABLES - Colores principales de la iglesia
============================================ */
:root {
  --primary-blue: #4da3ff;          /* Azul cielo principal */
  --primary-blue-dark: #3b82f6;
  --dark-blue: #1e3a7a;             /* Footer oscuro */
  --accent-red: #e60000;            /* Rojo característico */
  --accent-red-dark: #b30000;
  --text-dark: #0f172a;
  --text-light: #ffffff;
  --gray-light: #f1f5f9;
  --gray-medium: #e2e8f0;
  --bg-page: #f5f9ff;               /* Fondo general */
  --shadow-soft: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-colored: 0 8px 24px rgba(77, 163, 255, 0.18);
}

/* ============================================
   GENERAL
============================================ */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Alegreya Sans', sans-serif;
  color: var(--text-dark);
  background: linear-gradient(to bottom, var(--bg-page) 0%, #ffffff 80%);
  margin: 0;
  padding: 0;
  line-height: 1.75;
  font-size: 1.125rem;
  overflow-x: hidden;
}

/* Títulos */
h1, h2, h3, h4, h5, h6, .section-title, .church-name {
  font-family: 'Alegreya', serif;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

/* ============================================
   NAVBAR
============================================ */
.header-main {
  background: white;
  box-shadow: var(--shadow-soft);
  z-index: 1030;
}

.navbar {
  padding: 0.9rem 0;
}

.navbar-brand .logo-img {
  max-height: 62px;
}

.nav-link.btn-nav {
  background: #ffffff;
  border: 2px solid var(--gray-medium);
  border-radius: 12px;
  padding: 0.65rem 1.25rem !important;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark) !important;
  transition: all 0.28s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.nav-link.btn-nav:hover,
.nav-link.btn-nav:focus,
.nav-link.btn-nav.active {
  background: #fee2e2;
  border-color: var(--accent-red);
  color: var(--accent-red) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(230, 0, 0, 0.18);
}

.dropdown-menu {
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  margin-top: 0.6rem;
  background: white;
}

.dropdown-item {
  font-size: 1.05rem;
  padding: 0.65rem 1.5rem;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: #fff5f5;
  color: var(--accent-red);
}

/* ============================================
   HERO - Imagen completa + celeste muy tenue
============================================ */
/* HERO - Imagen completa + filtro oscuro tenue para legibilidad perfecta */
.hero-section {
  position: relative;
  min-height: 80vh;
  background-image: url('../assets/img/iglesia.jpeg');   /* ruta desde la raíz o ajusta si es necesario */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Filtro oscuro suave (mejor contraste que el celeste) */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.60);  /* negro 38% - atenúa bien y deja legible el texto */
  z-index: 1;
}

/* Contenido de texto encima de todo */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  padding: 2rem 1.5rem;
  color: white;
}

/* Títulos y textos con sombra fuerte para máxima legibilidad */
.church-name {
  font-size: 5.4rem;
  color: var(--accent-red);
  margin-bottom: 1.8rem;
  text-shadow: 3px 3px 12px rgba(0,0,0,0.9);  /* sombra muy oscura y gruesa */
  letter-spacing: 1px;
}

.welcome-text {
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 1.6rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.9);  /* sombra fuerte */
}

.welcome-subtext {
  font-size: 1.38rem;
  text-shadow: 1.5px 1.5px 8px rgba(0,0,0,0.9);
}

/* Responsivo */
@media (max-width: 991px) {
  .church-name { font-size: 4.2rem; }
  .welcome-text { font-size: 1.45rem; }
  .hero-section { min-height: 70vh; }
}

@media (max-width: 576px) {
  .church-name { font-size: 3.6rem; }
  .welcome-text {
	font-size: 18px;
}
  .hero-section { min-height: 65vh; }
}

/* ============================================
   BOTONES "Leer Más"
============================================ */
.btn-preview {
  background: var(--accent-red);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.7rem 1.8rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(230, 0, 0, 0.25);
}

.btn-preview:hover {
  background: var(--accent-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(179, 0, 0, 0.35);
}

/* ============================================
   SECCIONES GENERALES
============================================ */
.section-padding {
  padding: 90px 0;
}

.section-title {
  font-size: 3.2rem;
  color: var(--accent-red);
  position: relative;
  margin-bottom: 3rem;
}

.section-title:after {
  content: '';
  width: 120px;
  height: 5px;
  background: var(--accent-red);
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================
   CARDS
============================================ */
.card {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s ease;
  background: white;
  box-shadow: var(--shadow-soft);
}

.card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-colored);
}

/* ============================================
   FOOTER
============================================ */
.footer-main {
  background: var(--dark-blue);
  color: var(--text-light);
  padding: 40px 0 30px;
}

.contact-info {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.social-icons a {
  color: #dbeafe;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.08);
}

.social-icons a:hover {
  color: var(--accent-red);
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-5px);
}

/* ============================================
   FLOTANTES
============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 70px;
  height: 70px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 9999;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.15);
}

.live-float {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 160px;
  height: 50px;
  background-color: #dc3545;
  color: white;
  border-radius: 50px;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  text-decoration: none;
  transition: all 0.3s ease;
}

.live-float:hover {
  background-color: #c82333;
  transform: scale(1.05);
}
/* Botón flotante Facebook */
.facebook-float {
  position: fixed;
  bottom: 160px;          /* Debajo de "Ver en vivo" y encima de WhatsApp */
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #1877f2; /* Azul oficial de Facebook */
  color: white;
  border-radius: 50%;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  text-decoration: none;
  transition: all 0.3s ease;
}

.facebook-float:hover {
  background-color: #0e5ed8;
  transform: scale(1.15);
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

/* Ajuste de posiciones para que queden apilados correctamente */
.live-float {
  bottom: 230px;  /* Más arriba */
}

.whatsapp-float {
  bottom: 80px;
}

.facebook-float {
  bottom: 150px;  /* Ajuste fino para que quede bien visible */
}
/* Botón para Facebook en páginas internas */
.btn-facebook {
  background-color: #1877f2;
  border-color: #1877f2;
  transition: all 0.3s ease;
}

.btn-facebook:hover {
  background-color: #0e5ed8;
  border-color: #0e5ed8;
  transform: translateY(-2px);
}
