/* Animación */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

:root{
  --brand-pink: #e769ae;
  --brand-yellow: #ffca09;
  --brand-black: #121212;
}

/* Fondo y generales */
body {
  background-color: var(--brand-black);
  font-family: 'Segoe UI, Tahoma, Geneva, Verdana, sans-serif';
  color: #e0e0e0;
  margin: 0;
  background-image: url('../img/Captura de pantalla 2025-10-10 142404.png');
  background-size: cover;
  background-position: center;
}

/* MENU MÓVIL */
#mobileMenu {
  position: fixed;
  top: 0;
  left: -100%;
  height: 100vh;
  width: 75%;
  background-color: rgba(18,18,18,0.95);
  border-right: 2px solid rgba(231,105,174,0.5);
  border-radius: 0 1rem 1rem 0;
  padding: 1rem;
  transition: left 0.3s ease-in-out;
  z-index: 40;
}
#mobileMenu.active { left: 0; }

#closeMenu {
  align-self: flex-end;
  color: #facc15;
  font-size: 1.8rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

/* Boton chat*/
#chatToggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
}

/* Send button */
.send-button { z-index: 10; }

/* HEADER (principal) */

#mainHeader {
  background-image: url('../img/Captura de pantalla 2025-10-13 103246.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 70vw; 
  max-height: 750px;
  position: relative;
}

/*switch header background header escritorio*/
@media (min-width: 1024px) {
  #mainHeader {
    background-image: url('../img/BarrilerasWeb3.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    height: 28vh !important;     
    max-height: 420px !important; 
  }
}

/* Teletica.com */

.logo-teletica {
  position: absolute;
  top: 1rem;
  left: 1rem;
  height: auto;
  z-index: 60;
  cursor: pointer;
  transition: transform 0.18s ease;
  display: block;
}

/* tamaño móvil */
@media (max-width: 639px) {
  .logo-teletica { width: 6rem; } /* w-24 ≈ 6rem */
}

/* tablet */
@media (min-width: 640px) and (max-width: 1023px) {
  .logo-teletica { width: 8rem; } /* sm:w-32 */
}

/* escritorio */
@media (min-width: 1024px) {
  .logo-teletica { width: 9rem; } /* md:w-36-ish */
}

/* Fondo mensaje */
.chat-message-bubble {
  background-color: rgba(224, 44, 143, 0.08);
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  word-break: break-word;
}

.input-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.input-icon:hover { background-color: rgba(231,105,174,0.2); transform: scale(1.2); }

/*Ocultos*/
.hidden { display: none !important; }

/* Scroll visible para el contenedor del chat */
#chat-messages {
  max-height: 60vh;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* Estilo opcional para la barra de scroll */
#chat-messages::-webkit-scrollbar {
  width: 8px;
}
#chat-messages::-webkit-scrollbar-thumb {
  background-color: rgba(231, 105, 174, 0.5);
  border-radius: 4px;
}
#chat-messages::-webkit-scrollbar-thumb:hover {
  background-color: rgba(231, 105, 174, 0.8);
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.message .avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
}

.message-content {
  background-color: #2a1a25; /* burbuja oscura */
  padding: 10px 14px;
  border-radius: 12px;
  color: #fff;
  font-size: 15.5px;
  max-width: 100%;
  position: relative;
}

.message-header {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.message-user {
  font-weight: 700;
  font-size: 15px;
  margin-right: 6px;
}

.message-time {
  font-size: 12px;
  color: #aaa;
}

.message .delete-btn {
  margin-left: 30px;
  color: #ff4c4c;
  cursor: pointer;
  font-size: 19px;
  transition: color 0.2s;
}

.message .delete-btn:hover {
  color: #ff7070;
}

/* Colores personalizados por usuario */
.message.user .avatar {
  border-color: #ffcc00; /* Jurgen */
}

.message.user .message-user {
  color: #ffcc00;
}

.message.admin .avatar {
  border-color: #ff66cc; /* Ana */
}

.message.admin .message-user {
  color: #ff66cc;
}
