/* ===== Estilo general oscuro ===== */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: #0f0f0f;
  color: #fff;
}

/* ===== Header refinado ===== */
header {
  background: #000;
  padding: 25px 40px; /* antes era 15px 30px */
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(255, 205, 87, 0.1);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-img {
  height: 60px; /* antes era 40px */
  max-width: 180px;
  object-fit: contain;
}

nav a {
  color: #fff;
  margin: 0 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05em;
  transition: color .3s;
}

nav a:hover {
  color: #ffcd57;
}

.section {
  padding: 80px 20px;
  text-align: center;
}

h2 {
  font-size: 2em;
  margin-bottom: 30px;
  color: #ffcd57;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card {
  background: #1c1c1c;
  padding: 30px;
  border-radius: 15px;
  width: 220px;
  border: none;
  font-size: 1em;
  color: #fff;
  cursor: pointer;
  transition: transform .3s, background .3s;
}

.card:hover {
  transform: translateY(-10px);
  background: #0078d7;
  color: #fff;
}

/* Layout base para que el footer se fije abajo */
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* El contenido principal ocupa todo el espacio disponible */
.section, .content {
  flex: 1;
}

/* Footer fijo al final */
footer {
  margin-top: auto;
  background-color: rgba(0,0,0,0.7); /* tu estilo actual */
  color: #fff;
  text-align: center;
  padding: 10px;
}

/* ===== Popup elegante ===== */
.popup-body {
  font-family: 'Inter', sans-serif;
  background: #0f0f0f;
  color: #fff;
  padding: 30px;
  text-align: center;
}

.popup-title {
  font-size: 1.8em;
  margin-bottom: 30px;
  color: #ffcd57;
}

.canales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 25px;
  justify-items: center;
  padding: 10px 0 30px;
}

.canal-burbuja {
  background: #1c1c1c;
  border-radius: 15px;
  padding: 15px;
  width: 120px;
  text-align: center;
  box-shadow: 0 0 10px rgba(255, 205, 87, 0.2);
  transition: transform 0.3s ease;
}

.canal-burbuja:hover {
  transform: scale(1.05);
  background: #222;
}

.logo-wrapper {
  background: #fff;
  border-radius: 50%;
  padding: 10px;
  margin-bottom: 10px;
  height: 60px;
  width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrapper img {
  max-height: 40px;
  max-width: 40px;
  object-fit: contain;
}

.canal-nombre {
  font-size: 0.9em;
  color: #ffcd57;
  font-weight: 600;
  word-break: break-word;
}

.close-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background: #ffcd57;
  color: #111;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background .3s;
}

.close-btn:hover {
  background: #fff;
}


/*Nuevo Index*/

.hero {
  background: url('banner.jpg') center/cover no-repeat;
  padding: 120px 20px;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
}

.subheadline {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.btn {
  background: #ffcd57;
  color: #111;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all .3s;
}

.btn:hover {
  background: #fff;
  color: #000;
}

.dark-section {
  background: #111;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.resaltado {
  color: #ffcd57;
}

.descripcion {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1em;
  line-height: 1.6em;
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 60px 20px;
  background: #0f0f0f;
  color: #fff;
}

.feature-box {
  background: #1c1c1c;
  padding: 30px;
  border-radius: 15px;
  width: 280px;
  box-shadow: 0 0 10px rgba(255, 205, 87, 0.2);
  text-align: center;
}

.feature-box h3 {
  color: #ffcd57;
  margin-bottom: 15px;
}

.contacto {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.contact-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.contact-btn {
  background: #ffcd57;
  color: #111;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background .3s;
}

.contact-btn:hover {
  background: #fff;
}

/* Video Background*/
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
}

.transparent-section {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}

/* Contenedor de info de película */
.info-container {
  max-width: 800px;
  margin: auto;
  padding: 20px;
  background-color: rgba(0,0,0,0.3); /* misma transparencia que otros */
  backdrop-filter: blur(2px);
  border-radius: 10px;
  color: #fff;
}

/* Imagenes */
.poster {
  float: left;
  margin-right: 20px;
}
.poster img {
  max-width: 200px;
  border-radius: 6px;
}
.backdrop {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 6px;
}


/* Search*/
.search-box-wrapper {
  position: absolute;
  top: 20px;
  right: 40px; /* antes era 20px */
  z-index: 100;
  text-align: left;
}
.search-box {
  width: 160px;
  height: 30px;
  padding: 6px 10px;
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: 1px solid rgba(255, 215, 0, 0.3);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.2);
  transition: box-shadow 0.3s ease;
}
.search-box::placeholder {
  color: #ccc;
}
.search-box:focus {
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Nuevos Styles para Chat*/
.chat-box {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: rgba(255,255,255,0.85);
  border-radius: 10px;
  height: 500px;
  overflow-y: auto;
}

.mensaje {
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  max-width: 70%;
  word-wrap: break-word;
}

.cliente {
  background: #f0f0f0;
  text-align: left;
  float: left;
  clear: both;
}

.asesor {
  background: #d1e7ff;
  text-align: right;
  float: right;
  clear: both;
}

.mensaje img,
.mensaje video,
.mensaje audio {
  max-width: 100%;
  cursor: pointer;
  border-radius: 6px;
}

.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.overlay-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.overlay-content img,
.overlay-content video,
.overlay-content audio {
  max-width: 100%;
  max-height: 100%;
}

.overlay .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

.input-area {
  max-width: 900px;
  margin: 20px auto;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.input-center {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.input-center textarea {
  flex: 1;
  resize: none;
  padding: 10px;
  border-radius: 6px;
  height: 50px;
}

.input-center .btn {
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.input-right {
  display: flex;
  gap: 8px;
}

.hidden-input {
  display: none;
}

.emoji-btn {
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.emoji-panel {
  position: absolute;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  max-height: 300px;
  overflow: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  display: none;
  z-index: 9998;
}

.emoji-panel .emoji-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  padding: 10px;
}

.emoji-item {
  font-size: 20px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  border-radius: 6px;
}

.emoji-item:hover {
  background: #f0f0f0;
}

.emoji-tabs {
  display: flex;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
}

.emoji-tab {
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.emoji-tab.active {
  background: #e7f1ff;
}

.status {
  max-width: 900px;
  margin: 0 auto;
  font-size: 12px;
  color: #333;
}

.fecha {
  font-size: 11px;
  color: #555;
}

.etiquetas-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px auto;
}
.etiqueta {
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.etiqueta:hover {
  background: #2196f3;
}
.etiqueta.active {
  background: #fdd835;
  color: #000;
}
