/*
Theme Name: Danilion Ultra Light
Theme URI: https://danilion.com
Author: Gemini
Description: Tema One-Page ultra ligero para artista urbano.
Version: 2.1 (Fix Menú Móvil Hamburguesa)
License: GNU General Public License v2 or later
Text Domain: danilion-theme
*/

/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark: #050505;
    --bg-panel: #111111;
    --text-main: #f0f0f0;
    --text-muted: #888888;
    --accent: #ff3300;
    
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-display: 'Anton', 'Impact', sans-serif;
    
    --container-width: 1200px;
    --section-pad: 40px 20px; 
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }

/* =========================================
   2. TIPOGRAFÍA
   ========================================= */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 1px;
}
h2 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.5rem; }
p { margin-bottom: 1rem; font-size: 1.1rem; color: #ccc; }
.text-outline { color: transparent; -webkit-text-stroke: 1px #fff; opacity: 0.8; }

/* =========================================
   3. HEADER & LOGO (ESTRUCTURA GENERAL)
   ========================================= */
.site-header {
    position: absolute; top: 0; left: 0; width: 100%;
    padding: 20px 5%; z-index: 1000;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    transition: 0.3s background;
}

/* Logo */
.site-branding .custom-logo { max-width: 160px; max-height: 70px; width: auto; height: auto; object-fit: contain; }
.site-branding a {
    font-family: var(--font-display); font-size: 2rem; color: #fff;
    letter-spacing: 2px; text-shadow: 0 0 10px rgba(255, 51, 0, 0.5);
}

/* Menú Desktop */
.main-navigation ul { display: flex; gap: 30px; }
.main-navigation a { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.main-navigation a:hover { color: var(--accent); text-shadow: 0 0 8px var(--accent); }

/* Ocultar elementos móviles en escritorio */
.menu-toggle, .mobile-cta-btn { display: none; }

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    height: 80vh; min-height: 500px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; background-size: cover; background-position: center;
    background-image: linear-gradient(to bottom, rgba(5,5,5,0.3) 0%, rgba(5,5,5,1) 98%); 
}
.hero-content { text-align: center; z-index: 2; display: flex; flex-direction: column; align-items: center; }

.hero-title {
    font-size: clamp(5rem, 18vw, 14rem); line-height: 0.8; color: #fff; mix-blend-mode: overlay; transition: all 0.4s ease;
}
.hero-title span {
    display: block; color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,0.85);
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.3)); transition: all 0.4s ease;
}
/* Hover Desktop */
.hero-section:hover .hero-title span { -webkit-text-stroke: 2px #fff; filter: drop-shadow(0 0 15px rgba(255,255,255,0.9)); transform: scale(1.02); }

/* Iconos Sociales Hero */
.hero-social-hidden {
    display: flex; justify-content: center; gap: 20px; margin-top: 30px; opacity: 0;
    transform: translateY(20px); transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-section:hover .hero-social-hidden { opacity: 1; transform: translateY(0); }
.hero-social-hidden a svg { width: 32px; height: 32px; fill: rgba(255,255,255,0.7); transition: 0.3s; }
.hero-social-hidden a:hover svg { fill: #fff; transform: scale(1.2); filter: drop-shadow(0 0 8px #fff); }

/* =========================================
   5. SECCIONES GENERALES
   ========================================= */
section { padding: var(--section-pad); }
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

.bio-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 768px) { .bio-grid { grid-template-columns: 1fr 1fr; } }

.bio-image-container img { border-radius: 4px; filter: grayscale(100%) contrast(1.2); transition: filter 0.5s ease; }
.bio-image-container img:hover { filter: grayscale(0%) contrast(1); }
.bio-main-btn { margin-top: 25px; }

/* =========================================
   6. DISCOGRAFÍA, SHOWS & FOOTER
   ========================================= */
.music-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.track-card { background: #000; border: 1px solid #222; cursor: pointer; transition: all 0.3s ease; }
.track-card:hover { border-color: var(--accent); transform: translateY(-5px); }
.track-card > div { position: relative; overflow: hidden; }
.track-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; opacity: 0.9; transition: 0.6s ease; }
.track-card:hover img { transform: scale(1.1); opacity: 0.5; }
.track-card h3 { padding: 15px; font-size: 1.1rem; color: #fff; background: #000; margin: 0; border-top: 1px solid #111; }

.play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.5);
    width: 60px; height: 60px; background-color: var(--accent); border-radius: 50%; opacity: 0; transition: 0.4s;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 0 25px rgba(255, 69, 0, 0.6); z-index: 10; pointer-events: none;
}
.play-btn::after {
    content: ''; display: block; width: 0; height: 0; border-style: solid;
    border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff; margin-left: 4px;
}
.track-card:hover .play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.btn-outline {
    display: inline-block; padding: 12px 30px; border: 2px solid var(--accent);
    color: var(--accent); font-weight: bold; text-transform: uppercase; letter-spacing: 2px;
}
.btn-outline:hover { background: var(--accent); color: #000; box-shadow: 0 0 20px var(--accent); }

.shows-list li {
    font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.5rem); padding: 20px 0; border-bottom: 1px solid #222; color: #666; transition: color 0.3s; text-align: center;
}
.shows-list li:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); border-bottom-color: var(--accent); }
.shows-list li a { text-decoration: none; color: inherit; display: block; width: 100%; height: 100%; }

.site-footer { background-color: var(--bg-panel); padding: 60px 20px; border-top: 1px solid #222; }
.social-links { margin-top: 60px; text-align: center; display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.social-links a svg { transition: transform 0.3s ease, fill 0.3s ease; color: #888; }
.social-links a:hover svg { color: #fff; transform: scale(1.2); filter: drop-shadow(0 0 5px var(--accent)); }

/* =========================================
   7. MENÚ MÓVIL (CONFIGURACIÓN ESTRICTA)
   ========================================= */
@media (max-width: 768px) {
    
    /* CABECERA MÓVIL: FORZAR FILA HORIZONTAL */
    .site-header {
        flex-direction: row !important; /* Importante para que no se apilen */
        justify-content: space-between !important;
        align-items: center !important;
        padding: 15px 20px;
        background: transparent; /* Transparente para ver el hero detrás */
        height: 70px;
    }

    /* 1. BOTÓN HAMBURGUESA (IZQUIERDA) */
    .menu-toggle {
        display: flex; flex-direction: column; justify-content: space-between;
        width: 30px; height: 20px;
        background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1002;
    }
    .menu-toggle .bar {
        width: 100%; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s;
    }
    
    /* Animación X */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* 2. LOGO (CENTRO ABSOLUTO) */
    .site-branding {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        display: block !important;
    }
    .site-branding .custom-logo { max-height: 40px; width: auto; }
    .site-branding a { font-size: 1.5rem; }

    /* 3. BOTÓN SPOTIFY (DERECHA) */
    .mobile-cta-btn { display: block; z-index: 1001; }
    .mobile-cta-btn svg { width: 32px; height: 32px; filter: drop-shadow(0 0 5px rgba(29, 185, 84, 0.5)); }

    /* 4. MENÚ DESPLEGABLE (OVERLAY) */
    .main-navigation {
        position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: rgba(5, 5, 5, 0.98); /* Fondo casi negro */
        backdrop-filter: blur(10px);
        display: flex; align-items: center; justify-content: center;
        transform: translateX(-100%); /* Oculto izquierda */
        transition: transform 0.4s ease;
        z-index: 1000;
    }
    
    /* Clase que añade JS al body para abrir */
    body.menu-open .main-navigation { transform: translateX(0); }
    
    .main-navigation ul { flex-direction: column; text-align: center; gap: 40px; }
    .main-navigation a { font-size: 2rem; color: #fff; }

    /* AJUSTES GENERALES MÓVIL */
    .hero-title { font-size: 18vw; margin-top: 0; line-height: 0.85; }
    .hero-social-hidden { opacity: 1 !important; transform: translateY(0) !important; margin-top: 25px; }
    .play-btn { width: 50px; height: 50px; opacity: 0.8; }
    .shows-list li { font-size: 1.5rem; }
    
    /* Bio Grid */
    .bio-grid { display: flex; flex-direction: column; }
    .bio-text-container { order: 1; text-align: center; margin-bottom: 40px; }
    .bio-image-container { order: 2; }
    .bio-text-container h2 { font-size: 2.5rem; margin-bottom: 20px; }
    .mobile-bio-btn { display: inline-block; }
}

/* =========================================
   8. BLOG, PAGES & SINGLE POSTS (OPTIMIZED)
   ========================================= */
.blog-header { padding: 120px 20px 40px; text-align: center; background: linear-gradient(to bottom, #000, #0a0a0a); }
.blog-header .page-title { font-size: 4rem; color: #fff; }
.blog-header .page-title span { color: var(--accent); }
.blog-header p { max-width: 600px; margin: 0 auto; color: #888; }
.blog-container { padding: 60px 20px; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px; }
.blog-card { background: #111; border: 1px solid #222; transition: 0.3s; }
.blog-card-img { width: 100%; height: 250px; object-fit: cover; display: block; border-radius: 4px 4px 0 0; }
.blog-content { padding: 25px; }
.blog-date { font-size: 0.8rem; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; font-weight: bold; }
.blog-title { font-size: 1.5rem; margin-bottom: 15px; }
.blog-title a { text-decoration: none; color: #fff; }
.blog-excerpt { color: #bbb; font-size: 0.95rem; margin-bottom: 20px; }
.blog-read-more { color: #fff; text-decoration: underline; font-weight: bold; }
.blog-nav { margin-top: 50px; text-align: center; }
.blog-empty { text-align: center; }

.page-main { padding-top: 140px; min-height: 80vh; }
.single-main { padding-top: 100px; }
.page-entry-header { text-align: center; margin-bottom: 50px; }
.single-entry-header { text-align: center; max-width: 800px; margin: 0 auto 40px; padding: 0 20px; }
.page-entry-title { font-size: clamp(2.5rem, 5vw, 4.5rem); color: #fff; text-transform: uppercase; }
.single-entry-title { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 20px; }
.title-separator { width: 60px; height: 4px; background: var(--accent); margin: 20px auto 0; }
.entry-content-wrapper { max-width: 800px; margin: 0 auto; }
.single-content-wrapper { font-size: 1.1rem; color: #ddd; }
.single-entry-image { max-width: 1000px; margin: 0 auto 50px; }
.single-entry-image img { width: 100%; height: auto; border-radius: 4px; }
.single-nav-back { text-align: center; margin-top: 60px; padding-bottom: 60px; }

/* =========================================
   9. FOOTER FIXES
   ========================================= */
.footer-container { text-align: center; }
.footer-heading { margin-bottom: 20px; font-size: 2rem; }
.footer-copyright { text-align: center; margin-top: 60px; font-size: 0.8rem; color: #444; }

/* =========================================
   10. FRONT PAGE FIXES
   ========================================= */
.section-title-center { text-align: center; font-size: 4rem; }
.shows-container { text-align: center; }
.shows-main-title { font-size: 4rem; }
.shows-sub-title { font-size: 2rem; letter-spacing: 5px; color: var(--accent); }

/* =========================================
   11. RECONOCIMIENTOS DESTACADOS
   ========================================= */
.reconocimientos-section {
    position: relative;
    padding: 100px 20px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    overflow: hidden;
}

.reconocimientos-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(15, 5, 20, 0.9) 0%, rgba(5, 0, 10, 0.7) 100%);
    z-index: 1;
}

.reconocimientos-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
}

.reconocimientos-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Tamaños reducidos */
    line-height: 1.1;
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    overflow-wrap: break-word; /* Evita el desbordamiento horizontal */
    word-break: break-word;
}

.reconocimientos-title span {
    color: var(--accent);
    -webkit-text-stroke: 1px transparent; /* Alineado al diseño pesado */
}

.reconocimientos-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reconocimientos-list li {
    font-family: var(--font-main);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 500;
    margin-bottom: 20px;
    padding-left: 0;
    color: #e0e0e0;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .reconocimientos-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 40px;
    }
}

/* =========================================
   13. GALERÍA AUTO-SCROLL INFINITO
   ========================================= */
.gallery-section {
    background: #000;
    padding: 0 0 80px 0;
    overflow: hidden;
}

.gallery-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    scrollbar-width: none; /* Oculta barra en Firefox */
    -ms-overflow-style: none; /* Oculta barra en IE/Edge */
}

/* Oculta barra en Chrome/Safari */
.gallery-grid::-webkit-scrollbar {
    display: none;
}

.gallery-item {
    min-width: 260px;
    height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Pantallas grandes (Desktop) */
@media (min-width: 992px) {
    .gallery-grid {
        gap: 20px;
        max-width: 1600px;
        margin: 0 auto;
    }
    .gallery-item {
        min-width: 500px;
        height: 750px;
    }
}

/* =========================================
   14. SECCIÓN VIDEOS Y MODAL (YOUTUBE)
   ========================================= */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 51, 0, 0.85); /* Accent de Danilion */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 3;
}
.play-overlay svg { margin-left: 5px; } 

.video-card:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.15);
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
}

.video-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.video-modal.is-active {
    opacity: 1;
    visibility: visible;
}
.video-modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}
.video-modal-content {
    position: relative;
    width: 95%;
    max-width: 1000px;
    z-index: 2;
    transition: max-width 0.3s ease;
}
.video-modal-close {
    position: absolute;
    top: -45px; right: 0;
    background: none; border: none;
    color: #fff; font-size: 2.5rem;
    cursor: pointer; line-height: 1; padding: 0;
    transition: color 0.2s;
}
.video-modal-close:hover { color: var(--accent); }

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    transition: padding-bottom 0.3s ease;
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: 0;
}

/* Ajustes para YouTube Shorts (Vertical 9:16) */
.video-modal-content.is-short {
    max-width: 400px;
}
.video-wrapper.is-short {
    padding-bottom: 177.77%;
}