/* ESTILOS DEL POPUP */
.rkit-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.rkit-popup-overlay.active {
    display: flex;
}

.rkit-popup-content {
    background: #fff;
    border-radius: 12px;
    max-width: 350px;
    max-height: 100%;
    width: 600px;
    padding: 0; /* Quitamos padding del contenedor principal */
    position: relative;
    overflow: hidden; /* Importante: hidden para que respete border-radius */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.3s ease-out;
}

/* Contenedor interno con scroll personalizado */
.rkit-popup-info {
    padding: 50px 30px 30px 30px; /* Movemos el padding aquí */
    max-height: 350px; /* Altura máxima */ 
    overflow-y: auto; /* Scroll en el contenido interno */
    
    /* SCROLLBAR PERSONALIZADO */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #ccc transparent; /* Firefox */
}

/* Webkit scrollbar (Chrome, Safari, Edge) */
.rkit-popup-info::-webkit-scrollbar {
    width: 6px; /* Más delgado */
}

.rkit-popup-info::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
    margin: 10px 0; /* Margen arriba y abajo para que no toque los bordes */
}

.rkit-popup-info::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
    border: 2px solid transparent; /* Espacio interno */
    background-clip: content-box; /* Para que el border funcione */
}

.rkit-popup-info::-webkit-scrollbar-thumb:hover {
    background: #999;
    background-clip: content-box;
}

@keyframes popupSlideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

button.rkit-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 10; /* Para que esté por encima del contenido */
}

button.rkit-popup-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.rkit-popup-info h3 {
    font-size: 1.2em;
    color: #000;
    margin-top: 0; /* Para que no haya espacio extra arriba */
}

/* Responsive */
@media (max-width: 768px) {
    .rkit-popup-content {
        width: 95%;
        margin: 20px;
    }
    
    .rkit-popup-info {
        padding: 40px 20px 20px 20px;
    }
}




/* cards */

.rkit-image_box {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.rkit-image_box-card {
  position: relative;
}
.rkit-image_box__img img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 12px;
}

/* Overlay al hacer hover */
.rkit-image_box-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, var(--e-global-color-secondary) 0%, var(--e-global-color-a88f8f1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
/* Mostrar overlay al hacer hover */
.rkit-image_box:hover .rkit-image_box-card::after {
  opacity: 0.8;
}
/* Contenido oculto por defecto */
.rkit-image_box_det {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.4s ease;
  text-align: center;
  padding: 20px;
}
.rkit-image_box:hover .rkit-image_box_det {
  opacity: 1;
}
/* Elementos internos */
.rkit-icon-top {
  font-size: 32px;
  color: 
#00e6c2;
  margin-bottom: 15px;
}
.rkit-image_boxtitle {
  font-size: 22px;
  color: #fff;
  margin-bottom: 10px;
  font-weight: bold;
}
.rkit-image_box__description {
  color: 
#eaeaea;
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.4;
  max-width: 80%;
}
.rkit-readmore-imagebox-btn {
  background-color: 
#00e6c2;
  color: #111 !important;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.rkit-readmore-imagebox-btn:hover {
  background-color: 
#00c6a8;
  color: #fff;
}