/* ===== HEROES PAGE SPECIFIC STYLES - COMIC INTERACTIVE ===== */

/* Importar fuentes de cómic */
@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Creepster&family=Bungee:wght@400&family=Orbitron:wght@400;700;900&display=swap');

/* Variables CSS para el tema superhéroes */
:root {
    --hero-primary: #ff0040;
    --hero-secondary: #0066ff;
    --hero-accent: #ffd700;
    --hero-dark: #1a1a2e;
    --hero-light: #ffffff;
    --hero-shadow: #000000;
    --comic-blue: #4a90e2;
    --comic-red: #e74c3c;
    --comic-yellow: #f1c40f;
    --comic-green: #2ecc71;
    --comic-purple: #9b59b6;
    --cel-shadow: rgba(0, 0, 0, 0.8);
    --cel-highlight: rgba(255, 255, 255, 0.9);
    --hud-blue: #00d4ff;
    --hud-orange: #ff6600;
}

/* Reset específico para la página héroes */
.heroes-page {
    font-family: 'Bangers', cursive;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: var(--hero-light);
    overflow-x: hidden;
    position: relative;
}

/* Fondo animado tipo cómic */
.heroes-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 0, 64, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
    animation: comicPulse 15s ease-in-out infinite;
}

@keyframes comicPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Header estilo cómic */
.heroes-header {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(0, 102, 255, 0.8));
    backdrop-filter: blur(15px);
    border-bottom: 3px solid var(--hero-accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* Efectos de rayos en el menú */
.nav-menu a {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.8), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.nav-menu a:hover::before {
    left: 100%;
}

.nav-menu a::after {
    content: '⚡';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--hero-accent);
}

.nav-menu a:hover::after {
    right: 5px;
    opacity: 1;
    animation: lightning 0.5s ease-in-out;
}

@keyframes lightning {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.3); }
}

/* Hero section tipo viñeta de cómic */
.comic-hero {
    height: 100vh;
    background: 
        linear-gradient(rgba(26, 26, 46, 0.7), rgba(26, 26, 46, 0.7)),
        url('../../assets/images/Demo/Demo.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 8px solid var(--hero-accent);
    border-radius: 20px;
    margin: 20px;
    box-shadow: 
        inset 0 0 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 215, 0, 0.3);
}

.comic-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.03) 2px,
            rgba(255, 255, 255, 0.03) 4px
        );
    pointer-events: none;
}

.comic-hero-content {
    text-align: center;
    z-index: 2;
    animation: heroEntrance 2s ease-out;
}

@keyframes heroEntrance {
    0% { 
        opacity: 0; 
        transform: translateY(100px) scale(0.5); 
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.comic-title {
    font-family: 'Bangers', cursive;
    font-size: 5rem;
    color: var(--hero-accent);
    text-shadow: 
        4px 4px 0px var(--hero-shadow),
        8px 8px 0px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
    animation: titleShake 3s ease-in-out infinite;
    letter-spacing: 3px;
}

@keyframes titleShake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

.comic-subtitle {
    font-size: 1.8rem;
    color: var(--comic-blue);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: subtitleGlow 2s ease-in-out infinite alternate;
}

@keyframes subtitleGlow {
    0% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); }
    100% { text-shadow: 2px 2px 20px rgba(74, 144, 226, 0.8); }
}

/* Botones estilo superhéroe */
.hero-btn {
    background: linear-gradient(45deg, var(--hero-primary), var(--comic-red));
    border: 3px solid var(--hero-accent);
    padding: 15px 30px;
    border-radius: 10px;
    color: white;
    font-family: 'Bangers', cursive;
    font-size: 1.3rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 0, 64, 0.4);
    animation: heroButtonPulse 0.6s ease-in-out;
}

@keyframes heroButtonPulse {
    0%, 100% { transform: translateY(-5px) scale(1.05); }
    50% { transform: translateY(-5px) scale(1.1); }
}

/* Secciones tipo viñetas de cómic */
.comic-panel {
    margin: 3rem 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 4px solid var(--hero-accent);
    border-radius: 20px;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 215, 0, 0.2);
}

.comic-panel::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--hero-primary), var(--comic-blue), var(--hero-accent));
    border-radius: 25px;
    z-index: -1;
    opacity: 0.3;
}

/* Grid de productos estilo cómic */
.heroes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.hero-card {
    background: rgba(0, 0, 0, 0.8);
    border: 3px solid var(--hero-accent);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.hero-card:hover::before {
    opacity: 1;
    animation: comicShine 0.8s ease-out;
}

@keyframes comicShine {
    0% { transform: translateX(-100%) skewX(-25deg); }
    100% { transform: translateX(100%) skewX(-25deg); }
}

.hero-card:hover {
    transform: translateY(-20px) rotateY(10deg) scale(1.05);
    border-color: var(--comic-blue);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(74, 144, 226, 0.5);
    animation: heroFlight 0.8s ease-out;
}

@keyframes heroFlight {
    0% { transform: translateY(0) rotateY(0deg) scale(1); }
    50% { transform: translateY(-30px) rotateY(15deg) scale(1.1); }
    100% { transform: translateY(-20px) rotateY(10deg) scale(1.05); }
}

.hero-image-container {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: linear-gradient(135deg, var(--comic-blue), var(--comic-purple));
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: contrast(1.2) saturate(1.3);
}

.hero-card:hover .hero-image {
    transform: scale(1.2) rotate(5deg);
    filter: contrast(1.4) saturate(1.5) drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

/* Efectos de poder en las imágenes */
.power-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(255, 215, 0, 0.3) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-card:hover .power-effect {
    opacity: 1;
    animation: powerSurge 1s ease-in-out infinite;
}

@keyframes powerSurge {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

.hero-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
}

.comic-badge {
    background: var(--hero-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 5px;
    border: 2px solid var(--hero-accent);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    animation: badgeFloat 3s ease-in-out infinite;
}

@keyframes badgeFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.hero-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-name {
    font-family: 'Bangers', cursive;
    font-size: 1.8rem;
    color: var(--hero-accent);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
}

.hero-card:hover .hero-name {
    color: var(--comic-blue);
    text-shadow: 2px 2px 10px rgba(74, 144, 226, 0.8);
}

.hero-universe {
    color: var(--comic-red);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-powers {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1rem 0;
}

.power-tag {
    background: rgba(74, 144, 226, 0.3);
    color: var(--hero-light);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    border: 1px solid var(--comic-blue);
    transition: all 0.3s ease;
}

.power-tag:hover {
    background: var(--comic-blue);
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.5);
}

.hero-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--hero-accent);
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Botón de acción heroica */
.action-btn {
    width: 100%;
    background: linear-gradient(45deg, var(--comic-blue), var(--comic-purple));
    border: 2px solid var(--hero-accent);
    padding: 12px;
    border-radius: 10px;
    color: white;
    font-family: 'Bangers', cursive;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.5s ease;
    transform: translate(-50%, -50%);
}

.action-btn:hover::before {
    width: 300px;
    height: 300px;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.4);
    animation: actionPulse 0.6s ease-in-out;
}

@keyframes actionPulse {
    0%, 100% { transform: translateY(-3px) scale(1); }
    50% { transform: translateY(-3px) scale(1.05); }
}

/* HUD tipo Iron Man */
.hud-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hud-overlay.active {
    opacity: 1;
}

.hud-corner {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid var(--hud-blue);
    opacity: 0.7;
}

.hud-corner.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.hud-corner.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.hud-corner.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.hud-corner.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

.hud-info {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--hud-blue);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    font-family: 'Orbitron', monospace;
    color: var(--hud-blue);
}

.hud-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--hud-blue), transparent);
    animation: hudScan 3s linear infinite;
}

@keyframes hudScan {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

/* Mini juego de reacción */
.reaction-game {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border: 3px solid var(--hero-accent);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.reaction-game.active {
    opacity: 1;
    visibility: visible;
}

.reaction-target {
    width: 100px;
    height: 100px;
    background: var(--comic-red);
    border-radius: 50%;
    margin: 2rem auto;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: targetPulse 1s ease-in-out infinite;
}

@keyframes targetPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.reaction-target:hover {
    background: var(--comic-green);
    transform: scale(1.2);
}

/* Efectos de cel shading */
.cel-shading {
    filter: 
        contrast(1.3) 
        saturate(1.4) 
        drop-shadow(3px 3px 0px var(--cel-shadow))
        drop-shadow(-1px -1px 0px var(--cel-highlight));
}

/* Elementos flotantes tipo cómic */
.comic-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.comic-bubble {
    position: absolute;
    font-family: 'Bangers', cursive;
    background: white;
    color: black;
    padding: 10px 15px;
    border-radius: 20px;
    border: 3px solid black;
    font-size: 1.2rem;
    animation: bubbleFloat 8s linear infinite;
}

.comic-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

@keyframes bubbleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Scroll reveal para viñetas */
.comic-reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    transition: all 0.8s ease;
}

.comic-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive design */
@media (max-width: 768px) {
    .comic-title {
        font-size: 3rem;
    }
    
    .comic-subtitle {
        font-size: 1.3rem;
    }
    
    .heroes-grid {
        grid-template-columns: 1fr;
    }
    
    .comic-panel {
        margin: 2rem 1rem;
        padding: 1rem;
    }
    
    .hud-corner {
        width: 60px;
        height: 60px;
    }
    
    .hud-info {
        right: 10px;
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* Animaciones adicionales */
@keyframes comicZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes heroTransform {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg) scale(1.1); }
    100% { transform: rotateY(360deg); }
}

@keyframes powerCharge {
    0% { box-shadow: 0 0 5px var(--hero-accent); }
    50% { box-shadow: 0 0 25px var(--hero-accent), 0 0 50px var(--comic-blue); }
    100% { box-shadow: 0 0 5px var(--hero-accent); }
}

/* Efectos especiales para hover */
.hero-card:hover {
    animation: heroTransform 1s ease-in-out, powerCharge 2s ease-in-out infinite;
}

.comic-panel:hover {
    animation: comicZoom 0.5s ease-in-out;
}

/* ===== OCULTAR CARRITO ===== */
.cart-btn {
    display: none !important;
}

/* ===== BODY Y LAYOUT GENERAL ===== */ 