/* styles.principalnew.css */

/* Fuente principal */
body {
  font-family: "Marko One", sans-serif;
  background-color: #050404;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 10; /* Para estar arriba del video */
}

/* Barra superior fija */
.barra-nombre {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
  backdrop-filter: blur(5px);
  box-sizing: border-box;
  justify-content: space-between;
}

.texto-nombre {
  font-family: "Marko One", serif;
  font-size: 30px;
  color: #ffffff;
  user-select: none;
}

.iconos-derecha {
  display: flex;
  align-items: center;
  gap: 15px; /* separación entre íconos */
  margin-left: auto;
  padding-right: 220px; /* espacio para el futuro botón accesibilidad */
}

.notificacion-bell {
  position: relative;
  font-size: 30px;
  color: #ffffff;
  cursor: pointer;
}

.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #a5ff7b;
  color: #050404;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  display: none;
}
#panel-notificaciones {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  padding: 20px;
  z-index: 9999;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #222;
  transition: opacity 0.3s ease;
}

#panel-notificaciones h4 {
  margin-top: 0;
  font-weight: 700;
  font-size: 1.3rem;
  border-bottom: 2px solid #298f6d;
  padding-bottom: 8px;
  color: #298f6d;
}

#panel-notificaciones ul {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

#panel-notificaciones ul li {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #333;
}

#panel-notificaciones ul li:last-child {
  border-bottom: none;
}

/* Estilo para el badge (contador) */
.badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #a5ff7b;
  color: #050404;
  border-radius: 50%;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: bold;
  display: none;
  user-select: none;
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

.icono-login {
  color: #ffffff;
  font-size: 30px;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.icono-login:hover,
.notificacion-bell:hover {
  transform: scale(1.2);
  text-shadow: 0 0 8px #2e6904;
}

/* Sección inicio centrada fija */
.inicio {
  position: fixed;
  top: 55%; /* Estaba en 50%, lo bajamos un poco más */
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 20;
  width: 100%;
  max-width: 800px; /* Más espacio para evitar saltos */
  padding: 0 20px;
  box-sizing: border-box;
  color: #fff;
}

.inicio img.logo.glow-verde {
  filter: drop-shadow(0 0 8px #2e6904) brightness(1.2);
  animation: brillo-verde 1.5s infinite alternate;
  margin: 0 auto 20px auto;
  display: block;
  width: 200px; /* Cambia este valor para agrandar o achicar */
  max-width: 100%; /* Para que no se salga del contenedor */
  height: auto; /* Mantiene la proporción */
}


.inicio h1 {
  font-size: 3.2em; /* Ajustable según pantalla */
  color: #ffffff;
  font-family: "Marko One", sans-serif;
  margin-bottom: 30px;
  animation: brillo-verde 1.5s infinite alternate;
  line-height: 1.2;
  text-align: center;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  white-space: normal;
  word-break: keep-all;
}

.boton-entrar {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  padding: 0.8rem 2rem;
  border-radius: 25px;
  background-color: #8d9e74;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 2px 0 1px rgba(65, 69, 7, 0.6), -2px 0 1px rgba(65, 69, 7, 0.6),
    0 2px 1px rgba(65, 69, 7, 0.6), 0 -2px 1px rgba(65, 69, 7, 0.6);
  transition: all 0.3s ease;
  display: inline-block;
  animation: brillo-verde 1.5s infinite alternate, expandir-retraer 2.5s infinite ease-in-out;
  margin-bottom: 50px;
}

@keyframes expandir-retraer {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}


.boton-entrar:hover {
  background-color: #111212;
  color: #a5ff7b;
  box-shadow: 2px 0 2px rgba(65, 69, 7, 0.9), -2px 0 2px rgba(65, 69, 7, 0.9),
    0 2px 2px rgba(65, 69, 7, 0.9), 0 -2px 2px rgba(65, 69, 7, 0.9);
  transform: scale(1.05);
  text-shadow: 0 0 6px #254d03, 0 0 12px #2e6904;
}

/* Animación brillo verde */
@keyframes brillo-verde {
  0%,
  100% {
    text-shadow: 0 0 4px #254d03, 0 0 8px #2e6904;
    filter: drop-shadow(0 0 6px #2e6904);
  }
  50% {
    text-shadow: 0 0 8px #2e6904, 0 0 16px #2e6904;
    filter: drop-shadow(0 0 12px #2e6904);
  }
}

/* Fondo de video */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

#bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
/* Estilos base del chatbot----------------------------------------------------------------------------------------------- */

/* Botón flotante para abrir el chat */
#chat-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #c1c1c1;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1100; /* Para estar sobre otros elementos */
}
/* Imagen dentro del botón flotante */
#chat-toggle img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

/* Contenedor del chatbot */
#chat-container {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 360px;
  height: 480px;
  background: white;
  border-radius: 20px;
  border: 2px solid #10b981;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 1000; /* Para que el contenedor quede debajo del botón */
}

/* Cabecera del chat */
#chat-header {
  background-color: #10b981;
  color: white;
  padding: 10px;
  font-weight: bold;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* Área de mensajes */
#chat-messages {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 10px;
  background-color: #f0fdf4;
}


/* Entrada de texto */
#chat-input {
  display: flex;
  border-top: 1px solid #ccc;
  font-family: 'Poppins', sans-serif;
}

#chat-input input {
  flex: 1;
  border: none;
  padding: 10px;
  outline: none;
  font-family: 'Poppins', sans-serif;
}

#chat-input button {
  background-color: #10b981;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

/* Estilo de burbujas de mensaje */
.message {
  position: relative;
  padding-left: 50px;
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 15px;
  max-width: 70%;
  word-wrap: break-word;
  /* Para que el texto quede bien alineado dentro de la burbuja */
  white-space: pre-wrap;
  font-family: 'Poppins', sans-serif;
}

.bot {
  background-color: #bbf7d0;
  align-self: flex-start;
  text-align: left;
}

.user {
  background-color: #86efac;
  align-self: flex-end;
  text-align: right;
}

/* Que las imágenes dentro de los mensajes no sean gigantes */
.message img {
  position: absolute; /* La “saca” del flujo normal */
  top: -10px; /* Ajusta para que quede encima */
  left: -40px; /* O right, según dónde quieras que esté */
  width: 40px; /* Tamaño de la imagen */
  height: 40px;
  border-radius: 50%; /* Para que sea redonda */
  border: 2px solid white; /* Borde para destacar */
  background-color: white; /* Fondo para que se vea bien */
  z-index: 1100; /* Que esté arriba */
}

/* Contenedor de preguntas sugeridas */
#suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 10px;
  background-color: #f0fdf4;
  border-top: 1px solid #ccc;
}

/* Botones de preguntas sugeridas */
#suggestions button {
  background-color: #d1fae5;
  border: none;
  padding: 5px 10px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
  font-family: 'Poppins', sans-serif;
}

#suggestions button:hover {
  background-color: #bbf7d0;
}
/* Diseño del cambio de idioma */
.language-icon i {
  margin-right: 0.4rem; /* o 8px si prefieres */
}

.language-selector {
  display: flex;
  flex-direction: row; /* Cambiar a fila horizontal */
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  overflow: hidden;

  position: fixed;
  top: 15px;
  right: 80px;
  z-index: 2000;
}

.language-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  transition: background-color 0.3s ease;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo más oscuro para mejor visibilidad */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Poppins', sans-serif;
}

.language-icon:last-child {
  border-bottom: none; /* Evitar borde extra en el último */
}

.language-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.language-icon.active {
  background-color: rgba(255, 255, 255, 0.3);
  font-weight: bold;
  color: #fff; /* Aseguramos que el texto se mantenga blanco */
}

.language-icon span {
  font-size: 0.9rem;
}
