/* ================================================== */
/* BARRA LATERAL NIARUX - CSS COMPLETO Y ORGANIZADO */
/* ================================================== */
/* ===== SOLUCIÓN NUCLEAR PARA TAWK.TO ===== */
iframe, 
iframe[src*="tawk.to"],
iframe[src*="tawk"],
div[id*="tawk"],
[class*="tawk"],
#tawkchat-container,
#tawkchat-minified,
.tawk_iframe,
.tawk-button,
.tawk-min-container {
  z-index: 2147483647 !important;
  position: fixed !important;
}

/* Forzar que esté visible */
.tawk-min-container {
  bottom: 20px !important;
  right: 20px !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* ===== ESTRUCTURA PRINCIPAL DE LA BARRA ===== */
.bv-barra {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  background: linear-gradient(180deg, #0b1220, #0f2027);
  color: #e6faff;
  box-shadow: inset 0 0 12px rgba(0,200,248,0.2), 0 0 20px rgba(0,200,248,0.1);
  font-family: "Poppins", sans-serif;
  box-shadow: 4px 0 12px rgba(0,0,0,0.3);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s ease;
 z-index: 1000; /* ⬅️ REDUCIDO de 9999 a 1000 */

}

/* Estado oculto de la barra */
.bv-barra.oculta {
  transform: translateX(-280px);
}

/* ===== CABECERA Y LOGO ===== */
.bv-header {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo principal */
.bv-logo {
  width: 200px;
  height: auto;
  margin-bottom: 30px;
  filter: drop-shadow(0 0 6px rgba(0,200,248,0.5));
}

/* Textos de cabecera (por si los necesitas después) */
.bv-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #fff;
  text-shadow: 0 0 4px rgba(0,200,248,0.4);
}

.bv-header p {
  margin: 6px 0 18px;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
}

/* ===== SISTEMA ROTATIVO - VERSIÓN LIMPIA (ACTUAL) ===== */
.bv-rotativo-principal {
  /* VERSIÓN LIMPIA - Sin fondo dorado */
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0 0 25px 0;
  text-align: center;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Prefijo del rotativo (¿Sabías que?, Tip, etc) */
.bv-prefijo {
  font-weight: 700;
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 8px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  transition: opacity 0.3s ease;
}

/* Contenido del rotativo */
.bv-contenido-rotativo {
  color: #e6faff;
  font-size: 1rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  text-align: center;
  transition: opacity 0.3s ease;
  min-height: auto;
}

/* ===== SISTEMA ROTATIVO - VERSIÓN CON FONDO DORADO (PARA USAR LUEGO) ===== */
/*
.bv-rotativo-principal.con-fondo {
  background: rgba(255, 215, 0, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 25px 0;
  border: 1px solid rgba(255, 215, 0, 0.3);
  text-align: center;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.bv-rotativo-principal.con-fondo:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}
*/

/* Efectos de transición para textos rotativos */
.bv-prefijo, .bv-contenido-rotativo {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ===== BOTÓN PRINCIPAL - VERSIÓN AZUL PREMIUM ===== */
#bv-boton {
  display: inline-block;
  background: linear-gradient(135deg, #ffd700, #ffed4e, #daa520);
  color: #0b1220; /* ⬅️ AZUL OSCURO DE TU FONDO - contrasta perfecto */
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.5);
  /* text-shadow: 0 1px 2px rgba(255,255,255,0.3); */ /* Opcional si necesitas más contraste */
}

#bv-boton:hover {
  background: linear-gradient(135deg, #daa520, #ffd700, #ffed4e);
  color: #1e3a5c; /* ⬅️ AZUL MÁS CLARO AL HOVER - efecto sutil */
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.6);
  transform: translateY(-2px);
}
/* ===== BOTÓN TOGGLE/FLEXA ===== */
.bv-toggle {
  position: absolute;
  top: 50%;
  right: -20px;
  transform: translateY(-50%);
  background: #022d38;
  border-radius: 0 6px 6px 0;
  padding: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bv-toggle:hover {
  background: #009dc1;
}

.bv-flecha {
  font-size: 1.1rem;
  color: white;
  user-select: none;
}

/* ===== REDES SOCIALES ===== */
.niarux-socials-12412 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.niarux-icon-12412 {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.25);
}

.niarux-icon-12412 svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  transition: all 0.3s ease;
}

/* Colores específicos de cada red social */
.niarux-icon-12412.fb { background: #1877f2; }
.niarux-icon-12412.ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.niarux-icon-12412.yt { background: #ff0000; }
.niarux-icon-12412.tk { background: linear-gradient(135deg, #25F4EE 0%, #000000 50%, #FE2C55 100%); }

.niarux-icon-12412:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
}

/* ===== DISEÑO RESPONSIVE ===== */

/* Tablets y pantallas medianas */
@media (max-width: 768px) {
  .bv-barra {
    width: 230px;
    transform: translateX(0);
  }
  .bv-barra.oculta {
    transform: translateX(-230px);
  }
  .bv-toggle {
    right: -18px;
    padding: 8px;
  }
  .bv-logo {
    width: 150px;
  }
}

/* Teléfonos móviles */
@media (max-width: 480px) {
  .bv-barra {
    width: 200px;
    padding: 15px 10px;
  }
  .bv-barra.oculta {
    transform: translateX(-190px);
  }
  .bv-logo {
    width: 100px;
  }
}

/* Redes sociales en móviles */
@media (max-width: 600px) {
  .niarux-icon-12412 {
    width: 36px;
    height: 36px;
  }
  .niarux-icon-12412 svg {
    width: 18px;
    height: 18px;
  }
}