/*
Theme Name:     Nocturna Killer Child
Theme URI:      https://nocturnakiller.com
Description:    Tema hijo para Nocturna Killer - Branding extremo para metal. Diseño infernal, épico y oscuro con animaciones premium. Especializado en Death Metal, Black Metal, War Metal y festivales de metal extremo.
Author:         Nocturna Killer Studio
Author URI:     https://nocturnakiller.com
Template:       Divi
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    nocturna-killer-child
Tags:           dark, metal, extreme, branding, music, infernal, animated

SEO Keywords: diseño web metal extremo, branding death metal, black metal design, web metal bands, diseño festivales metal, branding musical extremo
*/

/* ============================================
   VARIABLES GLOBALES - PALETA INFERNA
   ============================================ */
:root {
    --nk-black: #0a0a0a;
    --nk-blood-red: #8a0303;
    --nk-fire-orange: #ff6b35;
    --nk-metal-gray: #2a2a2a;
    --nk-dark-gold: #b8860b;
    --nk-smoke: #1a1a1a;
    --nk-ember: #ff4500;
    --nk-lava: #cf1020;
    --font-gothic: 'Metal Mania', 'UnifrakturMaguntia', cursive;
    --font-body: 'Inter', 'Roboto Condensed', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fire: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--nk-black);
    color: #e0e0e0;
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
}

/* Textura de metal oxidado de fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/texture-metal.jpg');
    background-repeat: repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* ============================================
   TIPOGRAFÍA GÓTICA METALERA
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Metal+Mania&family=Inter:wght@300;400;600;700&display=swap');

h1, h2, h3, h4, h5, h6, .et_menu_container .logo_container, .nav li a {
    font-family: var(--font-gothic);
    font-weight: 400;
    letter-spacing: 2px;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    background: linear-gradient(135deg, var(--nk-blood-red) 0%, var(--nk-fire-orange) 50%, var(--nk-dark-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(138, 3, 3, 0.5);
    animation: titlePulse 4s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

/* ============================================
   HERO SECTION CON VIDEO LOOP
   ============================================ */
.nk-hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nk-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.nk-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.2);
}

.nk-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.8) 0%,
        rgba(138, 3, 3, 0.3) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
    z-index: 1;
}

.nk-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 1200px;
}

.nk-logo-container {
    margin-bottom: 3rem;
    animation: logoEntrance 1.5s ease-out;
}

.nk-logo-svg {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 107, 53, 0.6));
    transition: var(--transition-fire);
}

.nk-logo-svg:hover {
    filter: drop-shadow(0 0 50px rgba(138, 3, 3, 0.9)) 
            drop-shadow(0 0 80px rgba(255, 107, 53, 0.8));
    transform: scale(1.05) rotate(-2deg);
}

@keyframes logoEntrance {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-180deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.nk-hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    margin-bottom: 1.5rem;
    line-height: 1;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.nk-hero-title::before,
.nk-hero-title::after {
    content: '☠';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6em;
    color: var(--nk-fire-orange);
    animation: skullFloat 3s ease-in-out infinite;
}

.nk-hero-title::before {
    left: -80px;
    animation-delay: 0s;
}

.nk-hero-title::after {
    right: -80px;
    animation-delay: 1.5s;
}

@keyframes skullFloat {
    0%, 100% { transform: translateY(-50%) rotate(-10deg); }
    50% { transform: translateY(-70%) rotate(10deg); }
}

.nk-hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--nk-fire-orange);
    margin-bottom: 3rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.nk-cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: transparent;
    border: 3px solid var(--nk-blood-red);
    color: #fff;
    font-family: var(--font-gothic);
    font-size: 1.3rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fire);
    animation: fadeInUp 1s ease-out 1s both;
    cursor: pointer;
}

.nk-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        var(--nk-fire-orange),
        transparent
    );
    transition: 0.5s;
}

.nk-cta-button:hover::before {
    left: 100%;
}

.nk-cta-button:hover {
    background: var(--nk-blood-red);
    box-shadow: 
        0 0 30px rgba(138, 3, 3, 0.8),
        0 0 60px rgba(255, 107, 53, 0.6),
        inset 0 0 20px rgba(255, 107, 53, 0.4);
    transform: translateY(-3px);
    border-color: var(--nk-fire-orange);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   PARALLAX DE CALAVERAS FLOTANTES
   ============================================ */
.nk-skull-parallax {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
    z-index: 5;
    will-change: transform;
}

.skull-1 {
    top: 15%;
    left: 5%;
    width: 120px;
    animation: floatSkull 8s ease-in-out infinite;
}

.skull-2 {
    top: 60%;
    right: 8%;
    width: 100px;
    animation: floatSkull 10s ease-in-out infinite reverse;
}

.skull-3 {
    bottom: 15%;
    left: 10%;
    width: 80px;
    animation: floatSkull 7s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes floatSkull {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

/* ============================================
   SECCIÓN DE SERVICIOS - TARJETAS 3D
   ============================================ */
.nk-services-section {
    padding: 8rem 2rem;
    position: relative;
    background: linear-gradient(180deg, var(--nk-black) 0%, var(--nk-smoke) 50%, var(--nk-black) 100%);
}

.nk-section-title {
    text-align: center;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.nk-section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--nk-blood-red), 
        var(--nk-fire-orange), 
        var(--nk-blood-red), 
        transparent
    );
    animation: flameLine 3s ease-in-out infinite;
}

@keyframes flameLine {
    0%, 100% { opacity: 0.5; filter: brightness(1); }
    50% { opacity: 1; filter: brightness(1.5); }
}

.nk-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    perspective: 1000px;
}

.nk-service-card {
    position: relative;
    background: var(--nk-metal-gray);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    transform-style: preserve-3d;
    transition: var(--transition-fire);
    border: 2px solid transparent;
    overflow: hidden;
}

.nk-service-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--nk-blood-red), 
        var(--nk-fire-orange), 
        var(--nk-dark-gold),
        var(--nk-fire-orange),
        var(--nk-blood-red)
    );
    background-size: 400% 400%;
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nk-service-card:hover::before {
    opacity: 1;
}

.nk-service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nk-metal-gray);
    border-radius: 13px;
    margin: 2px;
    z-index: -1;
}

.nk-service-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    position: relative;
    transition: var(--transition-fire);
}

.nk-service-card:hover .nk-service-icon {
    transform: translateY(-10px) scale(1.1);
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.8));
}

.nk-service-card h3 {
    font-size: 2rem;
    color: var(--nk-fire-orange);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.nk-service-card p {
    color: #b0b0b0;
    line-height: 1.8;
    font-size: 1.1rem;
}

.nk-service-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(138, 3, 3, 0.4),
        inset 0 0 40px rgba(255, 107, 53, 0.1);
}

/* Efecto de llamas en hover */
.nk-flame-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        transparent,
        var(--nk-fire-orange),
        var(--nk-blood-red),
        var(--nk-fire-orange),
        transparent
    );
    opacity: 0;
    transition: opacity 0.4s;
    filter: blur(8px);
}

.nk-service-card:hover .nk-flame-effect {
    opacity: 1;
    animation: flameFlicker 0.5s ease-in-out infinite;
}

@keyframes flameFlicker {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* ============================================
   PORTFOLIO CON EFECTO DISTORSIÓN
   ============================================ */
.nk-portfolio-section {
    padding: 8rem 2rem;
    background: var(--nk-black);
}

.nk-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.nk-portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16/10;
    cursor: pointer;
}

.nk-portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.nk-portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(138, 3, 3, 0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s;
}

.nk-portfolio-item:hover .nk-portfolio-overlay {
    opacity: 1;
}

.nk-portfolio-item:hover img {
    transform: scale(1.1);
}

/* Efecto de distorsión en hover */
.nk-portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 107, 53, 0.3), 
        transparent
    );
    transition: left 0.6s;
    z-index: 2;
    pointer-events: none;
}

.nk-portfolio-item:hover::before {
    left: 100%;
}

.nk-portfolio-title {
    font-family: var(--font-gothic);
    font-size: 1.8rem;
    color: #fff;
    text-transform: uppercase;
    transform: translateY(20px);
    transition: transform 0.4s;
}

.nk-portfolio-item:hover .nk-portfolio-title {
    transform: translateY(0);
}

/* ============================================
   FORMULARIO DE CONTACTO CON LLAMAS
   ============================================ */
.nk-contact-section {
    padding: 8rem 2rem;
    background: linear-gradient(180deg, var(--nk-smoke) 0%, var(--nk-black) 100%);
    position: relative;
}

.nk-contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.nk-contact-form {
    background: var(--nk-metal-gray);
    padding: 4rem;
    border-radius: 20px;
    position: relative;
    border: 2px solid var(--nk-blood-red);
    box-shadow: 
        0 0 40px rgba(138, 3, 3, 0.3),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
}

.nk-form-group {
    margin-bottom: 2.5rem;
    position: relative;
}

.nk-form-label {
    display: block;
    font-family: var(--font-gothic);
    color: var(--nk-fire-orange);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nk-form-input,
.nk-form-textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--nk-black);
    border: 2px solid var(--nk-metal-gray);
    color: #fff;
    font-family: var(--font-body);
    font-size: 1.1rem;
    border-radius: 8px;
    transition: var(--transition-fire);
    outline: none;
}

.nk-form-input:focus,
.nk-form-textarea:focus {
    border-color: var(--nk-fire-orange);
    box-shadow: 
        0 0 20px rgba(255, 107, 53, 0.4),
        inset 0 0 10px rgba(138, 3, 3, 0.2);
}

/* Efecto de llamas en los inputs */
.nk-form-input:focus + .nk-input-flame,
.nk-form-textarea:focus + .nk-input-flame {
    opacity: 1;
    animation: inputFlame 2s ease-in-out infinite;
}

.nk-input-flame {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 30px;
    background: radial-gradient(ellipse at center, 
        var(--nk-fire-orange) 0%, 
        var(--nk-blood-red) 50%, 
        transparent 70%
    );
    filter: blur(15px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

@keyframes inputFlame {
    0%, 100% { 
        transform: translateX(-50%) scaleY(1);
        opacity: 0.6;
    }
    50% { 
        transform: translateX(-50%) scaleY(1.3);
        opacity: 1;
    }
}

.nk-form-textarea {
    min-height: 150px;
    resize: vertical;
}

.nk-submit-button {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--nk-blood-red) 0%, var(--nk-lava) 100%);
    border: none;
    color: #fff;
    font-family: var(--font-gothic);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fire);
}

.nk-submit-button::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.6s;
}

.nk-submit-button:hover::before {
    left: 100%;
}

.nk-submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(138, 3, 3, 0.6),
        0 0 60px rgba(255, 107, 53, 0.5);
}

/* ============================================
   NAVEGACIÓN Y MENÚ
   ============================================ */
#main-header {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--nk-blood-red);
    box-shadow: 0 5px 30px rgba(138, 3, 3, 0.4);
}

#top-menu li a {
    font-family: var(--font-gothic);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e0e0e0 !important;
    position: relative;
    transition: var(--transition-fire);
}

#top-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--nk-fire-orange), var(--nk-blood-red));
    transition: width 0.4s;
}

#top-menu li a:hover {
    color: var(--nk-fire-orange) !important;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
}

#top-menu li a:hover::after {
    width: 100%;
}

/* ============================================
   EFECTOS DE PARTÍCULAS DE FUEGO
   ============================================ */
.nk-fire-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.nk-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--nk-fire-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--nk-fire-orange);
    animation: particleRise 4s infinite;
    opacity: 0;
}

@keyframes particleRise {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(1.5);
    }
}

/* ============================================
   FOOTER INFERNA
   ============================================ */
#main-footer {
    background: var(--nk-black);
    border-top: 3px solid var(--nk-blood-red);
    padding: 4rem 2rem 2rem;
    position: relative;
}

#main-footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 40px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0v80c75-20,200-40,300-20s200,60,300,40 200-60,300-40 225,0,300,20V0H0z" fill="%238a0303" opacity="0.5"/></svg>');
    background-size: cover;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-widget h4 {
    color: var(--nk-fire-orange);
    font-family: var(--font-gothic);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-widget a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    margin-bottom: 0.8rem;
}

.footer-widget a:hover {
    color: var(--nk-fire-orange);
}

.et-social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.et-social-icon a {
    color: var(--nk-metal-gray);
    font-size: 1.8rem;
    transition: var(--transition-fire);
}

.et-social-icon a:hover {
    color: var(--nk-fire-orange);
    transform: translateY(-5px) scale(1.2);
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.8);
}

#footer-bottom {
    background: var(--nk-smoke);
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    border-top: 1px solid var(--nk-metal-gray);
}

#footer-info {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .nk-services-grid,
    .nk-portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nk-hero-title::before,
    .nk-hero-title::after {
        display: none;
    }
    
    .nk-contact-form {
        padding: 2rem 1.5rem;
    }
    
    .nk-skull-parallax {
        display: none;
    }
    
    #top-menu {
        display: none;
    }
    
    .nk-services-grid,
    .nk-portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .nk-cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    .nk-service-card {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   ANIMACIONES ADICIONALES
   ============================================ */
.nk-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.nk-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto de distorsión térmica */
.nk-heat-distortion {
    position: relative;
}

.nk-heat-distortion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 0;
    transition: opacity 0.4s;
    filter: blur(2px);
    animation: heatWave 0.5s ease-in-out infinite;
}

.nk-heat-distortion:hover::before {
    opacity: 0.3;
}

@keyframes heatWave {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--nk-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--nk-blood-red), var(--nk-fire-orange));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--nk-fire-orange), var(--nk-dark-gold));
}

/* Selection personalizada */
::selection {
    background: var(--nk-blood-red);
    color: #fff;
}

::-moz-selection {
    background: var(--nk-blood-red);
    color: #fff;
}