@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Montserrat:wght@700&display=swap');

/* === RESET === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* === BASE === */
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  color: #fbf9f9;
  background:
    radial-gradient(100% 60% at 50% -10%, rgba(253,127,18,.25), transparent 60%),
    radial-gradient(120% 70% at 100% 0%, rgba(245,0,0,.18), transparent 55%),
    radial-gradient(140% 80% at 0% 100%, rgba(251,229,24,.18), transparent 55%),
    #000;
  line-height: 1.6;
}

/* === CONTAINERS === */
.container { width: 92%; max-width: 1200px; margin: 0 auto; }
main.container { padding: 0.1rem 1rem 2rem; }

/* === HEADER === */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(0,0,0,0.75);
  backdrop-filter: saturate(140%) blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.container.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;   /* permite que nav baje cuando no cabe */
  padding: 0 1rem;
}

.brand { display: flex; align-items: center; }
.brand img {
  height: 100px;
  width: auto;
  flex-shrink: 0;   /* no se reduce nunca */
}
@media (min-width: 1024px) {
  .brand img { height: 140px; }
}

.brand h1 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: #fff;
}
.brand h1 .ardiendo {
  font-family:'Montserrat', sans-serif;
  font-weight: 700;
  background: linear-gradient(90deg, #f50000, #fd7f12);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand h1 .iglesia {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  opacity: .9;
  margin-left: .25rem;
  font-size: .95em;
}

/* === BOTÓN HAMBURGUESA (solo móvil) === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* =========================
   NAV / HEADER CORREGIDO
   ========================= */

/* Contenedor del header/nav */
.container.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
  flex-wrap: nowrap; /* mantener logo y nav en la misma fila */
}

/* Logo: tamaño fijo y estable */
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.brand img {
  height: 100px;    /* tamaño fijo */
  width: auto;
  flex-shrink: 0;   /* nunca se reduce */
}

/* Botón hamburguesa (solo visible en móvil) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}

/* NAV: ocupa el espacio restante, pero puede encogerse correctamente */
nav {
  flex: 1;     /* toma el espacio disponible */
  min-width: 0; /* clave para permitir que el hijo (ul) haga overflow/scroll internamente si hace falta */
}

/* LISTA DE ENLACES: flow horizontal y wrap uno a uno */
nav ul {
  display: flex;
  flex-wrap: wrap;            /* permite que los items pasen a la siguiente fila, uno a uno */
  justify-content: center;    /* centra los items en cada fila */
  align-items: center;
  gap: 0.15rem;                /* más compactos entre sí */
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Cada item no se encoge y envuelve como bloque (no partiendo palabras) */
nav ul li {
  flex: 0 0 auto;     /* no se encoge, y su ancho es el de su contenido */
}

/* Enlaces */
nav ul li a {
  display: inline-block;
  text-decoration: none;
  color: white;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;    /* evita que el texto se rompa en varias líneas */
  text-align: center;
  transition: background .2s ease, color .15s ease;
}

nav ul li a:hover {
  background: rgba(255,255,255,0.06);
}

nav ul li a.active {
  color: #fbe518;
  background: linear-gradient(90deg, rgba(251,229,24,.12), transparent);
}

/* ------------------------
   MÓVIL: menú hamburguesa
   ------------------------ */
@media (max-width: 768px) {
  /* Mostrar ícono hamburguesa */
  .menu-toggle {
    display: block;
    margin-left: auto;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #fff;
  }

  /* Estructura del menú */
  header nav {
    position: relative;
    z-index: 99999; /* 👈 aseguramos que esté por encima de todo */
  }

  header nav ul {
    display: none; /* oculto por defecto */
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    background: #111;
    border-radius: 0 0 8px 8px;
    padding: 0.3rem 0.2rem;
    z-index: 99999; /* 👈 prioridad sobre iframes (PayPal) */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.25s ease;
  }

  /* Cuando se activa */
  header nav ul.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
  }

  /* Enlaces del menú */
  header nav ul li {
    width: 100%;
  }

  header nav ul li a {
    display: block;
    padding: 0.6rem 0.8rem; /* 👈 menos separación vertical */
    font-size: 0.95rem;
    text-align: left;
    color: #fff;
    transition: background 0.3s;
  }

  header nav ul li a:hover {
    background: #ff922b; /* Naranja al pasar el mouse */
  }
}



/* 🔸 Botón Congregación especial (solo escritorio) */
/*.btn-congregacion {*/
  background: #ff7a00; /* naranja vibrante */
/*  color: #fff !important;*/
/*  padding: 4px 8px;*/
/*  border-radius: 30px;*/
/*  letter-spacing: 0.5px;*/
/*  box-shadow: 0 0 12px rgba(255, 122, 0, 0.6);*/
/*  animation: heartbeat 1.5s infinite;*/
/*  transition: all 0.3s ease;*/
/*}*/

/*.btn-congregacion:hover {*/
/*  background: #ff9c33;*/
/*  box-shadow: 0 0 20px rgba(255, 140, 0, 0.8);*/
/*  transform: scale(1.02);*/
/*}*/

/* 💓 Animación de latido */
/*@keyframes heartbeat {*/
/*  0%, 100% {*/
/*    transform: scale(1);*/
/*    box-shadow: 0 0 10px rgba(255, 122, 0, 0.6);*/
/*  }*/
/*  50% {*/
/*    transform: scale(1.025);*/
/*    box-shadow: 0 0 20px rgba(255, 122, 0, 0.9);*/
/*  }*/
/*}*/

/* 🧭 Alineación con el resto del menú */
nav ul li .btn-congregacion {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 auto; /* centra horizontalmente */
  width: fit-content;
}

/* 📱 Versión móvil: sin animación ni efectos */
@media (max-width: 768px) {
  .btn-congregacion {
    animation: none;            /* sin latido */
    box-shadow: none;           /* sin brillo */
    transform: none;            /* sin escalado */
    transition: none;           /* sin transiciones */
    background: #ff7a00;        /* mantiene el color base */
    color: #fff !important;
    border-radius: 30px;
    width: 90%;
    text-align: center;
    margin: 0.8rem auto 1rem;
    padding: 0.8rem 1rem;
  }

  .btn-congregacion:hover {
    background: #ff7a00; /* sin cambio de color */
    transform: none;
    box-shadow: none;
  }
}











/* === TITULOS === */

/* === TITULOS === */
.section-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  background: none;
  color: #fff;
}
.section-title .emoji {
  background: none !important;
  color: inherit !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  filter: none !important;
  box-shadow: none !important;
}


/* === BOTONES === */
.btn {
  display: inline-block;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  font-weight: bold;
  letter-spacing: .3px;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(251,229,24,.45);
}
.btn-primary {
  background: linear-gradient(135deg, #f50000, #fd7f12);
  color: #fff;
  box-shadow: 0 8px 20px rgba(245,0,0,.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.btn-ghost {
  border: 2px solid #fbe518;
  color: #fbe518;
  background: rgba(251,229,24,0.1);
}
.btn-ghost:hover {
  background: rgba(251,229,24,0.18);
  transform: translateY(-1px);
}

/* === iconos redes === */
.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
}
.social-icons a {
  font-size: 2rem;
  text-decoration: none;
  transition: transform 0.25s ease;
}
.social-icons a:hover {
  transform: scale(1.15);
}
.social-icons a .fa-facebook { color: #1877f2; }
.social-icons a .fa-instagram {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf, #4f5bd5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.social-icons a .fa-youtube { color: #ff0000; }
.social-icons a .fa-tiktok {
  background: linear-gradient(45deg, #25f4ee, #fe2c55);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* === CARD & GRIDS === */
.grid { display: block; }
.grid-2 .card, .grid-3 .card { margin-bottom: 1rem; }
@media (min-width: 900px) {
  .grid { display: grid; gap: 1.1rem; }
  .grid-2 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(3,1fr); }
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(251,229,24,0.3);
  box-shadow: 0 10px 26px rgba(251,229,24,.12);
}
.card .body { padding: 1rem; }
.card-gallery h3 {
  padding: 1rem;
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  text-align: center;
}
.card-gallery h3 .emoji {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: inherit;
}

/* === SECCIÓN REDES === */
.social-section { text-align: center; margin: 3rem auto; }
.social-section .section-title { text-align: center; margin-bottom: 1.5rem; }
.social-section .social-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.social-section .social-gif img {
  max-width: 550px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .social-section .social-gif img { max-width: 700px; }
}
.social-section .social-icons { gap: 1.2rem; margin-top: 0.5rem; }

/* === Galerías === */
.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.card-gallery {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card-gallery:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 26px rgba(251, 229, 24, 0.18);
  border-color: rgba(253, 127, 18, 0.25);
}
.card-gallery .preview {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}
.card-gallery .preview img,
.card-gallery .preview iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
  border-radius: 0;
}
.card-gallery .footer { padding: 1rem; text-align: center; }
.card-gallery .btn {
  background: linear-gradient(135deg, #f50000, #fd7f12);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(253, 127, 18, 0.2);
}
.card-gallery .btn:hover {
  background: linear-gradient(135deg, #fd7f12, #fbe518);
  color: black;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(251, 229, 24, 0.3);
}

/* Submenú de filtros */
nav.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 2rem auto 1rem auto;
  padding: 0 1rem;
}
.filter-btn {
  background: #1a1a1a;
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid #444;
  transition: background 0.3s ease;
}
.filter-btn:hover { background: #333; }
.filter-btn.active {
  background: #fbe518;
  color: black;
  font-weight: bold;
}

/* === FOOTER === */
footer {
  background: #0B0B0B;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #aaa;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-grid { display: block; }
@media screen and (min-width: 900px) {
  .footer-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 2fr 1fr 1fr;
  }
}
.mini { font-size: .9rem; }

/* === VIDEOS DESTACADOS Y GRIDS === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 500px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* === REELS VIDEO GRID === */
.reels-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin: 2rem auto;
  max-width: 1200px;
}

.reels-video, .reels-video-grid .video {
  background: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.reels-video iframe, .reels-video-grid .video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* === ETIQUETA META/HORA SÓLIDA === */
.solid-label {
  display: inline-block;
  background: #fd7f12;
  color: #fff;
  font-weight: bold;
  font-size: .85rem;
  border-radius: 999px;
  padding: .3em .9em;
  margin-bottom: .7em;
  box-shadow: 0 2px 8px rgba(253,127,18,0.12);
  letter-spacing: .5px;
}

/* === ETIQUETA TIEMPO DE LECTURA NARANJA CON ICONO === */
.modal-content .read-time {
  background: #ffb347;
  color: #111;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 999px;
  padding: .4em 1.2em .4em .8em;
  margin-bottom: 1em;
  box-shadow: 0 2px 8px rgba(253,127,18,0.12);
  letter-spacing: .7px;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: .5em;
}
.modal-content .read-time .fa-clock {
  font-size: 1em;
  margin-right: .2em;
  color: #111;
}

