.background_tarot{
    width:1050px;
    height:auto;
    position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  z-index: 2;
  pointer-events: none;
}


/* Nuevo contenedor para Hermeto y el resplandor */
.hermeto-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 4;
    width: 1100px; /* Tamaño del contenedor, igual que la imagen de Hermeto */
    height: auto;
}

/* Imagen de Hermeto (ahora se posiciona dentro del contenedor) */
.hermeto_tarot {
    position: relative; /* Clave: se posiciona en relación a su padre */
    width: 100%; /* Ocupa el 100% del contenedor */
    height: auto;
    display: block;
}

.arrows{
    width:100px;
    height:auto;
    transition: filter 0.3s ease-in-out;
}

.arrows:hover{
    /* Resplandor (glow) al pasar el mouse */
    filter: drop-shadow(0 0 10px #ffefcd) drop-shadow(0 0 20px #ffe1a8);
}

/* El resplandor (ahora posicionado sobre el ojo del sombrero) */
.circular_light_tarot {
    position: absolute;
    top: 31%; /* Ajusta el porcentaje para colocarlo verticalmente */
    left: 51%; /* Ajusta el porcentaje para colocarlo horizontalmente */
    width: 50%; /* Ajusta el tamaño del resplandor en relación con Hermeto */
    height: auto;
    transform: translate(-50%, -50%); /* Centra el resplandor con precisión */
    z-index: 6;
    mix-blend-mode: screen;
    pointer-events: none;
}


#crystal-ball-particles {
    position: absolute;
    top: 70%;  /* Ajusta este valor si es necesario */
    left: 50%; /* Ajusta este valor si es necesario */
    transform: translate(-50%, -50%);
 width: 650px;
    height: 650px; 
    z-index: 5;
     mix-blend-mode: lighten;
    /* Propiedades de la máscara CSS para el efecto de desvanecimiento */
    mask-image: radial-gradient(circle at center, white 50%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, white 50%, transparent 80%);
    mask-mode: alpha;
    -webkit-mask-mode: alpha;
    border-radius: 50%; /* Hace que el contenedor sea redondo */
    filter: drop-shadow(0 0 10px #c562ff) drop-shadow(0 0 20px #ae5cf1); 
}

.tarot-swirl{
    top:48%;
    width:500px;
    z-index: 6;
    height:auto;
    position: absolute;
    transform: translate(-50%, -0%);
    z-index: 5;
    pointer-events: none;
    mix-blend-mode:screen;
}


/* Estilos para el Slider */
#tarot-card-slider {
    position: absolute;
    top: 61%;
    left: 50%;
    transform: translate(-48.5%, -50%);
    width: 50%; /* Ajusta el ancho para el contenedor del slider */
    z-index: 10; /* Asegura que esté frente a la bola de cristal */
}

/* Contenedor del Carrusel (donde se ocultan las imágenes) */
.tarot-slider {
    overflow: hidden;
    position: relative;
    min-width: 350px;
    border-radius: 10px;
}

/* El contenedor interno que se desliza */
.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1); /* Animación suave */
}

/* Estilos para las imágenes de las cartas */
.slider-wrapper img {
    width: 100%;
    height: auto;
    padding-left:15px;
    padding-right:15px;
    flex-shrink: 0; /* Evita que las imágenes se encojan */
    object-fit: contain;
    filter: contrast(110%) saturate(115%) brightness(98%);
}

/* Estilos de las flechas de navegación */
.slider-nav {
    border: none;
    background: rgba(0, 0, 0, 0);
    color: white;

    transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-nav:hover {
    background: rgba(0, 0, 0, 0);
    transform: scale(1.4);
    
}


/* TAROT CARD DESCRIPTION POPUP */

@media (hover: hover) and (pointer: fine) {
    .tarot-card-img {
        transition: filter 0.3s ease-in-out, transform 0.2s ease-in-out;
    }

    .tarot-card-img:hover {
        mix-blend-mode:multiply;
        filter: drop-shadow(0 0 10px #ffefcd) drop-shadow(0 0 20px #ffe1a8); 
        cursor: pointer;
        
        transform: scale(0.9);
    }

    .tarot-card-img:active {
        transform: scale(0.9); 
    }

    /* Efecto al pasar el mouse por el botón de cerrar */
.tarot-close-x:hover {
    transform: scale(1.1);
}

}

/* Estilos del Pop-up de Información del Tarot */
#tarot-info-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 5, 27, 0.50); /* Oscurece el fondo */
    backdrop-filter: blur(8px); /* Blur sutil */
    -webkit-backdrop-filter: blur(8px);
    z-index: 999; /* Asegura que esté por encima de todo */
    display: none; /* 🔑 Inicialmente oculto */
    justify-content: center;
    align-items: center;
}

.tarot-popup-content {
    position: relative;
    width: 900px; /* Tamaño del gráfico tarot_card_background */
    max-width: 90vw;
    height: 600px;
    max-height: 90vh;
}

.tarot-popup-content img.background-img {
    width: 90%;    
    height: 100%;
    overflow: visible;
    object-fit: cover;
}

/* Estructura Interna del Contenido (dentro del gráfico) */
.tarot-info-grid {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* 1 columna para la imagen, 1.5 para el texto */
    gap: 20px;
    padding: 20px;
}

/* Columna de la Carta */
.tarot-info-card-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tarot-info-card-col img {
    max-width: 130%;
    max-height: 130%;
    margin-right:70px;
    object-fit: contain;


}

/* Columna de la Descripción */
.tarot-info-text-col {
    text-align: left;
    overflow-y: auto; /* Permite scroll solo en la descripción si es muy larga */
    padding-right: 15px;
    color: #6d6258;
}

.tarot-info-text-col h2 {
    color: #252525;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tarot-info-text-col h3 {
    font-size: 1.2rem;
    color: #4b8f8f;
    margin-bottom: 1rem;
}



.tarot-close-x {
    position: absolute;
    top: 46%; /* Ajusta la posición vertical */
    right: 2.5%; /* Ajusta la posición horizontal */
    width: 80px; /* Tamaño de la cruz */
    cursor: pointer;
    font-size: 45px;
    background-color: rgba(0, 0, 0, 0.438);
    padding-top: 7px;;
    font-weight: bold;
    border-radius: 100%;
    z-index: 4; /* Asegura que esté por encima del fondo del popup */
    transition: transform 0.2s ease-in-out;
    
}


.background-img{
 width:200%;
 transform: rotate(90deg);
 filter: drop-shadow(0 0 5px #903bff) 
        drop-shadow(0 0 15px #d343ff)
        drop-shadow(0 0 35px #903bff)
        drop-shadow(0 0 160px #d68eff); 
}


@media (max-width: 1023px) {


    .hermeto-container {
        top: 35%;
        width: 155%;
    }

    .tarot-swirl{
        top:calc(50% - 300px);
        width:100%;
    }

    #tarot-card-slider {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 65%; /* Ajusta el ancho para el contenedor del slider */
        z-index: 10; /* Asegura que esté frente a la bola de cristal */
    }

    .arrows{
    width:200px;
    z-index: 25;
    }

    .arrow_left{
    position:absolute;
    top:calc(50% + 515px);
    left:5%;
    height:auto;
    transition: filter 0.3s ease-in-out;
    z-index: 25;
    }

    .arrow_right{
    position:absolute;
    top:calc(50% + 515px);
    right:5%;
    height:auto;
    transition: filter 0.3s ease-in-out;
     z-index: 25;
    }

    /*Tarot Card description popup*/
    .background-img{
    width:200%;
    transform: rotate(0deg);
    filter: drop-shadow(0 0 5px #903bff) 
            drop-shadow(0 0 15px #d343ff)
            drop-shadow(0 0 35px #903bff)
            drop-shadow(0 0 160px #d68eff); 
    }

    .tarot-popup-content {
    position: relative;
    width: 100%; /* Tamaño del gráfico tarot_card_background */
    max-width: 95vw;
    height: 600px;
    max-height: 90vh;
    }

    .tarot-popup-content img.background-img {
        width: 100%;    
        height: 100%;
        overflow: visible;
        object-fit: cover;
    }

    .tarot-info-card-col img {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translate(-50%, -70%);
    max-width: 200%;
    max-height: 200%;
    margin-right:0px;
    object-fit: cover;
    }

    /* Columna de la Descripción */

    .tarot-info-text-col {
        width:100%;
        font-size: 1.2vh;
        position:absolute;
        top: 110%;
    left: 50%;
    transform: translate(-50%, -50%);
        text-align: center;
        color: #6d6258;
    }

    .tarot-info-text-col h2 {
        color: #252525;
         font-size: 1.6vh;
        margin-bottom: 0.5rem;
    }

    .tarot-info-text-col h3 {
         font-size: 1.1vh;
        color: #4b8f8f;
        margin-bottom: 1rem;
    }
    


   .tarot-close-x {
    position: absolute;
    width: 140px;
    height:140px;
    top: 185%; 
    left:50%; 
    transform: translate(-50%, -70%);
    cursor: pointer;
    font-size: 70px;
    background-color: rgba(0, 0, 0, 0.438);
    padding-top: 26px;;
    font-weight: bold;
    border-radius: 100%;
    z-index: 4; /* Asegura que esté por encima del fondo del popup */
    transition: transform 0.2s ease-in-out;
    
    }
    

}

