/* ==========================================================
   Icono de candado para contenedores de contenido suscriptores
   Archivo: css/icono-suscriptores-contenedor.css

   Uso en Spectra:
   Avanzado > Clase CSS adicional:
   mindalia-contenido-suscriptores
   ========================================================== */


/* Contenedor marcado como contenido para suscriptores */
.mindalia-contenido-suscriptores {
    position: relative !important;
    isolation: isolate;
}


/* Icono flotante de candado */
.mindalia-contenido-suscriptores::after {
    content: "";
    position: absolute !important;
    top: 14px;
    right: 14px;
    z-index: 999999 !important;

    width: 42px;
    height: 42px;

    display: block;

    border-radius: 50%;

    /* Estado no logueado: contenido bloqueado */
    background-color: rgba(0, 0, 0, 0.56);
    border: 1.5px solid rgba(242, 109, 0, 0.95);

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' ry='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 23px 23px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);

    pointer-events: none;
}


/* Icono de candado abierto para usuarios logueados */
body.logged-in .mindalia-contenido-suscriptores::after {
    /* Estado logueado: contenido desbloqueado, más sutil */
    background-color: rgba(0, 0, 0, 0.16);
    border: 1.5px solid rgba(255, 255, 255, 0.42);

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='0.56' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' ry='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 7.3-2'/%3E%3C/svg%3E");

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}


/* Ajuste responsive */
@media (max-width: 767px) {
    .mindalia-contenido-suscriptores::after {
        top: 10px;
        right: 10px;

        width: 36px;
        height: 36px;

        background-size: 20px 20px;
    }
}

/* ==========================================================
   Icono de candado para todas las miniaturas de un carrusel
   Uso en Spectra:
   Aplicar al contenedor padre del carrusel:
   mindalia-carrusel-suscriptores
   ========================================================== */


/* Elementos habituales de carrusel / tarjetas internas */
.mindalia-carrusel-suscriptores .swiper-slide,
.mindalia-carrusel-suscriptores .slick-slide,
.mindalia-carrusel-suscriptores .splide__slide,
.mindalia-carrusel-suscriptores .carousel-item,
.mindalia-carrusel-suscriptores article,
.mindalia-carrusel-suscriptores .wp-block-post,
.mindalia-carrusel-suscriptores .uagb-post__inner-wrap {
    position: relative !important;
    isolation: isolate;
}


/* Candado en cada miniatura */
.mindalia-carrusel-suscriptores .swiper-slide::after,
.mindalia-carrusel-suscriptores .slick-slide::after,
.mindalia-carrusel-suscriptores .splide__slide::after,
.mindalia-carrusel-suscriptores .carousel-item::after,
.mindalia-carrusel-suscriptores article::after,
.mindalia-carrusel-suscriptores .wp-block-post::after,
.mindalia-carrusel-suscriptores .uagb-post__inner-wrap::after {
    content: "";
    position: absolute !important;
    top: 14px;
    right: 14px;
    z-index: 999999 !important;

    width: 42px;
    height: 42px;

    display: block;

    border-radius: 50%;

    /* Estado no logueado: contenido bloqueado */
    background-color: rgba(0, 0, 0, 0.56);
    border: 1.5px solid rgba(242, 109, 0, 0.95);

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' ry='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 23px 23px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);

    pointer-events: none;
}


/* Candado abierto en cada miniatura para usuarios logueados */
body.logged-in .mindalia-carrusel-suscriptores .swiper-slide::after,
body.logged-in .mindalia-carrusel-suscriptores .slick-slide::after,
body.logged-in .mindalia-carrusel-suscriptores .splide__slide::after,
body.logged-in .mindalia-carrusel-suscriptores .carousel-item::after,
body.logged-in .mindalia-carrusel-suscriptores article::after,
body.logged-in .mindalia-carrusel-suscriptores .wp-block-post::after,
body.logged-in .mindalia-carrusel-suscriptores .uagb-post__inner-wrap::after {
    /* Estado logueado: contenido desbloqueado, más sutil */
    background-color: rgba(0, 0, 0, 0.16);
    border: 1.5px solid rgba(255, 255, 255, 0.42);

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='0.56' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' ry='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 7.3-2'/%3E%3C/svg%3E");

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}


/* Ajuste responsive */
@media (max-width: 767px) {
    .mindalia-carrusel-suscriptores .swiper-slide::after,
    .mindalia-carrusel-suscriptores .slick-slide::after,
    .mindalia-carrusel-suscriptores .splide__slide::after,
    .mindalia-carrusel-suscriptores .carousel-item::after,
    .mindalia-carrusel-suscriptores article::after,
    .mindalia-carrusel-suscriptores .wp-block-post::after,
    .mindalia-carrusel-suscriptores .uagb-post__inner-wrap::after {
        top: 10px;
        right: 10px;

        width: 36px;
        height: 36px;

        background-size: 20px 20px;
    }
}