/* ============================================================
   VARIABLES MODO OSCURO — SOLO PARA PICKS_MAIN
============================================================ */
:root {
    --picks-bg: #000000;
    --picks-bg-soft: rgba(0,0,0,0.7);
    --picks-bg-soft-2: rgba(18,18,18,0.9);
    --picks-bg-soft-3: rgba(18,18,18,0.5);

    --picks-text: #ffffff;
    --picks-text-soft: #dddddd;
    --picks-text-muted: #666666;

    --picks-border-light: rgba(255,255,255,0.1);
    --picks-border-medium: rgba(255,255,255,0.2);
    --picks-border-strong: rgba(255,255,255,0.3);

    --picks-red: #e74c3c;
    --picks-red-soft: rgba(231,76,60,0.5);

    --picks-metal: linear-gradient(135deg, #2c3e50 0%, #7f8c8d 45%, #7f8c8d 55%, #2c3e50 100%);

    --picks-shadow-strong: -8px 8px 15px rgba(0,0,0,0.5);
    --picks-shadow-soft: 0 4px 15px rgba(0,0,0,0.3);

    --picks-white-05: rgba(255,255,255,0.05);
    --picks-white-08: rgba(255,255,255,0.08);
    --picks-white-10: rgba(255,255,255,0.10);
    --picks-white-15: rgba(255,255,255,0.15);
    --picks-white-20: rgba(255,255,255,0.20);
    --picks-white-30: rgba(255,255,255,0.30);

    --picks-black-40: rgba(0,0,0,0.40);
    --picks-black-50: rgba(0,0,0,0.50);
    --picks-black-60: rgba(0,0,0,0.60);

    --picks-font: 'DM Sans', sans-serif;
}

/* ============================================================
   1. BASE Y COMUNES
============================================================ */

a, button, .card, .flip-card, .alphabet a {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

body, html { 
    margin: 0; 
    padding: 0; 
    background: var(--picks-bg) !important; 
    color: var(--picks-text); 
    font-family: var(--picks-font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;     
    flex-direction: column; 
    overflow-x: hidden;
}

#bg-main, #bg-parallax { 
    position: fixed; 
    top: -5%; 
    left: -5%; 
    width: 110%; 
    height: 110%; 
    background-size: cover; 
    background-position: center; 
    filter: brightness(0.4); 
    z-index: 1; 
    pointer-events: none; 
    background-image: var(--bg-desktop);
    transition: transform 0.2s ease-out, background-image 0.3s ease-in-out;
}

.overlay-black { 
    position: fixed; 
    inset: 0; 
    background: radial-gradient(circle, transparent 20%, var(--picks-bg) 100%); 
    z-index: 2; 
    pointer-events: none; 
}

.container, .content { 
    position: relative; 
    z-index: 3; 
    max-width: 1250px; 
    margin: 0 auto; 
    padding: 15px; 
    display: flex;
    flex-direction: column; 
    align-items: center;
    flex: 1 0 auto;
    width: 100%;
    box-sizing: border-box;
    top: 40px;
}
/* ============================================================
   2. HEADER BOX (INDEX)
============================================================ */

.header-box { 
    background: var(--picks-bg-soft-2);
    border-radius: 20px;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid var(--picks-border-light);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 80%;
    box-sizing: border-box;
}

.header-top { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 12px; 
    width: 100%; 
}

.btn-back-nav {
    text-decoration: none;
    color: var(--picks-text);
    font-size: 12px;
    padding: 0 15px;
    height: 32px;
    display: flex;
    align-items: center;
    border-radius: 20px;
    background: var(--picks-white-10);
    border: 1px solid var(--picks-white-10);
    transition: 0.3s;
    font-weight: bold;
}

.active-btn { 
    background: var(--picks-text) !important; 
    color: var(--picks-bg) !important; 
    border-color: var(--picks-text) !important; 
}

#busqueda { 
    max-width: 250px; 
    width:100%; 
    padding: 0 15px; 
    border-radius: 20px; 
    border: none; 
    font-size: 13px; 
    background: var(--picks-text); 
    color: var(--picks-bg); 
    height: 32px; 
    outline: none;
    font-family: var(--picks-font);
}

.alphabet { 
    display: flex; 
    justify-content: center; 
    gap: 4px; 
    flex-wrap: wrap; 
}

.alphabet a { 
    text-decoration: none; 
    color: var(--picks-text); 
    width: 28px; 
    height: 28px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 50%; 
    border: 1px solid var(--picks-border-light); 
    font-size: 11px; 
    background: var(--picks-white-05); 
    font-weight: bold; 
}

.alphabet a.active { 
    background: var(--picks-red); 
    border-color: var(--picks-red); 
}

/* ============================================================
   3. DETALLE ARTISTA (BOTÓN Y BIO)
============================================================ */

.artist-header { 
    position: relative; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    max-width: 600px; 
    margin: 40px auto 20px; 
}

.btn-back { 
    position: absolute; 
    top: 50% !important; 
    transform: translateY(-50%); 
    left: -25% !important;
    z-index: 999; 
    width: 45px; 
    height: 45px; 
    background: var(--picks-white-10); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: var(--picks-text); 
    border: 1px solid var(--picks-white-20); 
    backdrop-filter: blur(10px); 
    transition: 0.3s ease;
}

.btn-back:hover { 
    background: var(--picks-red); 
    border-color: var(--picks-red); 
    transform: translateY(-50%) scale(1.1); 
}

.artist-bio { 
    max-width: 850px; 
    background: var(--picks-bg-soft-3); 
    padding: 25px; 
    border-radius: 15px; 
    margin: 20px auto 40px; 
    line-height: 1.6; 
    text-align: justify; 
    backdrop-filter: blur(15px); 
    border: 1px solid var(--picks-white-08); 
    color: var(--picks-text-soft); 
    box-shadow: var(--picks-shadow-strong);
}

a.read-more, 
.footer-copy a:hover {
    color: var(--picks-red) !important;
    text-decoration: none;
}

a.read-more:hover {
    color: var(--picks-text) !important;
}

/* ============================================================
   4. TARJETAS METÁLICAS
============================================================ */

:root {
    --card-width: 220px;
    --card-height: 145px;
    --card-radius: 15px;
}

#muestra_puas.grid-puas { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 40px 15px; 
    width: 100%; 
    padding-bottom: 60px; 
}

.mirror-wrapper { 
    -webkit-box-reflect: below 2px linear-gradient(transparent 85%, var(--picks-white-20)); 
    transition: 0.4s; 
}

.mirror-wrapper:hover { 
    transform: scale(1.05); 
    z-index: 10; 
}

.card {
    width: var(--card-width); 
    height: var(--card-height); 
    border-radius: var(--card-radius); 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
    padding: 10px; 
    box-sizing: border-box; 
    overflow: hidden; 
    background: var(--picks-metal); 
    text-decoration: none; 
    box-shadow: var(--picks-shadow-strong); 
    border: 1px solid var(--picks-border-light);
}

.card::after {
    content: ""; 
    position: absolute; 
    inset: 0; 
    z-index: 5; 
    pointer-events: none; 
    opacity: 0; 
    transition: opacity 0.3s;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--picks-white-20) 0%, transparent 60%);
}

.card:hover::after { 
    opacity: 1; 
}

.card-cover {
    position: absolute; 
    inset: 0; 
    background-size: cover; 
    background-position: 50% 40%; 
    filter: grayscale(55%) brightness(0.7); 
    opacity: 0.5; 
    z-index: 1;
    -webkit-mask-image: radial-gradient(circle, black 20%, transparent 80%);
}

.inner-frame {
    position: absolute; 
    inset: 6px; 
    border: 1px solid var(--picks-white-30);
    border-radius: calc(var(--card-radius) - 2px); 
    opacity: 0.4; 
    z-index: 2;
}

.content-area { 
    position: relative; 
    z-index: 3; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    align-items: center; 
}

.logo-top-container { 
    width: 100%; 
    height: 45px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin-top: 6px !important;}

.logo-img { 
    max-width: 85%;
    max-height: 150%;
    object-fit: contain; 
    filter: drop-shadow(0px 3px 4px var(--picks-black-60)); 
}

.group-name-text { 
    color: var(--picks-text-soft); 
    text-transform: uppercase; 
    font-weight: 800; 
    font-size: 10px; 
    letter-spacing: 1px; 
    padding-bottom: 7px;
}

.watermark { 
    position: absolute; 
    right: 2px; 
    bottom: 1px; 
    font-size: 7px !important; 
    color: var(--picks-white-15); 
    font-weight: bold; 
    z-index: 6; 
}

/* ============================================================
   5. SLIDE DE PÚAS
============================================================ */

.pua-container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 15px; 
    width: 100%; 
}

.flip-card { 
    width: 150px; 
    height: 150px; 
    perspective: 1000px; 
}

.flip-card-inner { 
    position: relative; 
    width: 100%; 
    height: 100%; 
    transition: 0.6s; 
    transform-style: preserve-3d; 
}

.flip-card img { 
    width: 150px; 
    filter: contrast(115%) brightness(100%) saturate(85%) drop-shadow(0 5px 8px var(--picks-bg)); 
}

.flip-card.flipped .flip-card-inner { 
    transform: rotateY(180deg); 
}

.flip-card-front, 
.flip-card-back { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    backface-visibility: hidden; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.flip-card-back { 
    transform: rotateY(180deg); 
}

.pua-slide-container {
    width: 100%; 
    max-width: 1250px; 
    margin: 0 auto 35px; 
    overflow: hidden; 
    padding: 1px 0; 
    position: relative;
    background: var(--picks-bg-soft-3);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    border: 1px solid var(--picks-white-05);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.pua-slide-track { 
    display: flex; 
    gap: 15px;
    width: max-content; 
    animation: scrollSlide 40s linear infinite; 
}

.slide-item img { 
    width: 120px !important; 
    filter: contrast(110%) brightness(100%) drop-shadow(0 5px 10px var(--picks-black-60)); 
}

@keyframes scrollSlide { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}
/* ============================================================
   6. RESPONSIVE
============================================================ */

@media (max-width: 1100px) { 
    #muestra_puas.grid-puas { 
        grid-template-columns: repeat(3, 1fr); 
    } 
}

@media (max-width: 768px) {
    #muestra_puas.grid-puas { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 30px 10px; 
    }
    :root { 
        --card-width: 170px; 
        --card-height: 110px; 
    }
    .btn-back { 
        left: -50px !important; 
        width: 40px !important; 
        height: 40px !important; 
    }
    .artist-bio { 
        padding: 15px; 
        margin: 10px auto 30px; 
        font-size: 0.9rem; 
    }
}

@media (max-width: 480px) {
    .artist-header { 
        flex-direction: column; 
        margin-top: 15px; 
    }
    .btn-back { 
        position: relative; 
        top: 0 !important; 
        left: 0 !important; 
        transform: none !important; 
        margin-bottom: 15px; 
    }
    .container, .content { 
        padding: 10px 5px; 
    }
    .pua-container { 
        gap: 12px 4px !important; 
        justify-content: center; 
    }
    .flip-card { 
        width: 110px !important; 
        height: 110px !important; 
    }
    .flip-card img { 
        width: 105px !important; 
    }
    .bio-desktop { display: none !important; }
    .bio-mobile { display: inline !important; }
    .artist-bio {
        padding: 12px;
        font-size: 0.82rem;
        line-height: 1.4;
        text-align: left;
        margin: 10px 5px 25px;
        width: 95%;
    }
    #adminHamburger { display: block !important; }
    .admin-nav {
        display: none !important;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--picks-bg-soft);
        flex-direction: column;
        padding: 20px 0px;
        gap: 15px !important;
        border-bottom: 1px solid var(--picks-border-light);
        z-index: 10000;
        align-items: center;
    }
    .admin-nav.active { display: flex !important; }
}

.bio-mobile { display: none; }
.bio-desktop { display: inline; }

/* ============================================================
   7. FOOTER COLECCIÓN
============================================================ */

.footer-coleccion {
    background: var(--picks-black-50);
    color: var(--picks-text-muted);
    padding: 15px 0;
    text-align: center;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 10;
    width: 100%;
    margin-top: auto;
}

.footer-coleccion p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.footer-coleccion .footer-legal {
    margin-top: 5px;
    opacity: 0.7;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.footer-copy a {
    font-weight: bold;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

body.index-page, 
body.artist-detail, 
body { 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================================================
   8. GALERÍA EXTRA
============================================================ */

.extra-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 50px auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.extra-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--picks-border-light);
    background: var(--picks-bg-soft-3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--picks-shadow-soft);
}

.extra-item:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: var(--picks-red-soft);
    box-shadow: 0 8px 25px var(--picks-black-60);
    z-index: 10;
}

.extra-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.extra-item:hover img {
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .extra-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .extra-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 35px;
        padding: 0 10px;
    }
}

/* ============================================================
   9. ROTACIONES 360
============================================================ */

.rotaciones-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.rotacion-item {
    background: var(--picks-white-05);
    border: 1px solid var(--picks-border-light);
    border-radius: 15px;
    padding: 15px;
    display: inline-block;
}

.pua-360-viewer {
    position: relative;
    width: 185px;
    height: 266px;
    margin: 0 auto;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.pua-360-viewer:active { cursor: grabbing; }

.frame-360 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
    image-rendering: -webkit-optimize-contrast;
}

.frame-360.active { opacity: 1; }

@media (max-width: 600px) {
    .rotaciones-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0 5px;
    }
    .rotacion-item {
        padding: 5px;
        flex: 0 1 calc(45% - 15px);
        min-width: 160px;
    }
    .pua-360-viewer {
        width: 100%;
        height: auto;
        aspect-ratio: 185 / 266;
    }
}

/* ============================================================
   10. HEADER OSCURO (COLECCIÓN)
============================================================ */

.admin-topbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 9999 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--picks-bg-soft);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--picks-border-medium);
}

.admin-topbar-inner {
    max-width: 1200px;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-logo,
.admin-nav-link {
    color: var(--picks-text) !important;
    text-decoration: none !important;
    font-family: var(--picks-font);
    font-size: 0.95rem;
    font-weight: 500;
}

.admin-logo:hover {
    color: var(--picks-text-soft) !important;
}
.admin-nav-link:hover{
    color: var(--picks-red) !important;
}

.admin-hamburger .material-symbols-outlined {
    color: var(--picks-text) !important;
}

@media (max-width: 768px) {
    .admin-topbar {
        padding: 12px 16px !important;
        background: var(--picks-bg-soft);
        border-bottom: 1px solid var(--picks-border-medium);
    }
    .admin-nav {
        display: none !important;
        flex-direction: column;
        background: #000000eb;
        width: 100%;
        position: absolute;
        top: 64px;
        left: 0;
        z-index: 10000;
        padding: 20px 0;
        gap: 15px !important;
        border-bottom: 1px solid var(--picks-border-light);
        align-items: center;
    }
    .admin-nav.active { display: flex !important; }
    .admin-nav-link {
        width: 100%;
        padding: 14px 20px;
        border-bottom: 1px solid var(--picks-border-light);
        text-align: center;
        font-size: 1rem;
    }
}

main { padding-top: 70px !important; }


/* ============================================================
   FOOTER COLECCIÓN — LOGOS Y ESTILO
============================================================ */

.footer-coleccion .fabricantes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin: 25px auto 15px auto;
    padding: 0 10px;
}

.footer-coleccion .fabricantes a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
    transition: opacity 0.25s ease, transform 0.25s ease, filter 0.25s ease;
}

.footer-coleccion .fabricantes img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1); /* logos blancos */
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Hover → rojo usando tu variable */
.footer-coleccion .fabricantes a:hover img {
      opacity: 1;
    transform: scale(1.08);
}

.footer-coleccion .footer-copy,
.footer-coleccion .footer-legal {
    text-align: center;
    color: var(--picks-text-muted);
    margin-top: 10px;
    font-size: 14px;
}

/* ============================================================
   FOOTER — LINK CAMBIOS
============================================================ */

.site-footer a,
.footer-coleccion a.footer-link, .click-to-flip {
    color: var(--picks-text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

.site-footer a:hover,
.footer-coleccion a.footer-link:hover {
    color: var(--picks-red);
}

/* Cursor de mano en ambas caras */
.flip-card-front img,
.flip-card-back img {
    cursor: pointer !important;
    filter: contrast(115%) brightness(100%) saturate(85%) !important;
    transition: filter 0.25s ease, box-shadow 0.25s ease;
}

/* Glow rojo suave usando tu variable */
.flip-card-front img:hover,
.flip-card-back img:hover {
    filter: contrast(115%) brightness(100%) saturate(85%) drop-shadow(0 5px 8px var(--picks-red)) !important; 

}

/* Busca la regla actual del header y la dejas así (Desktop) */
.artist-header img {
    width: 100%;
    max-width: 350px; /* Limitación limpia en escritorio */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

/* ==========================================
   BLOQUE MÓVIL (Ve al final de tu CSS donde están los @media)
   ========================================== */
@media (max-width: 768px) {
    /* Forzamos el logo a un ancho máximo de 220px en teléfonos */
    .artist-header img {
        max-width: 220px !important;
    }
}

/* ============================================================
   11. ANIMACIÓN REPRODUCTOR INLINE (ROJO CORPORATIVO)
============================================================ */
@keyframes audioBounce { 
    0% { height: 3px; } 
    100% { height: 12px; } 
}
.audio-bars-animation.playing .bar:nth-child(1) { animation: audioBounce 0.5s ease-in-out infinite alternate; }
.audio-bars-animation.playing .bar:nth-child(2) { animation: audioBounce 0.3s ease-in-out infinite alternate 0.1s; }
.audio-bars-animation.playing .bar:nth-child(3) { animation: audioBounce 0.6s ease-in-out infinite alternate 0.05s; }

/* Ajuste opcional para mejorar la integración en móviles pequeños */
@media (max-width: 480px) {
    .trade-notice-box {
        font-size: 12px !important;
        padding: 6px 14px !important;
        border-radius: 20px !important;
    }
    #pua-audio-inline {
        padding: 5px 10px !important;
    }
}

/* ============================================================
   ESTILOS PARA EL LOGO DEL PANEL DE ADMINISTRACIÓN
============================================================ */

/* Contenedor del enlace del logo */
.admin-logo {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.admin-logo:hover {
    opacity: 0.85; /* Sutil efecto visual al pasar el cursor */
}

/* Imagen del logo */
.admin-logo-img {
    height: 90px;             /* Altura fija ideal para que quede alineado en la barra */
    width: auto;              /* Calcula el ancho automáticamente manteniendo la proporción */
    max-width: 100%;          /* Evita desbordamientos en pantallas pequeñas */
    object-fit: contain;      /* Asegura que la imagen se escale sin deformarse ni estirarse */
    display: block;           /* Elimina espacios en blanco residuales por debajo */
}

/* Asegura la alineación vertical en las barras superiores */
.admin-topbar-inner, 
.brand {
    display: flex;
    align-items: center;
}
.artista{
top: 1px !important;
}

@media (max-width: 768px) {
    .artista {
        /* Aquí pones los píxeles exactos que necesite el móvil */
        top: 40px !important; 
    }
    .container{
        top:60px !important;
    }
}