.fondocampana {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.campana {
  top: 24px;
  right: 49px;
  background-color: red;
  color: white;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  text-align: center;
  line-height: 23px;
  font-weight: bold;
  font-size: 14px;
}

.campanasvg {
  background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27currentColor%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20stroke%3D%27none%27%20d%3D%27M0%200h24v24H0z%27%20fill%3D%27none%27/%3E%3Cpath%20d%3D%27M10%205a2%202%200%201%201%204%200a7%207%200%200%201%204%206v3a4%204%200%200%200%202%203h-16a4%204%200%200%200%202%20-3v-3a7%207%200%200%201%204%20-6%27/%3E%3Cpath%20d%3D%27M9%2017v1a3%203%200%200%200%206%200v-1%27/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  width: 24px;
  height: 24px;
  top: -15px;
  right: 20px;
  cursor: pointer;
  background-color: white;
  border-radius: 50px;
  position: relative;
}

.campana.oculto {
  display: none;
}

/*fase 2*/
.videos-panel {
  top: 74px;
  right: 16px;
  width: 300px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  z-index: 9999;
}

.videos-panel.open {
  max-height: 90vh;
}


.videos {
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.03) rgba(0,0,0,0);
  
  /* 🌙 MÁSCARA DE DESVANECIDO INFERIOR */
  -webkit-mask-image: linear-gradient(to bottom, 
    rgba(0,0,0,1) 90%, 
    rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(to bottom, 
    rgba(0,0,0,1) 90%, 
    rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

/* 
.videos {
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.03) rgba(0,0,0,0);
} */

/* Webkit: barra muy fina y track transparente */
.videos::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.videos::-webkit-scrollbar-track {
  background: transparent;
}
.videos::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.02);  /* casi invisible, pero interactivo */
  border-radius: 6px;
}
/* Al hover la hacemos visible (opcional) */
.videos:hover::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.25);
}




.video-item {
  display: flex;
  align-items: center;
  padding: 3px 3px;
  border-radius: 50px;
  cursor: pointer;
  width: fit-content;
  min-width: 287px;
  background: #eee;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  font-weight: bold;
  position: relative;
}

.video-item.visto {
  background: #d3ffd3;
  color: #555;
}

.video-item em {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-right: 6px;
  font-style: normal;
  font-size: 30px;
  color: #fff;
  line-height: 1;
  text-align: center;
  overflow: visible;
}

.video-item em.ni {
  width: auto;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.video-item em.ni::before {
  display: block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
}

/* Colores por icono */
.video-item[data-category="html5"] em.ni-html5 {
  background-color: #e34f26;
}

.video-item[data-category="css3"] em.ni-css3 {
  background-color: #2965f1;
}

.video-item[data-category="php"] em.ni-php {
  background-color: #0074b9;
}

.video-item[data-category="js"] em.ni-js {
  background-color: #f7df1e;
  color: #000;
}

.video-item[data-category="react"] em.ni-react {
  background-color: #61dafb;
  color: #000;
}

.video-item[data-category="laravel"] em.ni-laravel {
  background-color: #f05340;
}

.video-item[data-category="bootstrap"] em.ni-bootstrap {
  background-color: #563d7c;
}

.video-item[data-category="mailchimp"] em.ni-mailchimp {
  background-color: #ff9900;
}

.video-item[data-category="wordpress"] em.ni-wordpress {
  background-color: #21759b;
}

.video-item[data-category="elementor"] em.ni-elementor {
  background-color: #7450f2;
}

.video-item[data-category="github"] em.ni-github {
  background-color: #333;
}

.video-item[data-category="meter"] em.ni-meter {
  background-color: #4caf50;
}

.video-item[data-category="alert"] em.ni-alert {
  background-color: #ff3d00;
}

/* Express */
.video-item[data-category="express"] em.ni-express {
  background-color: #fff;
  background-image: url("/wp-content/uploads/2025/10/express.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  width: 48px;
  height: 48px;
}

/* NodeJS */
.video-item[data-category="nodejs"] em.ni-nodejs {
  background-color: #fff;
  background-image: url("/wp-content/uploads/2025/10/nodejs.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
  width: 48px;
  height: 48px;
}

/* MySQL */
.video-item[data-category="mysql"] em.ni-mysql {
  background-color: #fff;
  background-image: url("/wp-content/uploads/2025/10/mysql.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 90%;
  width: 48px;
  height: 48px;
}

/* acf */
.video-item[data-category="acf"] em.ni-acf {
  background-color: #ffeb3b;
  background-image: url("/wp-content/uploads/2025/10/logo_acf.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 90%;
  width: 48px;
  height: 48px;
}

/* acf */
.video-item[data-category="dom"] em.ni-dom {
  background-color: #ffeb3b;
  background-image: url("/wp-content/uploads/2025/10/chrome-logo-m100.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 90%;
  width: 48px;
  height: 48px;
}

.video-item[data-category="prestashop"] em.ni-prestashop {
  background-color: #75b3e3;
  background-image: url("/wp-content/uploads/2025/12/prestashop.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 90%;
  width: 48px;
  height: 48px;
}

.video-item[data-category="prestashop"] {
  background-color: #75b3e3;
  color: #000;
}

.video-item[data-category="dom"] {
  background-color: #fbeee6;
  color: #000;
}

.video-item[data-category="html5"] {
  background-color: #ffb689;
  color: #000;
}

.video-item[data-category="express"] {
  background-color: #161616;
  color: #fff;
}

.video-item[data-category="nodejs"] {
  background-color: #7ef773;
  color: #000;
}

.video-item[data-category="mysql"] {
  background-color: #f3d6b0;
  color: #c06666;
}

.video-item[data-category="acf"] {
  background-color: #b7f33a;
  color: #355142;
}
.video-item[data-category="css3"] {
  background-color: #e6f0fb;
  color: #000;
}

.video-item[data-category="php"] {
  background-color: #d0e4f7;
  color: #000;
}

.video-item[data-category="js"] {
  background-color: #fff9c4;
  color: #000;
}

.video-item[data-category="react"] {
  background-color: #d0f2f9;
  color: #000;
}

.video-item[data-category="laravel"] {
  background-color: #fde2de;
  color: #000;
}

.video-item[data-category="bootstrap"] {
  background-color: #e6e0f0;
  color: #000;
}

.video-item[data-category="mailchimp"] {
  background-color: #fff3e0;
  color: #000;
}

.video-item[data-category="wordpress"] {
  background-color: #d1eaf7;
  color: #000;
}

.video-item[data-category="elementor"] {
  background-color: #ede0fb;
  color: #000;
}

.video-item[data-category="github"] {
  background-color: #dcdcdc;
  color: #000;
}

.video-item[data-category="meter"] {
  background-color: #e8f5e9;
  color: #000;
}

.video-item[data-category="alert"] {
  background-color: #ffe6e0;
  color: #000;
}

.video-item.php em {
  background: #0074b9;
}

.video-item.js em {
  background: #f7df1e;
  color: #000;
}

.video-item.laravel em {
  background: #f05340;
  color: #fff;
}

@media (max-width: 768px) {
  .campanasvg {
    display: none;
  }
}
