/* Estilos para el modal de visualización de ilustraciones de héroes */
.hero-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.hero-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: modalFadeIn 0.4s ease-in-out;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}

.hero-modal-image {
    max-width: 100%;
    max-height: 80vh;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 0 20px var(--hero-blue-glow);
}

.hero-modal-caption {
    margin-top: 15px;
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    text-align: center;
    text-shadow: 0 0 10px var(--hero-blue-glow);
}

.hero-modal-counter {
    margin-top: 10px;
    color: var(--accent-color);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    text-align: center;
    text-shadow: 0 0 8px var(--hero-blue-glow);
}

.hero-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-shadow: 0 0 10px var(--hero-blue-glow);
}

.hero-modal-close:hover {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--hero-blue-glow);
}

/* Estilos para los botones de navegación */
.hero-modal-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 1010;
    pointer-events: none;
}

.modal-prev-btn,
.modal-next-btn {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 15px;
    box-shadow: 0 0 15px var(--hero-blue-glow);
    pointer-events: auto;
}

.modal-prev-btn:hover,
.modal-next-btn:hover {
    background-color: var(--primary-color);
    color: black;
    transform: scale(1.1);
}

/* Estilos para indicar que las cartas son clickeables */
.clickable-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-card:hover {
    transform: scale(1.03);
    box-shadow: 0 0 15px var(--accent-color);
}

/* Indicador visual de que la imagen es clickeable */
.card-image {
    position: relative;
}

.card-image::after {
    content: '🔍';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    border-radius: 50%;
    font-size: 14px;
    opacity: 0.8;
    pointer-events: none;
}

/* Indicador de imagen disponible */
.image-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px var(--hero-blue-glow);
    animation: pulse 2s infinite;
}

.indicator-icon {
    font-size: 16px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 162, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 162, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 162, 255, 0);
    }
}

/* Estilos responsivos para el modal */
@media (max-width: 768px) {
    .hero-modal-content {
        max-width: 95%;
    }
    
    .hero-modal-caption {
        font-size: 1rem;
    }
    
    .modal-prev-btn,
    .modal-next-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
        margin: 0 5px;
    }
}
