/* ============================================
   SPIDER-MAN - ESTILOS CON IMÁGENES
   ============================================ */

:root {
    --red: #e62429;
    --blue: #0a2351;
    --dark: #050505;
    --light: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Orbitron', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
}

/* LOADING */
#loading-screen {
    position: fixed;
    inset: 0;
    background: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.spider-icon {
    width: 80px;
    height: 80px;
    border: 3px solid var(--red);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* CANVAS 3D */
#webgl-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* NAV - DESKTOP */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 25px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    letter-spacing: 3px;
    color: var(--red);
    text-shadow: 0 0 20px rgba(230, 36, 41, 0.5);
}

.logo span {
    color: var(--light);
}

.nav-links-desktop {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links-desktop a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 3px;
    transition: all 0.3s;
}

.nav-links-desktop a:hover {
    color: var(--red);
    text-shadow: 0 0 10px var(--red);
}

/* NAV - MOBILE (oculto en desktop) */
.nav-container-mobile {
    display: none;
}

.nav-links-mobile {
    display: none;
    list-style: none;
}

/* Estilos del menú móvil */
.nav-logo {
    display: flex;
    align-items: center;
}

.spider-logo {
    filter: drop-shadow(0 0 5px rgba(230, 36, 41, 0.5));
    transition: all 0.3s ease;
}

.spider-logo:hover {
    filter: drop-shadow(0 0 15px rgba(230, 36, 41, 0.8));
    transform: scale(1.1);
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hamburger:hover {
    border-color: var(--red);
    box-shadow: 0 0 15px rgba(230, 36, 41, 0.5);
}

.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* SECTIONS */
.section {
    min-height: 100vh;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 50px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(50px, 10vw, 100px);
    letter-spacing: 15px;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, var(--red), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   HERO
   ============================================ */

#hero {
    position: relative;
    overflow: hidden;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--dark));
    pointer-events: none;
    z-index: 5;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1400px;
    width: 100%;
}

.hero-container.hero-overlay {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90vh;
}

.hero-bg-image {
    max-height: 100%;
    max-width: 95%;
    height: 85vh;
    object-fit: contain;
    -webkit-filter: drop-shadow(0 0 100px rgba(230, 36, 41, 0.6))
                    drop-shadow(0 0 50px rgba(230, 36, 41, 0.4))
                    contrast(1.1)
                    saturate(1.15);
    filter: drop-shadow(0 0 100px rgba(230, 36, 41, 0.6))
            drop-shadow(0 0 50px rgba(230, 36, 41, 0.4))
            contrast(1.1)
            saturate(1.15);
    animation: heroFloat 4s ease-in-out infinite;
    z-index: 1;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    position: relative;
    left: 8%;
    top: -10%;
    -webkit-transition: -webkit-transform 0.4s ease, -webkit-filter 0.4s ease;
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: pointer;
}

.hero-bg-image:hover {
    -webkit-transform: scale(1.08) rotate(2deg);
    transform: scale(1.08) rotate(2deg);
    -webkit-filter: drop-shadow(0 0 80px rgba(230, 36, 41, 1)) contrast(1.2) saturate(1.4) brightness(1.1);
    filter: drop-shadow(0 0 80px rgba(230, 36, 41, 1)) contrast(1.2) saturate(1.4) brightness(1.1);
    animation: none;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    pointer-events: none;
}

.hero-text-overlay h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(50px, 10vw, 120px);
    letter-spacing: 15px;
    color: var(--light);
    text-shadow:
        0 0 30px rgba(230, 36, 41, 0.9),
        0 0 60px rgba(230, 36, 41, 0.6),
        0 0 100px rgba(0, 0, 0, 0.9),
        2px 2px 4px rgba(0, 0, 0, 1);
    margin: 0;
    opacity: 0.95;
}

.hero-text-overlay p {
    font-size: 14px;
    letter-spacing: 8px;
    text-transform: uppercase;
    margin-top: 15px;
    opacity: 0.85;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.9), 1px 1px 3px rgba(0, 0, 0, 1);
}

.hero-text {
    text-align: left;
    z-index: 2;
}

.hero-text h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(60px, 12vw, 150px);
    letter-spacing: 15px;
    line-height: 0.9;
    color: var(--light);
    text-shadow:
        0 0 40px rgba(230, 36, 41, 0.5),
        0 0 80px rgba(230, 36, 41, 0.3);
}

.hero-text p {
    font-size: 14px;
    letter-spacing: 8px;
    opacity: 0.6;
    margin-top: 20px;
    text-transform: uppercase;
}

.hero-image {
    position: relative;
    z-index: 1;
}

.spiderman-hero {
    max-height: 70vh;
    max-width: 800px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 60px rgba(230, 36, 41, 0.5));
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.02); }
}

.scroll-hint {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-hint span {
    font-size: 10px;
    letter-spacing: 4px;
    opacity: 0.4;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--red), transparent);
    animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
    0%, 100% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
}

/* ============================================
   VILLANOS
   ============================================ */

#villains {
    background: radial-gradient(ellipse at center, rgba(230, 36, 41, 0.05) 0%, transparent 70%);
    position: relative;
}

#villains::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, var(--dark), transparent);
    pointer-events: none;
    z-index: 0;
}

#villains::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--dark));
    pointer-events: none;
    z-index: 0;
}

.villains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

a.villain-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.villain-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    opacity: 1 !important;
    transform: none !important;
}

.villain-card:hover {
    transform: translateY(-10px) scale(1.02) !important;
    border-color: var(--red);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(230, 36, 41, 0.2);
}

.villain-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(230, 36, 41, 0.15) 0%, #0a0a0a 70%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.villain-image img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* ===== VENOM - Efecto simbionte oscuro pulsante ===== */
.villain-card:nth-child(1) .villain-image {
    background: radial-gradient(ellipse at center, rgba(75, 0, 130, 0.3) 0%, #0a0a0a 70%);
}
.villain-card:nth-child(1) .villain-image img {
    filter: drop-shadow(0 0 20px rgba(75, 0, 130, 0.6))
            drop-shadow(0 0 40px rgba(0, 0, 0, 0.8));
    animation: venomPulse 2s ease-in-out infinite;
}
@keyframes venomPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(75, 0, 130, 0.6)) drop-shadow(0 0 40px rgba(0, 0, 0, 0.8)); }
    50% { transform: scale(1.03); filter: drop-shadow(0 0 35px rgba(75, 0, 130, 0.9)) drop-shadow(0 0 60px rgba(0, 0, 0, 0.9)); }
}
.villain-card:nth-child(1):hover .villain-image img {
    animation: venomRage 0.3s ease-in-out infinite;
}
@keyframes venomRage {
    0%, 100% { transform: scale(1.1) translateX(0); }
    25% { transform: scale(1.1) translateX(-3px); }
    75% { transform: scale(1.1) translateX(3px); }
}

/* ===== GREEN GOBLIN - Efecto explosivo verde ===== */
.villain-card:nth-child(2) .villain-image {
    background: radial-gradient(ellipse at center, rgba(0, 255, 0, 0.15) 0%, #0a0a0a 70%);
}
.villain-card:nth-child(2) .villain-image img {
    filter: drop-shadow(0 0 15px rgba(0, 255, 0, 0.5))
            drop-shadow(0 0 30px rgba(128, 0, 128, 0.3));
    animation: goblinFloat 3s ease-in-out infinite;
}
@keyframes goblinFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}
.villain-card:nth-child(2):hover .villain-image img {
    animation: goblinLaugh 0.1s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(0, 255, 0, 0.8))
            drop-shadow(0 0 50px rgba(255, 100, 0, 0.5));
}
@keyframes goblinLaugh {
    0%, 100% { transform: scale(1.1) rotate(-1deg); }
    50% { transform: scale(1.12) rotate(1deg); }
}

/* ===== DOC OCK - Efecto mecánico metálico ===== */
.villain-card:nth-child(3) .villain-image {
    background: radial-gradient(ellipse at center, rgba(150, 150, 150, 0.2) 0%, #0a0a0a 70%);
}
.villain-card:nth-child(3) .villain-image img {
    filter: drop-shadow(0 0 15px rgba(200, 200, 200, 0.4))
            drop-shadow(0 5px 20px rgba(0, 0, 0, 0.8))
            contrast(1.1);
    animation: ockMechanical 4s ease-in-out infinite;
}
@keyframes ockMechanical {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.02) rotate(0.5deg); }
    75% { transform: scale(1.02) rotate(-0.5deg); }
}
.villain-card:nth-child(3):hover .villain-image img {
    animation: ockTentacles 0.5s ease-in-out infinite;
    filter: drop-shadow(0 0 25px rgba(255, 200, 100, 0.6))
            drop-shadow(0 10px 30px rgba(0, 0, 0, 0.9));
}
@keyframes ockTentacles {
    0%, 100% { transform: scale(1.1) rotate(0deg); }
    33% { transform: scale(1.12) rotate(1deg); }
    66% { transform: scale(1.12) rotate(-1deg); }
}

/* ===== ELECTRO - Efecto eléctrico con parpadeo ===== */
.villain-card:nth-child(4) .villain-image {
    background: radial-gradient(ellipse at center, rgba(0, 150, 255, 0.2) 0%, #0a0a0a 70%);
}
.villain-card:nth-child(4) .villain-image img {
    filter: drop-shadow(0 0 20px rgba(0, 150, 255, 0.7))
            drop-shadow(0 0 40px rgba(255, 255, 0, 0.3));
    animation: electroSpark 0.5s ease-in-out infinite;
}
@keyframes electroSpark {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 150, 255, 0.7)) drop-shadow(0 0 40px rgba(255, 255, 0, 0.3)); }
    50% { filter: drop-shadow(0 0 30px rgba(0, 200, 255, 0.9)) drop-shadow(0 0 60px rgba(255, 255, 100, 0.5)); }
}
.villain-card:nth-child(4):hover .villain-image img {
    animation: electroShock 0.1s linear infinite;
}
@keyframes electroShock {
    0% { transform: scale(1.1) translate(0, 0); filter: drop-shadow(0 0 40px rgba(0, 200, 255, 1)) drop-shadow(0 0 80px rgba(255, 255, 0, 0.8)); }
    25% { transform: scale(1.1) translate(2px, -2px); }
    50% { transform: scale(1.1) translate(-2px, 2px); filter: drop-shadow(0 0 50px rgba(255, 255, 255, 1)) drop-shadow(0 0 100px rgba(0, 200, 255, 1)); }
    75% { transform: scale(1.1) translate(2px, 2px); }
    100% { transform: scale(1.1) translate(0, 0); }
}

/* ===== MYSTERIO - Efecto místico con humo ===== */
.villain-card:nth-child(5) .villain-image {
    background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.2) 0%, rgba(0, 100, 0, 0.1) 50%, #0a0a0a 70%);
}
.villain-card:nth-child(5) .villain-image img {
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.5))
            drop-shadow(0 0 40px rgba(0, 255, 100, 0.3));
    animation: mysterioFloat 5s ease-in-out infinite;
}
@keyframes mysterioFloat {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    25% { transform: scale(1.02) rotate(1deg); }
    50% { transform: scale(1.03) rotate(0deg); opacity: 0.9; }
    75% { transform: scale(1.02) rotate(-1deg); }
}
.villain-card:nth-child(5):hover .villain-image img {
    animation: mysterioIllusion 2s ease-in-out infinite;
}
@keyframes mysterioIllusion {
    0%, 100% { transform: scale(1.1); filter: drop-shadow(0 0 30px rgba(138, 43, 226, 0.8)) drop-shadow(0 0 60px rgba(0, 255, 100, 0.5)); }
    33% { transform: scale(1.12); filter: drop-shadow(0 0 40px rgba(0, 255, 100, 0.8)) drop-shadow(0 0 80px rgba(138, 43, 226, 0.6)); opacity: 0.85; }
    66% { transform: scale(1.08); filter: drop-shadow(0 0 50px rgba(255, 0, 255, 0.6)) drop-shadow(0 0 70px rgba(0, 200, 100, 0.7)); }
}

/* ===== SANDMAN - Efecto de arena/partículas ===== */
.villain-card:nth-child(6) .villain-image {
    background: radial-gradient(ellipse at center, rgba(210, 180, 140, 0.2) 0%, #0a0a0a 70%);
    align-items: flex-end;
}
.villain-card:nth-child(6) .villain-image img {
    object-position: bottom;
    margin-bottom: -5px;
    filter: drop-shadow(0 0 15px rgba(210, 180, 140, 0.5))
            drop-shadow(0 10px 25px rgba(139, 90, 43, 0.4));
    animation: sandShift 3s ease-in-out infinite;
}
@keyframes sandShift {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 15px rgba(210, 180, 140, 0.5)) drop-shadow(0 10px 25px rgba(139, 90, 43, 0.4)); }
    50% { transform: scale(1.02); filter: drop-shadow(0 0 25px rgba(210, 180, 140, 0.7)) drop-shadow(0 15px 35px rgba(139, 90, 43, 0.5)); }
}
.villain-card:nth-child(6):hover .villain-image img {
    animation: sandStorm 0.2s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(210, 180, 140, 0.8))
            drop-shadow(0 0 50px rgba(255, 200, 100, 0.5));
}
@keyframes sandStorm {
    0%, 100% { transform: scale(1.1) translateX(0); }
    25% { transform: scale(1.1) translateX(-2px) translateY(1px); }
    50% { transform: scale(1.12) translateX(1px) translateY(-1px); }
    75% { transform: scale(1.1) translateX(2px) translateY(1px); }
}

.villain-info {
    padding: 25px;
    text-align: center;
}

.villain-info h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.villain-info p {
    font-size: 12px;
    opacity: 0.6;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.threat {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: bold;
}

.threat.extreme {
    background: linear-gradient(135deg, #ff0000, #8b0000);
    color: white;
}

.threat.high {
    background: linear-gradient(135deg, #ff6600, #cc3300);
    color: white;
}

.threat.medium {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    color: black;
}

/* ============================================
   PODERES
   ============================================ */

#powers {
    background: linear-gradient(to bottom, var(--dark), rgba(10, 35, 81, 0.1), var(--dark));
    padding: 100px 50px;
    position: relative;
}

#powers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, var(--dark), transparent);
    pointer-events: none;
    z-index: 0;
}

#powers::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--dark));
    pointer-events: none;
    z-index: 0;
}

.powers-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.power-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.power-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.power-block.reverse {
    direction: rtl;
}

.power-block.reverse > * {
    direction: ltr;
}

.power-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.power-image img {
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(230, 36, 41, 0.3));
    transition: all 0.5s ease;
}

.power-block:hover .power-image img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 50px rgba(230, 36, 41, 0.5));
}

.power-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(230, 36, 41, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.power-content {
    padding: 20px;
}

.power-content h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: 6px;
    color: var(--red);
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(230, 36, 41, 0.3);
}

.power-content p {
    font-size: 15px;
    line-height: 1.8;
    opacity: 0.7;
    margin-bottom: 30px;
}

.power-stats {
    max-width: 400px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 3px;
    opacity: 0.6;
    min-width: 60px;
}

.stat-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--blue));
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease;
    box-shadow: 0 0 10px var(--red);
}

/* ============================================
   FINAL
   ============================================ */

#final {
    background: radial-gradient(ellipse at center, rgba(230, 36, 41, 0.1) 0%, transparent 50%);
    text-align: center;
    position: relative;
}

#final::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, var(--dark), transparent);
    pointer-events: none;
    z-index: 0;
}

.final-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.final-image {
    position: relative;
}

.final-image img {
    max-height: 400px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 60px rgba(230, 36, 41, 0.5));
    animation: finalFloat 4s ease-in-out infinite;
}

@keyframes finalFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.quote {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(24px, 5vw, 48px);
    letter-spacing: 4px;
    max-width: 900px;
    line-height: 1.3;
    text-shadow: 0 0 30px rgba(230, 36, 41, 0.3);
}

.btn-hero {
    display: inline-block;
    padding: 20px 60px;
    background: transparent;
    border: 2px solid var(--red);
    color: var(--light);
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    letter-spacing: 5px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: -1;
}

.btn-hero:hover::before {
    transform: scaleX(1);
}

.btn-hero:hover {
    box-shadow: 0 0 40px rgba(230, 36, 41, 0.5);
    text-shadow: 0 0 10px white;
}

/* FOOTER */
.footer {
    position: relative;
    z-index: 1;
    background: var(--dark);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(230, 36, 41, 0.3);
}

.footer p {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
}

.footer a {
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--light);
    text-shadow: 0 0 10px rgba(230, 36, 41, 0.8);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .spiderman-hero {
        max-height: 50vh;
    }

    .hero-bg-image {
        left: 0;
        top: 0;
        height: 70vh;
    }

    .hero-text-overlay h1 {
        font-size: clamp(40px, 12vw, 100px);
        letter-spacing: 10px;
    }

    .power-block,
    .power-block.reverse {
        grid-template-columns: 1fr;
        text-align: center;
        direction: ltr;
        gap: 40px;
    }

    .power-content {
        order: 2;
    }

    .power-image {
        order: 1;
    }

    .power-stats {
        margin: 0 auto;
    }

    .villains-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* Ocultar navbar desktop */
    .logo,
    .nav-links-desktop {
        display: none;
    }

    /* Mostrar navbar móvil */
    .navbar {
        top: 15px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        padding: 0;
        flex-direction: column;
        background: none;
        gap: 10px;
    }

    .nav-container-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 25px;
        background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(40, 40, 40, 0.9));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 60px;
        padding: 10px 12px 10px 24px;
        box-shadow:
            0 10px 40px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }

    .nav-logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-logo::after {
        content: 'SM';
        font-family: 'Bebas Neue', sans-serif;
        font-size: 24px;
        color: var(--light);
        letter-spacing: 3px;
    }

    .spider-logo {
        width: 42px;
        height: 42px;
        filter: none;
    }

    .hamburger {
        width: 52px;
        height: 52px;
        padding: 0;
        gap: 7px;
        border: none;
        border-radius: 50%;
        background: var(--red);
        box-shadow: 0 4px 15px rgba(230, 36, 41, 0.4);
        transition: all 0.3s ease;
    }

    .hamburger:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(230, 36, 41, 0.6);
    }

    .hamburger span {
        width: 20px;
        height: 2.5px;
        background: var(--light);
        transition: all 0.3s ease;
    }

    .hamburger.active {
        background: var(--light);
    }

    .hamburger.active span {
        background: var(--red);
    }

    .nav-links-mobile {
        position: absolute;
        top: 85px;
        background: linear-gradient(135deg, rgba(20, 20, 20, 0.98), rgba(30, 30, 30, 0.95));
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        padding: 20px 30px;
        gap: 0;
        flex-direction: column;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
        min-width: 180px;
    }

    .nav-links-mobile.active {
        display: flex;
    }

    .nav-links-mobile li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links-mobile li:last-child {
        border-bottom: none;
    }

    .nav-links-mobile a {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        font-size: 12px;
        letter-spacing: 3px;
        font-weight: normal;
        transition: all 0.3s;
        padding: 15px 0;
        display: block;
    }

    .nav-links-mobile a:hover {
        color: var(--red);
        letter-spacing: 4px;
    }

    .section {
        padding: 80px 15px;
        min-height: auto;
    }

    #villains {
        padding-top: 0;
        margin-top: -50px;
    }

    #powers,
    #final {
        padding-top: 40px;
    }

    #hero {
        min-height: auto;
        padding: 60px 15px 20px;
    }

    .hero-container.hero-overlay {
        height: 80vh;
        height: 80dvh;
    }

    .hero-bg-image {
        height: 75vh;
        height: 75dvh;
        max-width: 110%;
        left: 10%;
        top: -8%;
    }

    .hero-text-overlay {
        top: 50%;
    }

    .hero-text-overlay h1 {
        font-size: clamp(42px, 16vw, 80px);
        letter-spacing: 4px;
        white-space: nowrap;
    }

    .hero-text-overlay p {
        font-size: 10px;
        letter-spacing: 3px;
        margin-top: 8px;
    }

    .section-title {
        font-size: clamp(36px, 10vw, 60px);
        letter-spacing: 8px;
        margin-bottom: 40px;
    }

    .villains-grid {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
        gap: 15px;
    }

    .villain-card {
        border-radius: 15px;
    }

    .villain-image {
        height: 180px;
    }

    .villain-info {
        padding: 15px;
    }

    .villain-info h3 {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .villain-info p {
        font-size: 10px;
        margin-bottom: 10px;
    }

    .threat {
        font-size: 7px;
        padding: 4px 10px;
    }

    .power-block {
        gap: 30px;
    }

    .power-image img {
        max-height: 250px;
    }

    .power-content h3 {
        font-size: clamp(28px, 6vw, 40px);
    }

    .power-content p {
        font-size: 13px;
    }

    .final-image img {
        max-height: 280px;
    }

    .quote {
        font-size: clamp(18px, 5vw, 32px);
        padding: 0 10px;
    }

    .btn-hero {
        padding: 15px 40px;
        font-size: 12px;
        letter-spacing: 3px;
    }

    .scroll-hint {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        top: 10px;
    }

    .nav-container-mobile {
        gap: 20px;
        padding: 8px 10px 8px 20px;
    }

    .nav-logo::after {
        font-size: 20px;
    }

    .spider-logo {
        width: 36px;
        height: 36px;
    }

    .hamburger {
        width: 46px;
        height: 46px;
        gap: 6px;
    }

    .hamburger span {
        width: 18px;
    }

    .nav-links-mobile {
        top: 75px;
        padding: 18px 28px;
        min-width: 180px;
    }

    .nav-links-mobile a {
        font-size: 11px;
        letter-spacing: 2px;
        padding: 12px 0;
    }

    .section {
        padding: 70px 12px;
    }

    #villains {
        padding-top: 0;
        margin-top: -60px;
    }

    #powers,
    #final {
        padding-top: 30px;
    }

    #hero {
        padding: 50px 10px 10px;
    }

    .hero-container.hero-overlay {
        height: 75vh;
        height: 75dvh;
    }

    .hero-bg-image {
        height: 70vh;
        height: 70dvh;
        left: 8%;
        top: -10%;
        animation: none;
    }

    .hero-bg-image:hover {
        transform: none;
        filter: drop-shadow(0 0 100px rgba(230, 36, 41, 0.6))
                drop-shadow(0 0 50px rgba(230, 36, 41, 0.4))
                contrast(1.1)
                saturate(1.15);
    }

    /* Desactivar animaciones complejas en móvil */
    .villain-card:nth-child(1) .villain-image img,
    .villain-card:nth-child(2) .villain-image img,
    .villain-card:nth-child(3) .villain-image img,
    .villain-card:nth-child(4) .villain-image img,
    .villain-card:nth-child(5) .villain-image img,
    .villain-card:nth-child(6) .villain-image img {
        animation: none;
    }

    .hero-text-overlay {
        top: 50%;
        width: 100%;
        padding: 0 10px;
    }

    .hero-text-overlay h1 {
        font-size: clamp(36px, 14vw, 55px);
        letter-spacing: 3px;
        white-space: nowrap;
    }

    .hero-text-overlay p {
        font-size: 9px;
        letter-spacing: 2px;
        margin-top: 8px;
    }

    .scroll-hint {
        bottom: 15px;
    }

    .scroll-hint span {
        font-size: 8px;
    }

    .scroll-line {
        height: 30px;
    }

    .section-title {
        font-size: clamp(30px, 12vw, 50px);
        letter-spacing: 5px;
    }

    .villains-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .villain-image {
        height: 220px;
    }

    .villain-info h3 {
        font-size: 22px;
    }

    .power-content h3 {
        font-size: 28px;
    }

    .power-image img {
        max-height: 200px;
    }

    .powers-container {
        gap: 60px;
    }

    .final-image img {
        max-height: 220px;
    }

    .quote {
        font-size: 18px;
        line-height: 1.4;
    }

    .btn-hero {
        padding: 12px 30px;
        font-size: 11px;
    }
}

@media (max-width: 375px) {
    .logo {
        font-size: 16px;
    }

    .hero-text-overlay h1 {
        font-size: 32px;
        letter-spacing: 2px;
    }

    .hero-text-overlay p {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .villain-info h3 {
        font-size: 16px;
    }

    .villain-info p {
        font-size: 9px;
    }

    .threat {
        font-size: 6px;
        padding: 3px 8px;
    }

    .quote {
        font-size: 16px;
    }

    .btn-hero {
        padding: 10px 25px;
        font-size: 10px;
        letter-spacing: 2px;
    }
}

/* Placeholder para villanos */
.villain-placeholder {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    letter-spacing: 8px;
    color: rgba(255, 255, 255, 0.15);
    text-shadow: 0 0 30px rgba(230, 36, 41, 0.3);
}

.villain-image img[src=""],
.power-image img[src=""],
.hero-image img[src=""],
.final-image img[src=""] {
    display: none;
}

.power-image:has(img[src=""]),
.hero-image:has(img[src=""]),
.final-image:has(img[src=""]) {
    background: linear-gradient(135deg, var(--red), var(--blue));
    display: flex;
    align-items: center;
    justify-content: center;
}
