/* static/css/web_layout/base.css */

      /* ================== VARIABLES ======================== */
    :root {
        --color-primary: #eeb914;   /* amarillo header */
        --color-secondary: #3b9344; /* verde header */
        --color-dark: #000;         /* negro - topBar*/
        --color-light: #fff;        /* blanco - letras hero*/
        --color-bg: #1a1a1a;        /* fondo cards */
        --color-bg-alt: #000000;    /* fondo alternativo */
    }

    /* ================== CUSTOM FONT ============================ */
    @font-face {
        font-family: 'EvilEmpire';
        src: url('/static/fonts/evil_empire.otf') format('opentype');
        font-weight: normal;
        font-style: normal;
    }

    body {
        font-family: 'EvilEmpire', sans-serif;
        background-color: var(--color-bg);
        background-image: radial-gradient(circle, var(--color-bg-alt) 0%, var(--color-bg) 100%);
        padding-top: 0;
        margin: 0;
        overflow-x: hidden;
    }
    body.diseno_fondo {
        background-color: #1a1a1a;
        background-size: auto !important; /* Tamaño original */
        background-position: center center !important;
        background-repeat: repeat !important; /* Se repite */
        background-attachment: fixed;
        transition: background-image 0.5s ease-in-out;
        min-height: 100vh;
    }

    /* Para dispositivos móviles */
    @media (max-width: 768px) {
        body.diseno_fondo {
            background-attachment: scroll !important;
            background-size: auto !important;
            background-repeat: repeat !important;
        }
    }

    /* Para pantallas muy pequeñas */
    @media (max-width: 480px) {
        body.diseno_fondo {
            background-size: auto !important; /* Mantener auto, no cover */
            background-repeat: repeat !important;
        }
        
        body {
            min-height: 100vh;
            min-width: 320px;
        }
    }

    /* ================== HEADER STICKY ========================== */
    /* Navbar sticky */
    header {
        position: sticky; /* hace que el header se quede fijo */
        top: 0;           /* posición desde el top */
        z-index: 3000;    /* encima de otros elementos */
        width: 100%;
    }

    /* Opcional: agregar sombra para resaltar cuando se hace scroll */
    header.sticky-shadow {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
        transition: box-shadow 0.3s ease;
    }

    /* ================== HEADER LOGO ========================== */
        .header-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 120px;
        width: auto;
        z-index: 2000;
        pointer-events: auto;
        transition: max-height 0.5s ease, transform 0.3s ease;
        filter: drop-shadow(0 0 10px rgba(238, 185, 20, 0.5));
    }

            /* Animación de pulsación igual que en mantenimiento */
        @keyframes pulse { 
            0% { transform: translate(-50%, -50%) scale(1); } 
            50% { transform: translate(-50%, -50%) scale(1.05); } 
            100% { transform: translate(-50%, -50%) scale(1); } 
        }

        .pulse { 
            animation: pulse 2s infinite; 
        }

        /* Efecto hover para escalar (como el logo secundario en mantenimiento) */
        .header-logo:hover { 
            transform: translate(-50%, -50%) scale(1.08); 
            filter: drop-shadow(0 0 15px rgba(238, 185, 20, 0.7));
        }

        /* Ajustes responsive */
        @media (max-width: 991px) {
            .header-logo {
                max-height: 150px;
                top: 60%;
            }
        }

        @media (max-width: 576px) {
            .header-logo {
                max-height: 120px;
            }
        }

        @media (max-width: 400px) {
            .header-logo {
                max-height: 100px;
            }
        }

    /* ================== ARTIST HEADER DROPDOWN ====================== */
    .artist-dropdown-wrapper,
    .artist-dropdown-wrapper-mobile {
        position: relative;
        display: inline-block;
    }

    .artist-dropdown-wrapper {
        left: 1rem; /* espacio lateral desktop */
    }

    .artist-dropdown-toggle,
    .artist-dropdown-toggle-mobile {
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

    /* Menús ocultos inicialmente */
    .artist-dropdown-menu,
    .artist-dropdown-menu-mobile {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: black;
        padding: 0.5rem 1rem;
        border: 1px solid var(--color-primary);
        border-radius: 4px;
        z-index: 2000;
        min-width: 200px;
        text-align: center;
    }

    /* Menús abiertos */
    .artist-dropdown-menu.show,
    .artist-dropdown-menu-mobile.show {
        max-height: 500px; /* ajusta según el contenido */
        opacity: 1;
    }

    .artist-dropdown-menu a,
    .artist-dropdown-menu-mobile a {
        display: block;
        color: var(--color-primary);
        text-decoration: none;
        margin: 0.3rem 0;
        transition: color 0.2s;
    }

    .artist-dropdown-menu a:hover,
    .artist-dropdown-menu-mobile a:hover {
        color: var(--color-secondary);
    }

    /* ================== ARTIST MOBILE DROPDOWN CENTRADO ====================== */
    .artist-dropdown-wrapper-mobile {
        display: flex;
        justify-content: center; /* centra horizontalmente */
        width: 100%;
        margin-top: 0.5rem;
        text-align: center;
    }

    .artist-dropdown-toggle-mobile {
        justify-content: center; /* centra el toggle */
        font-weight: bold;
    }

    .artist-dropdown-menu-mobile {
        left: 50%;                 /* posición centrada */
        transform: translateX(-50%);
    }

    /* ================== NAVBAR CONTAINER ======================== */
    .navbar-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* ================== NUEVO: CONTENEDOR LOGO + BOTÓN ================= */
    .navbar-header-wrapper {
        display: flex;
        justify-content: center; /* centra horizontalmente */
        align-items: center;     /* centra verticalmente */
        width: 100%;
        height: 100%;
        position: relative;       /* necesario para otros elementos dentro */
    }

    .navbar-header-wrapper .navbar-brand {
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2000;
    }


    .navbar-header-wrapper .navbar-toggler {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2100;
        border: 1px solid var(--color-primary);
        padding: 0.25rem 0.5rem;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(238, 185, 20, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
    /* ================== DESKTOP STYLES ======================== */
    @media (min-width: 992px) {
        .desktop-menu-left {
            position: absolute;
            left: 1rem; /* CAMBIO: de -4rem a 1rem */
            display: flex !important;
            align-items: center;
            height: 100%;
            gap: 1rem;
        }

        .desktop-menu-right {
            position: absolute;
            right: 1rem; /* CONSISTENCIA: mismo valor que izquierda */
            display: flex !important;
            align-items: center;
            height: 100%;
            gap: 1rem;
        }

        .navbar-toggler {
            display: none;
        }
    }
    

    /* ================== TOP BAR ================================ */
    .top-bar {
        background-color: var(--color-dark);
        color: var(--color-light);
        padding: 0.5rem 0;
        width: 100%;
        position: relative;
        z-index: 1000;
        border-top: 2px solid var(--color-secondary);
    }

    .top-bar-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }

    .top-bar-message {
        font-weight: bold;
        color: var(--color-light);
        overflow: hidden;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
        font-size: 1.2rem;
        position: relative;
    }

    .top-bar-message span {
        display: inline-block;
        padding-left: 100%;
        animation: scroll 18S linear infinite; /* Un poco más lento */
        will-change: transform;
        backface-visibility: hidden;
        -webkit-font-smoothing: antialiased;
    }

    @keyframes scroll {
        0% { 
            transform: translateX(0); 
        }
        100% { 
            transform: translateX(-100%); 
        }
    }

    .top-bar-contact {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .top-bar a {
        color: var(--color-secondary);
        text-decoration: none;
        margin-left: 0.5rem;
        transition: all 0.3s ease;
        white-space: nowrap;
        font-size: 1.1rem;
    }

    .top-bar a:hover {
        color: var(--color-primary);
        transform: translateY(-2px);
    }

    /* Para WebKit browsers */
    @supports (-webkit-backface-visibility: hidden) {
        .top-bar-message span {
            -webkit-backface-visibility: hidden;
            -webkit-transform: translateZ(0);
        }
    }

    /* dropdown - artistas */

    .artist-type-option {
    cursor: pointer;
    font-size: 25px;
    color: white;
    }

    .artist-type-option.active {
        color: var(--color-secondary);
        text-decoration: underline;
    }


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

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

.hero-section {
    position: relative;
    width: 100%;
    height: 65vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
    color: var(--color-light);
    max-height: 700px;
    background-color: var(--color-dark); /* Fondo negro para los espacios */
}


.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain; /* CAMBIO CLAVE: muestra imagen completa */
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    background-color: var(--color-dark); /* Fondo negro */
}


/* Para imágenes específicas de personas (anilladores) */
.hero-section.artist-hero .hero-bg {
    background-position: center 25%; /* Ajuste más fino para personas */
}

/* Para videos */
.hero-section video.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%; /* Igual ajuste para videos */
}

/* Hero content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
}

.hero-content h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--color-light);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--color-light);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* ================== AJUSTES ESPECÍFICOS PARA HERO DE PERSONAS ============= */
@media (max-width: 991px) {
    .hero-section.artist-hero {
        height: 50vh;
    }
    .hero-section.artist-hero .hero-bg {
        background-position: center 20%;
    }
}

@media (max-width: 768px) {
    .hero-section.artist-hero {
        height: 45vh;
    }
    .hero-section.artist-hero .hero-bg {
        background-position: center 15%;
    }
}

@media (max-width: 576px) {
    .hero-section.artist-hero {
        height: 40vh;
    }
    .hero-section.artist-hero .hero-bg {
        background-position: center 10%;
    }
}


/* ================== AJUSTES RESPONSIVOS PARA HERO =========================== */
@media (min-width: 992px) {
    /* Desktop */
    .hero-section {
        height: 65vh;
        max-height: 700px; /* más espacio vertical */
    }
    .hero-bg {
        object-position: center center; /* ajusta recorte */
    }
}

@media (min-width: 1200px) {
    /* Pantallas muy grandes */
    .hero-section {
        height: 60vh;
        max-height: 900px;
    }
}

@media (max-width: 991px) {
    /* Tablet */
    .hero-section {
        height: 50vh;
        max-height: 500px;
    }
}

@media (max-width: 576px) {
    /* Móvil */
    .hero-section {
        height: 35vh;
        max-height: 400px;
    }
}


    /* ================== HEADER Y NAVBAR ======================== */
    .nav-container {
        padding: 1.5rem 0;     /* Tamaño del navbar header */
    }

    .title-header {
        font-size: clamp(1.5rem, 4vw, 2.8rem);
        color: var(--color-secondary);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        letter-spacing: 2px;
        margin: 0;
        position: relative;
        display: inline-block;
        white-space: nowrap;
        text-align: center;
        max-width: 100%;
    }

    .title-header::before,
    .title-header::after {
        content: "";
        display: inline-block;
        width: clamp(16px, 3vw, 50px);
        height: clamp(16px, 3vw, 50px);
        margin: 0 0.5rem;
        background-image: url("{% static 'logo/fav_ico/favicon.png' %}");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        position: relative;
        top: 5px;
    }

    .menu-link {
        font-size: 1.8rem;
        transition: all 0.3s ease;
        color: var(--color-primary);
        position: relative;
        padding: 0.5rem 0.8rem;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
        white-space: nowrap;
        display: block;
        text-align: center;
        text-decoration: none; /* <--- quitamos underline a paginas */
    }

    .menu-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: var(--color-secondary);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .menu-link:hover {
        color: var(--color-light);
        transform: translateY(-3px);
    }

    .menu-link:hover::after {
        width: 80%;
    }

    .desktop-menu-left,
    .desktop-menu-right {
        display: flex;
        align-items: center;
    }

    main {
        min-height: 50vh;
        padding: 0.5rem 0;
    }

    .main-content {
        background-color: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    /* ================== FOOTER ================================ */
    footer {
        background-color: var(--color-dark);
        padding: 0.5rem 0;
        border-top: 2px solid var(--color-secondary);
    }

    footer h5 {
        color: var(--color-primary);
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    footer a {
        color: var(--color-primary);
        text-decoration: none;
        transition: all 0.3s ease;
    }

    footer a:hover {
        color: var(--color-secondary);
        transform: translateX(3px);
    }

    .footer-logo {
        max-height: 70px;
    }

    footer p,
    footer li {
        color: var(--color-light);
        font-size: 0.95rem;
    }

    footer i {
        color: var(--color-secondary);
        margin-right: 6px;
    }

    footer hr {
        border: none;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-secondary), var(--color-primary), transparent);
        margin: 1.5rem 0;
    }

    .footer-logo-secundario {
        max-height: 150px;       /* un tamaño más equilibrado */
        width: auto;
        display: block;
    }

    .slogan-text {
        font-size: 0.9rem;
        color: var(--color-light);
        text-align: center;
    }

    /* ================== RESPONSIVE MEJORADO ============================ */
    @media (min-width: 992px) {
        .desktop-menu-left,
        .desktop-menu-right {
            display: flex !important;
            flex: 1;
        }

        .desktop-menu-right {
            justify-content: flex-end;
        }

        .navbar-toggler {
            display: none;
        }

        #navbarContent {
            display: none !important;
        }
        
    }

    @media (max-width: 991px) {
        .header-logo {
            max-height: 150px;
            top: 60%;
        }
        
        .top-bar-content {
            flex-direction: column;
            gap: 0.25rem;
        }

        .top-bar-message {
            font-size: 1.1rem; /* AJUSTE RESPONSIVO */
        }

        .top-bar-contact {
            justify-content: center;
            width: 100%;
            flex-wrap: wrap;
            gap: 0.3rem;
        }

        .top-bar-contact a {
            margin-left: 0;
            font-size: 1rem; /* AJUSTE RESPONSIVO */
        }

        .top-bar-message {
            order: -1;
            width: 100%;
            text-align: center;
            margin-bottom: 0.25rem;
        }

        .title-header {
            font-size: 2.2rem;
            margin-bottom: 1rem;
        }

        .title-header::before,
        .title-header::after {
            margin: 0 0.4rem;
        }

        .desktop-menu-left,
        .desktop-menu-right {
            display: none !important;
        }

        #navbarContent {
            width: 100%;
            margin-top: 1.5rem;
        }
        
        .hero-section {
            height: 45vh;
        }
        
        .hero-content h1 {
            font-size: 2.5rem;
        }
        
        .hero-content p {
            font-size: 1.2rem;
        }
        
        .menu-link {
            font-size: 1.6rem;
            padding: 0.4rem 0.6rem;
        }
    }

    @media (max-width: 768px) {
        .title-header {
            font-size: 1.8rem;
        }

        .menu-link {
            font-size: 1.4rem;
            padding: 0.4rem 0.6rem;
        }

        .top-bar a {
            font-size: 0.95rem; /* AJUSTE RESPONSIVO */
        }

        .top-bar-message {
            font-size: 1rem; /* AJUSTE RESPONSIVO */
        }

        .main-content {
            padding: 1.5rem;
        }
        
        .hero-section {
            height: 40vh;
        }
        
        .hero-content h1 {
            font-size: 2rem;
        }
        
        .hero-content p {
            font-size: 1.1rem;
        }
        
        footer h5 {
            font-size: 1.1rem;
        }
        
        footer p,
        footer li {
            font-size: 0.9rem;
        }
    }

    @media (max-width: 576px) {
        .title-header {
            font-size: 1.5rem;
        }

        .title-header::before,
        .title-header::after {
            width: 16px;
            height: 16px;
            margin: 0 0.2rem;
        }

        .top-bar a {
            font-size: 0.9rem; /* AJUSTE RESPONSIVO */
        }

        .top-bar-message {
            font-size: 0.95rem; /* AJUSTE RESPONSIVO */
        }

        .top-bar-message span {
            font-size: 0.9rem;
        }

        .main-content {
            padding: 1rem;
        }

        .menu-link {
            font-size: 1.2rem;
            padding: 0.3rem 0.5rem;
        }
        
        .hero-section {
            height: 35vh;
        }
        
        .hero-content h1 {
            font-size: 1.8rem;
        }
        
        .hero-content p {
            font-size: 1rem;
        }
        
        .header-logo {
            max-height: 120px;
        }
        
        .footer-logo-secundario {
            max-height: 80px;
        }
        
        footer h5 {
            font-size: 1rem;
        }
        
        footer p,
        footer li {
            font-size: 0.85rem;
        }
    }
    
    /* Para pantallas muy pequeñas */
    @media (max-width: 400px) {
        .title-header {
            font-size: 1.3rem;
        }
        
        .menu-link {
            font-size: 1.1rem;
            padding: 0.25rem 0.4rem;
        }
        
        .top-bar a {
            font-size: 0.85rem; /* AJUSTE RESPONSIVO */
        }
        
        .top-bar-message {
            font-size: 0.9rem; /* AJUSTE RESPONSIVO */
        }
        
        .top-bar-message span {
            font-size: 0.8rem;
        }
        
        .hero-section {
            height: 30vh;
        }
        
        .hero-content h1 {
            font-size: 1.6rem;
        }
        
        .header-logo {
            max-height: 100px;
        }
    }