/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}





.blog-container {
  width: 90%;          
  max-width: 1600px;   
  margin: 0 auto;
  padding: 20px 15px;
  background-color: #020927;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  line-height: 1.6;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #522b5b;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}



/* 
MENSAJE DE INICIO DE SESION
 */

.auth-intro {
  background: linear-gradient(135deg, #e0d3f5, #f9f2ff);
  border-radius: 12px;
  margin: 40px auto 20px auto;
  padding: 30px 20px;
  max-width: 800px;
  box-shadow: 0 4px 12px rgba(102, 51, 153, 0.2);
}

.auth-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: #6b3fa0;
  margin-bottom: 10px;
}

.auth-subtext {
  font-size: 1.1rem;
  color: #4a4a4a;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}



/* --- Contenedor de autenticación --- */
.auth-section {
  max-width: 360px;
  margin: 20px auto;
  padding: 20px;
  background: #f4f9ff;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 85, 170, 0.2);
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.auth-section h2 {
  margin-bottom: 20px;
  color: #0055aa;
  font-weight: 700;
}

.auth-section input[type="email"],
.auth-section input[type="password"] {
  width: 90%;
  padding: 10px 12px;
  margin: 10px 0;
  border: 2px solid #0055aa;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.auth-section input[type="email"]:focus,
.auth-section input[type="password"]:focus {
  border-color: #003d7a;
}

.auth-section button {
  width: 45%;
  margin: 10px 5px;
  padding: 12px 0;
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: white;
  background: linear-gradient(45deg, #0055aa, #0077ee);
  box-shadow: 0 4px 8px rgba(0, 85, 170, 0.3);
  transition: background 0.3s ease, transform 0.15s ease;
}

.auth-section button:hover {
  background: linear-gradient(45deg, #003d7a, #0059cc);
  transform: scale(1.05);
}

/* --- Mensaje de error --- */
#authMessage {
  font-weight: 600;
  margin-top: 10px;
  color: #cc0000;
}

/* --- Chat sección --- */
.chat-section {
  max-width: 720px;
  margin: 30px auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
}

/* Mostrar el usuario conectado arriba */
.chat-section p strong#nombreUsuarioConectado {
  color: #0055aa;
  font-weight: 700;
  font-size: 1.1rem;
}

/* Botones de cambio de sala */
.chat-tabs button {
  background-color: #e3f0ff;
  border: 2px solid #0055aa;
  border-radius: 20px;
  padding: 8px 18px;
  margin: 5px 6px 15px 0;
  font-weight: 600;
  color: #0055aa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-tabs button:hover,
.chat-tabs button:focus {
  background-color: #0055aa;
  color: white;
  outline: none;
}

/* Botón cerrar sesión arreglado para que solo sea uno y se vea bien */
.chat-section > div > div:last-child button {
  background-color: #cc3300;
  border: none;
  color: white;
  font-weight: 700;
  padding: 10px 25px;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
  display: block;
  margin-left: auto;
}

.chat-section > div > div:last-child button:hover {
  background-color: #a12800;
}

/* User config inputs styling */
.user-config input[type="text"],
.user-config input[type="number"],
.user-config input[type="color"] {
  border: 2px solid #0055aa;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 5px 8px 15px 0;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.user-config input[type="text"]:focus,
.user-config input[type="number"]:focus,
.user-config input[type="color"]:focus {
  border-color: #003d7a;
}

.profile-photo-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  color: #0055aa;
  margin-top: 10px;
}

.profile-photo-label img.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  margin-right: 8px;
  border: 2px solid #0055aa;
  object-fit: cover;
}

/* Ajustar botón de enviar */
.chat-input button {
  background-color: #0055aa;
  border: none;
  color: white;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.chat-input button:hover {
  background-color: #003d7a;
}

/* Emoji picker */
.emoji-picker span {
  cursor: pointer;
  font-size: 1.5rem;
  margin: 4px 6px;
  user-select: none;
  transition: transform 0.15s ease;
}

.emoji-picker span:hover {
  transform: scale(1.2);
}

/* Modal perfil usuario */
.modal-content {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  max-width: 360px;
  margin: auto;
}

.modal-content img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.close-btn {
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  float: right;
  margin-top: -10px;
  color: #333;
}

.close-btn:hover {
  color: #0055aa;
}
 */


.modal {
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  text-align: center;
}

.modal-content input {
  width: 90%;
  padding: 10px;
  margin: 6px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.modal-content button {
  padding: 10px 20px;
  margin-top: 10px;
  background: #0055aa;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.close-btn {
  float: right;
  font-size: 20px;
  cursor: pointer;
}









/* NAVBAR */


.navbar {
  background: #854f6c;
  padding: 30px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative; /* Para posicionar hamburguesa */
}

.navbar ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.navbar ul li {
  margin: 0 12px;
}

.navbar ul li a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.3s;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  background: #003f7f;
}

/* Estilos hamburguesa - oculto en desktop */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 25px;
  height: 20px;
  justify-content: space-between;
  position: absolute;
  right: 20px;
  top: 35px;
}

.hamburger span {
  background: white;
  height: 3px;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Responsive para móvil */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .navbar ul {
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    width: 100%;
    background: #854f6c;
    position: absolute;
    top: 75px; /* justo debajo de la navbar */
    left: 0;
    z-index: 10;
  }

  .navbar ul.open {
    max-height: 500px; /* ajustar según la cantidad de items */
  }

  .navbar ul li {
    margin: 12px 0;
    text-align: center;
  }
}

/* Hero Section para web cristiana */
.hero-section {
  position: relative;
  background-image: url('imagenes/princi.jpeg'); /* Cambia por tu imagen de fondo */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: #f0f3f5;
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
}

/* Capa oscura para mejorar legibilidad */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 45, 0.7);
  z-index: 1;
}

/* Contenedor de contenido */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 40px 30px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

/* Título principal */
.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #f5f6f7;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
  letter-spacing: 0.08em;
  font-family: 'Georgia', serif;
}

/* Subtítulo */
.hero-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: #d1e7ff;
  line-height: 1.5;
  font-style: italic;
}

/* Texto descriptivo */
.hero-description {
  font-size: 1.1rem;
  font-weight: 400;
  color: #c9d6e3;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

/* Destacar palabras importantes */
.hero-subtitle strong {
  color: #ffd54f;
  text-shadow: 0 0 10px #ffd54f;
  font-style: normal;
}

/* Responsive */
@media (max-width: 600px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  .hero-content {
    padding: 25px 20px;
  }
}

/* 🎥 Video de fondo dentro de hero-section */
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}


/* Ajustes para pantallas móviles */
@media (max-width: 768px) {
  .hero-video {
    height: 50vh; /* Altura menor en móviles, por ejemplo la mitad de la pantalla */
    object-fit: contain; /* Ajusta el video para que no se corte tanto */
  }
}

@media (max-width: 480px) {
  .hero-video {
    height: 40vh; /* Aún más pequeño para celulares muy pequeños */
    object-fit: contain;
  }
}



/* Estilo para separar secciones */
.section-divider {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #0055aa, transparent);
  margin: 40px 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 4px;
}





/* CONTENEDOR GENERAL */


/* Línea divisoria elegante */
.section-divider {
  border: none;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  width: 90%;
  margin: 60px auto 40px;
  border-radius: 2px;
}

/* Contenedor general */
.bible-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1350px;
  margin: 0 auto 60px;
  padding: 30px;
  align-items: flex-start;
  flex-wrap: nowrap;
  background: rgba(10, 25, 45, 0.7);
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Versículo del día (izquierda, más angosto con fondo oscuro visible) */
.bible-widget {
  background: linear-gradient(145deg, #1f1f1f, #2d2d2d);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  color: #f5f5f5;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding: 25px 20px;
  flex: 0 0 360px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bible-widget h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 0 6px rgba(0,0,0,0.4);
}

.bible-widget p {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
  color: #cdc112cf;
  text-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.bible-widget small {
  font-size: 1rem;
  color: #d0cd0a;
  font-weight: 600;
  text-shadow: 0 0 3px rgba(0,0,0,0.25);
}

/* Visor de Biblia (derecha, más ancho y legible) */
.bible-search-widget {
  background: linear-gradient(145deg, #1c2530, #283445);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  color: #fff;
  padding: 20px;
  flex: 1 1 1000px;       /* 👈 fuerza que sea más ancho aún */
  max-width: 1000px;      /* 👈 más ancho permitido */
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bible-search-widget iframe {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: none;
  min-height: 480px;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.3);
}

/* Responsive para pantallas más chicas */
@media (max-width: 992px) {
  .bible-container {
    flex-direction: column;
    gap: 30px;
    padding: 20px;
  }

  .bible-widget,
  .bible-search-widget {
    max-width: 100%;
    flex: unset;
    min-height: 460px;
  }
}









/* CHAT SECTION MEJORADO */
.chat-section {
  max-width: 900px;
  margin: 30px auto 60px;
  background-color: #522b5b;
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Chat box (zona de mensajes) */
.chat-box {
  background: #f9f9fb;
  border: none;
  height: 450px;
  overflow-y: auto;
  padding: 20px 25px;
  border-radius: 16px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  scroll-behavior: smooth;
}

/* Mensajes */
.message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 15px;
  max-width: 85%;
}

/* Avatar para usuario */
.message img.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid #1877f2; /* color azul Facebook */
  box-shadow: 0 2px 5px rgba(24,119,242,0.3);
  transition: box-shadow 0.3s ease;
}
.message img.avatar:hover {
  box-shadow: 0 4px 12px rgba(24,119,242,0.6);
}

/* Burbuja de mensaje */
.bubble {
  background: #e7f3ff;
  padding: 12px 18px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(24,119,242,0.15);
  max-width: 100%;
  position: relative;
  word-wrap: break-word;
  font-size: 1rem;
  line-height: 1.3;
  color: #050505;
  user-select: text;
  transition: background 0.3s ease;
}

/* Nombre usuario en mensaje */
.bubble .username {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1877f2; /* azul */
  margin-bottom: 6px;
  user-select: none;
}

/* Texto mensaje */
.bubble span {
  font-size: 0.95rem;
  color: #202124;
  line-height: 1.4;
  display: block;
  white-space: pre-wrap; /* mantiene saltos de línea */
}

/* Acciones mensaje (likes, etc.) */
.message-actions {
  margin-top: 8px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #1877f2;
}
.message-actions button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: #1877f2;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.25s ease;
  white-space: nowrap;
  user-select: none;
}
.message-actions button:hover {
  color: #0f54b8;
}






/* Contador likes */
.like-count {
  font-weight: 700;
  color: #1877f2;
}

/* Mensajes de respuesta (reply) */
.message.reply-message {
  margin-left: 50px;
  border-left: 4px solid #1877f2;
  color: #000000;
  padding-left: 18px;
  background: #e5ffdc;  /* COLOR MODIFICADO para diferenciar un poco */
  border-radius: 14px;
  box-shadow: 0 0 8px rgba(24,119,242,0.15);
  flex-direction: column;
  max-width: 75%;
  font-size: 0.95rem;
}

/* En respuestas, avatar oculto para simplicidad */
.message.reply-message img.avatar {
  display: none;
}

/* Burbuja en respuestas sin fondo, más limpio */
.message.reply-message .bubble {
  background: transparent;
  padding: 8px 12px; /* un poco de padding para mejor lectura */
  box-shadow: none;
  max-width: 100%;
  color: #222;
}

/* Nombre en respuesta destacado - ahora negro y bold */
.message.reply-message .username {
  font-weight: 700;
  color: #000000;  /* negro */
  font-size: 1rem;
  margin-bottom: 6px;
  user-select: none;
}

/* Texto en respuesta */
.message.reply-message .bubble > span:not(.username) {
  color: #000000;
  font-style: normal;
  white-space: pre-wrap;
}

/* Ocultar acciones en respuestas */
.message.reply-message .message-actions {
  display: none;
}

/* Contenedor respuestas */
.replies-container {
  margin-top: 15px;
  max-height: 300px;
  overflow-y: auto;
  border-left: 3px dotted #bb5fdf;
  padding-left: 14px;
}

/* Input de respuesta */
.reply-input-container {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.reply-input-container input.reply-input {
  flex-grow: 1;
  padding: 10px 14px;
  font-size: 1rem;
  border-radius: 25px;
  border: 2px solid #bb5fdf;
  transition: border-color 0.3s;
}
.reply-input-container input.reply-input:focus {
  outline: none;
  border-color: #28b80f;
  box-shadow: 0 0 6px #b0b80faa;
}
.reply-input-container button.reply-send-btn {
  background: #1877f2;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.3s ease;
}
.reply-input-container button.reply-send-btn:hover {
  background: #3bc415;
}

/* Chat input general */
.chat-input {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.chat-input input[type="text"] {
  flex-grow: 1;
  padding: 12px 18px;
  font-size: 1rem;
  border-radius: 25px;
  border: 1.5px solid #ccc;
  transition: border-color 0.3s ease;
  min-width: 200px;
}
.chat-input input[type="text"]:focus {
  outline: none;
  border-color: #1877f2;
  box-shadow: 0 0 8px #1877f2aa;
}
.chat-input button {
  background: #1877f2;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.3s ease;
}
.chat-input button:hover {
  background: #0f54b8;
}

/* Emoji picker */
.emoji-container {
  position: relative;
  display: flex;
  align-items: center;
}
.emoji-button {
  font-size: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  user-select: none;
  color: #1877f2;
  transition: color 0.3s ease;
}
.emoji-button:hover {
  color: #0f54b8;
}
.emoji-picker {
  position: absolute;
  bottom: 120%;
  left: 0;
  background: white;
  border: 1px solid #bbb;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  z-index: 1000;
  flex-wrap: wrap;
  max-width: 280px;
}
.emoji-picker span {
  font-size: 1.6rem;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease;
}
.emoji-picker span:hover {
  transform: scale(1.35);
}


.profile-modal-wrapper {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 400px;
  width: 90vw;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  padding: 20px;
  z-index: 10000;
}



/* Modal de perfil */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.5); /* fondo semi-transparente */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 25px 30px;
  border-radius: 16px;
  max-width: 380px;        /* tamaño razonable */
  width: 90vw;             /* responsivo */
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
}

.modal-content img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0055aa;
  margin-bottom: 18px;
}

.modal-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.6rem;
  color: #003f7f;
}

.modal-content p {
  font-size: 1.1rem;
  color: #444;
  margin: 6px 0;
}

/* Botón cerrar */
.close-btn {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 2rem;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #0055aa;
}





/* ESTILO PARA EL NOMBRE */
#userColorInput {
  border: 2px solid #000000; /* borde claro para que contraste */
  border-radius: 4px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.username {
  text-shadow:
    -1px -1px 0 #000000ae,
    1px -1px 0 #0000006e,
    -1px 1px 0 #00000080,
    1px 1px 0 #00000094;
}

#userNameInput {
  color: #000 !important;        /* texto negro */
  background-color: #fff !important; /* fondo blanco */
  border: 1px solid #ccc;
  padding: 5px;
  border-radius: 4px;
}

#userColorInput {
  border: 2px solid #0000009d !important;
  border-radius: 5px;
}


  /* Estilo para el botón cerrar sesión */
  #logoutBtn {
    background-color: #854f6c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  #logoutBtn:hover {
    background-color: #a0638c;
  }


/* Scrollbar personalizado para chat-box y replies-container */
.chat-box::-webkit-scrollbar,
.replies-container::-webkit-scrollbar {
  width: 8px;
}
.chat-box::-webkit-scrollbar-track,
.replies-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.chat-box::-webkit-scrollbar-thumb,
.replies-container::-webkit-scrollbar-thumb {
  background: #1877f2;
  border-radius: 10px;
}

/* Responsividad para pantallas chicas */
@media (max-width: 700px) {
  .chat-section {
    padding: 20px 15px;
  }
  .chat-box {
    height: 350px;
    padding: 15px 20px;
  }
  .message {
    max-width: 100%;
    gap: 12px;
  }
  .message.reply-message {
    margin-left: 20px;
    max-width: 90%;
    border-left-width: 3px;
    padding-left: 14px;
  }
  .reply-input-container,
  .chat-input {
    flex-direction: column;
    align-items: stretch;
  }
  .reply-input-container input.reply-input,
  .reply-input-container button.reply-send-btn,
  .chat-input input[type="text"],
  .chat-input button {
    width: 100%;
  }
}



/* Wrapper principal */
.wrapper {
  max-width: 960px;
  margin: 0 auto 40px;
  padding: 0 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: #bca4c5;
}





/* Lista de usuarios conectados */
#usuariosEnLinea {
  background-color: #fff;
  padding: 15px 20px;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  margin-top: 25px;
  max-height: 260px;
  overflow-y: auto;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Estilo de cada usuario conectado */
#usuariosEnLinea div {
  margin-bottom: 12px;
  border-left: 4px solid #1877f2;
  padding-left: 10px;
}

#usuariosEnLinea span {
  font-weight: 700;
  font-size: 1rem;
}

#usuariosEnLinea small {
  color: #444;
  font-size: 0.88rem;
  display: block;
}

/* Scroll personalizado igual que en el chat */
#usuariosEnLinea::-webkit-scrollbar {
  width: 8px;
}
#usuariosEnLinea::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
#usuariosEnLinea::-webkit-scrollbar-thumb {
  background: #1877f2;
  border-radius: 10px;
}


/* Estado colapsado: muestra solo 5 usuarios aproximadamente */
#usuariosEnLinea.collapsed {
  max-height: 130px;  /* menos alto para mostrar pocos */
  overflow-y: hidden;
}







/* MODAL DE CONTACTO POR PRIVADO
 */
/* 🌟 FORMULARIO DE ORACIÓN */
#contacto {
  background: linear-gradient(to bottom, #f3ecf9, #e0c3fc);
  padding: 60px 20px;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
  margin: 60px auto;
  max-width: 900px;
}

#contacto .titulo-productos {
  color: #8134af;
  font-weight: 700;
  font-size: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

#contacto label {
  font-weight: 600;
  color: #4d3c6d;
}

#contacto .form-control {
  border-radius: 10px;
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
}

.btn-enviar {
  background: linear-gradient(135deg, #c471f5, #fa71cd);
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  margin-top: 10px;
}

.btn-enviar:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #a45ee6, #e85fbf);
}

/* Línea divisora */
.section-divider {
  border-top: 2px solid #d6bbf3;
  width: 60%;
  margin: 30px auto;
}

/* 🌈 TESTIMONIOS CARRUSEL */
/* Fondo general de la sección testimonios */


.testimonios-section {
  background: linear-gradient(to bottom right, #f4f1fa, #eae3f3);
  padding: 80px 20px;
  position: relative;
  border-radius: 12px;
}

/* Título con estilo */
.testimonios-section .section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #854f6c;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 2.5rem;
}

/* Tarjeta de testimonio */
.testimonio-card {
  background: #ffffffee;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(132, 80, 156, 0.15);
  padding: 2rem;
  color: #4b4b4b;
  max-width: 700px;
  margin: auto;
  transition: transform 0.3s ease;
}

/* Animación al pasar */
.testimonio-card:hover {
  transform: translateY(-6px);
}

/* Texto del testimonio */
.testimonio-card p {
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #5a5a5a;
}

/* Footer del testimonio */
.testimonio-card footer {
  margin-top: 1rem;
  color: #c36a91;
  font-weight: bold;
}

/* Flechas de carrusel estilizadas */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(39%) sepia(34%) saturate(727%) hue-rotate(280deg) brightness(90%) contrast(92%);
  width: 2.2rem;
  height: 2.2rem;
}

/* Tamaño botón zona clic */
.carousel-control-prev,
.carousel-control-next {
  width: 3.5rem;
  height: 3.5rem;
  top: 50%;
  transform: translateY(-50%);
}

/* Responsive */
@media (max-width: 576px) {
  .testimonio-card {
    padding: 1.5rem;
  }
  .testimonio-card p {
    font-size: 1rem;
  }
  .carousel-control-prev,
  .carousel-control-next {
    width: 2.5rem;
    height: 2.5rem;
  }
}


.testhr {
  border: 0;
  height: 3px;
  width: 60%;
  margin: 40px auto;
  background: linear-gradient(to right, #a258cb, #fa71cd, #a258cb);
  border-radius: 50px;
  box-shadow: 0 2px 6px rgba(162, 88, 203, 0.3);
  opacity: 0.9;
}



/* 🎁 SECCIÓN AYÚDANOS A AYUDAR - RENOVADA */
.ayuda-section {
  position: relative;
  padding: 80px 20px;
  margin: 100px auto;
  max-width: 1000px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 25px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f9f9f9;
  text-align: center;
  overflow: hidden;
  z-index: 1;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Fondo animado flotante */
.ayuda-section::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, #a856a6, #4e215d, #1b0d1d);
  animation: floatBackground 20s linear infinite;
  z-index: -1;
  opacity: 0.25;
}

/* Animación de fondo */
@keyframes floatBackground {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-10%, -10%); }
  100% { transform: translate(0, 0); }
}

/* TÍTULO */
.ayuda-section .section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #ffd166;
  text-shadow: 1px 1px 4px #000;
}

/* Verso bíblico destacado */
.ayuda-text blockquote.versiculo {
  background: rgba(255, 255, 255, 0.15);
  padding: 16px 28px;
  margin: 25px auto;
  border-left: 6px solid #e08abd;
  border-radius: 8px;
  font-style: italic;
  color: #fff;
  max-width: 700px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Texto principal */
.ayuda-text {
  max-width: 800px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #f0e8f7;
  text-shadow: 0 0 5px rgba(0,0,0,0.6);
  padding: 0 20px;
}

/* BOTÓN donación */
.btn-donar {
  display: inline-block;
  background: linear-gradient(135deg, #ff7096, #c86dd7);
  color: white;
  padding: 15px 32px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  position: relative;
  margin-bottom: 40px;
}

.btn-donar:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,0.4);
}

.btn-donar::after {
  content: "❤️";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
}

/* 📱 Responsivo */
@media (max-width: 768px) {
  .ayuda-section {
    padding: 60px 15px;
    margin: 60px 15px;
  }

  .ayuda-section .section-title {
    font-size: 2rem;
  }

  .ayuda-text {
    font-size: 1rem;
    padding: 0 10px;
  }

  .btn-donar {
    font-size: 1rem;
    padding: 12px 24px;
  }
}






/* QUIÉNES SOMOS - estilo embellecido */
.quienes-somos-section {
  padding: 50px 30px;
  background: linear-gradient(135deg, #e0f7fa, #fdfdfd);
  border-left: 6px solid #4ca1af;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
}

.quienes-somos-section::before {
  content: "✨";
  font-size: 4rem;
  position: absolute;
  top: 20px;
  right: 20px;
  opacity: 0.1;
}

.section-title {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 25px;
  color: #2c3e50;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #4ca1af;
  margin: 12px auto 0;
  border-radius: 4px;
}

.quienes-text {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.8;
  text-align: justify;
  max-width: 850px;
  margin: auto;
  padding: 0 10px;
}




/* Título */
.title {
  text-align: center;
  margin-bottom: 15px;
  font-size: 2rem;
}

/* Tabs chat */
.chat-tabs {
  text-align: center;
  margin-bottom: 15px;
}
.chat-tabs button {
  background: #0055aa;
  color: white;
  border: none;
  padding: 10px 18px;
  margin: 0 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}
.chat-tabs button:hover,
.chat-tabs button:focus {
  background: #003f7f;
}
.chat-tabs button:focus {
  outline: none;
}

/* Configuración usuario */
.user-config {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}
.user-config input[type="text"],
.user-config input[type="number"],
.user-config input[type="color"] {
  padding: 8px 10px;
  font-size: 1rem;
  border: 1px solid #bbb;
  border-radius: 4px;
  min-width: 100px;
}
.user-config input[type="number"] {
  width: 80px;
}
.user-config input[type="color"] {
  width: 48px;
  padding: 0;
  border: none;
  cursor: pointer;
}
.user-config label.profile-photo-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
  color: #0055aa;
}
.user-config input[type="file"] {
  cursor: pointer;
}

.avatar {
  width: 48px;       /* tamaño fijo ancho */
  height: 48px;      /* tamaño fijo alto */
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0055aa;
  vertical-align: middle;
}


/* Online count */
.online-count {
  text-align: center;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0055aa;
}

/* Chat header */
#chat-header {
  font-weight: 700;
  color: #003f7f;
  margin-bottom: 10px;
  text-align: center;
}








/* SECTOR DE VIDEOS */

.video-gallery-section {
  background: #fdfdfd;
  padding: 3rem 1rem;
}

/* Contenedor de galería en grilla con scroll interno */
.video-gallery-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas fijas en desktop */
  gap: 2rem;
  max-height: 1200px; /* Altura máxima visible */
  overflow-y: auto;
  padding-right: 1rem;
}

/* Tarjeta de cada video */
.video-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
}
.video-card:hover {
  transform: scale(1.03);
}

/* Contenedor interno para overlay */
.video-wrapper {
  position: relative;
  width: 100%;
}

/* Texto superpuesto sobre el video */
.video-caption {
  position: absolute;
  bottom: 0;
  background: rgba(128, 0, 128, 0.7); /* violeta semitransparente */
  color: #fff;
  width: 100%;
  text-align: center;
  padding: 0.6rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0 0 12px 12px;
}

/* Responsivo: 1 columna en móviles y scroll visible */
@media (max-width: 768px) {
  .video-gallery-container {
    grid-template-columns: 1fr;
    max-height: 400px;        /* Scroll interno solo en móviles */
    overflow-y: auto;
    padding-right: 0.5rem;
  }

  /* Scrollbar móvil personalizado */
  .video-gallery-container::-webkit-scrollbar {
    width: 6px;
  }
  .video-gallery-container::-webkit-scrollbar-thumb {
    background-color: rgba(128, 0, 128, 0.5);
    border-radius: 3px;
  }
}

/* Footer moderno y elegante */
.footer {
  background: linear-gradient(135deg, #000204, #042444a3);
  color: #e3eaf7;
  padding: 24px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 -6px 20px rgba(25, 118, 210, 0.6);
  margin-top: auto;
  user-select: none;
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.footer-copy {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  flex: 1 1 auto;
  min-width: 220px;
  text-shadow: 0 0 3px rgba(0,0,0,0.3);
}

.footer-copy strong {
  color: #ffcc00;
  font-weight: 700;
  text-shadow: 0 0 5px #ffcc00;
}

.footer-social {
  display: flex;
  gap: 24px;
  flex: 0 1 auto;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e3eaf7;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  box-shadow: 0 0 6px transparent;
  position: relative;
}

.social-link:hover,
.social-link:focus {
  color: #fff;
  box-shadow: 0 0 10px 2px rgba(255, 204, 0, 0.7);
  transform: scale(1.15);
  outline: none;
}

/* TikTok icon style */
.social-link.tiktok svg {
  fill: #69C9D0;
  transition: fill 0.3s ease;
}

.social-link.tiktok:hover svg {
  fill: #00f2ea;
  filter: drop-shadow(0 0 4px #00f2ea);
}

/* Instagram icon style */
.social-link.instagram svg {
  fill: #e4405f;
  transition: fill 0.3s ease;
}

.social-link.instagram:hover svg {
  fill: #ff5f7e;
  filter: drop-shadow(0 0 5px #ff5f7e);
}

/* Icon size */
.social-icon {
  width: 24px;
  height: 24px;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 480px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .footer-copy {
    min-width: unset;
  }
}

/* Botón flotante subir arriba */
.btn-flotante {
  position: fixed;
  bottom: 30px;
  right: 20px;
  background-color: #93c3d5;
  color: white;
  border: none;
  padding: 14px 16px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-flotante:hover {
  background-color: #67c3e1;
  transform: scale(1.1);
}

.btn-flotante i {
  pointer-events: none;
}
