:root {
    --gold: #d4af37;
    --gold-light: #f7eaa8;
    --gold-dark: #b8860b;
    --cyan: #00d4ff;
    --magenta: #ff0080;
    --purple: #9d4edd;
    --dark-bg: #0a0a0a;
    --glass: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(212, 175, 55, 0.3);
}

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

body {
    background: var(--dark-bg);
    color: white;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Fondo animado con gradientes */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(157, 78, 221, 0.08) 0%, transparent 50%);
    animation: bgMove 20s ease-in-out infinite alternate;
    z-index: -1;
    pointer-events: none;
}

@keyframes bgMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, -5%) rotate(5deg); }
}

/* Texto dorado con brillo */
.text-gold { 
    color: var(--gold);
    text-shadow: 
        0 0 10px rgba(212, 175, 55, 0.5),
        0 0 20px rgba(212, 175, 55, 0.3),
        0 0 30px rgba(212, 175, 55, 0.2);
    letter-spacing: 2px;
    font-weight: 700;
}

/* Hero Section con gradiente vibrante */
.hero-section {
    height: 70vh;
    min-height: 500px;
    background: 
        linear-gradient(135deg, 
            rgba(10,10,10,0.95) 0%, 
            rgba(212, 175, 55, 0.2) 30%, 
            rgba(0, 212, 255, 0.15) 50%, 
            rgba(157, 78, 221, 0.2) 70%, 
            rgba(10,10,10,0.95) 100%),
        url('https://images.unsplash.com/photo-1470229722913-7c0e2dbbafd3?q=80&w=2070');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(10,10,10,0.3) 50%, 
        rgba(10,10,10,0.8) 100%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(212, 175, 55, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(0, 212, 255, 0.15) 0%, transparent 40%);
    pointer-events: none;
    animation: heroGlow 4s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Ajustes responsivos del Hero */
@media (max-width: 768px) {
    .hero-section {
        height: 55vh;
        min-height: 400px;
    }
    
    h1.display-1 {
        font-size: 2.5rem;
        letter-spacing: 1px;
    }
    
    h3.h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 50vh;
        min-height: 350px;
    }
    
    h1.display-1 {
        font-size: 2rem;
    }
    
    h3.h3 {
        font-size: 1.1rem;
    }
}

/* Divider con degradado y brillo */
.divider {
    height: 5px;
    width: 140px;
    background: linear-gradient(90deg, 
        var(--gold-dark) 0%, 
        var(--gold) 30%, 
        var(--gold-light) 50%, 
        var(--gold) 70%, 
        var(--gold-dark) 100%);
    margin: 30px auto;
    border-radius: 5px;
    box-shadow: 
        0 0 20px rgba(212, 175, 55, 0.6),
        inset 0 2px 4px rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.4), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@media (max-width: 576px) {
    .divider {
        width: 100px;
        height: 4px;
        margin: 25px auto;
    }
}

/* Input de búsqueda estilo moderno */
.custom-input {
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid var(--glass-border);
    color: white;
    text-align: center;
    font-size: 1.15rem;
    padding: 16px 28px;
    border-radius: 60px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255,255,255,0.05);
    position: relative;
}

.custom-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.custom-input:focus {
    background: rgba(30, 30, 30, 0.95);
    color: white;
    border-color: var(--gold);
    box-shadow: 
        0 0 40px rgba(212, 175, 55, 0.5),
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 2px 8px rgba(212, 175, 55, 0.1);
    outline: none;
    transform: scale(1.03) translateY(-2px);
}

@media (max-width: 576px) {
    .custom-input {
        font-size: 1rem;
        padding: 14px 24px;
    }
    
    .custom-input:focus {
        transform: scale(1.01) translateY(-1px);
    }
}

/* Contenedores responsivos */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .row.g-4 {
        gap: 1.2rem !important;
    }
    
    .search-col {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* Tarjetas de artistas - diseño creativo */
.artist-card {
    background: linear-gradient(145deg, 
        rgba(20,20,20,0.85) 0%, 
        rgba(40,40,40,0.6) 50%, 
        rgba(20,20,20,0.85) 100%);
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(15px) saturate(180%);
    height: 100%;
    position: relative;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.artist-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        var(--gold) 0%, 
        var(--cyan) 25%, 
        var(--purple) 50%, 
        var(--magenta) 75%, 
        var(--gold) 100%);
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: 400% 400%;
    animation: rainbowBorder 3s linear infinite;
}

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

.artist-card:hover::before {
    opacity: 1;
}

.artist-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.15), 
        transparent);
    transition: left 0.7s ease;
    pointer-events: none;
}

.artist-card:hover::after {
    left: 100%;
}

.artist-card:hover {
    transform: translateY(-12px) scale(1.03) rotateX(2deg);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .artist-card:hover {
        transform: translateY(-8px) scale(1.01);
    }
}

/* Badge de fecha mejorado */
.date-badge {
    background: linear-gradient(135deg, 
        var(--gold-dark) 0%, 
        var(--gold) 50%, 
        var(--gold-light) 100%);
    background-size: 200% 200%;
    animation: badgeShine 2s ease-in-out infinite alternate;
    color: #1a1a1a;
    padding: 7px 20px;
    font-weight: 800;
    border-radius: 0 0 0 24px;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 
        0 4px 20px rgba(212, 175, 55, 0.5),
        inset 0 1px 0 rgba(255,255,255,0.4);
    z-index: 3;
    backdrop-filter: blur(10px);
}

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

/* Contenedor de imagen con efectos */
.card-img-wrapper {
    height: 270px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(180deg, 
        rgba(212,175,55,0.1) 0%, 
        rgba(10,10,10,0.5) 100%);
}

.card-img-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        transparent 30%, 
        rgba(10,10,10,0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, 
        rgba(10,10,10,0.9) 0%, 
        transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7) contrast(1.1);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(1.1);
}

.artist-card:hover .card-img-wrapper img {
    filter: saturate(1.2) contrast(1.2);
    transform: scale(1.15);
}

/* Contenido de la tarjeta */
.artist-card .p-4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    background: linear-gradient(180deg, 
        rgba(10,10,10,0.4) 0%, 
        rgba(10,10,10,0.95) 100%);
    padding: 1.2rem !important;
    position: relative;
    z-index: 2;
}

.artist-card h3 {
    font-size: 1.35rem;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 
        0 2px 10px rgba(0,0,0,0.7),
        0 0 20px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fff 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.artist-card:hover h3 {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.fecha-texto {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0,0,0,0.6);
    letter-spacing: 1px;
}

/* Botón con gradiente y efectos */
.btn {
    background: linear-gradient(135deg, 
        var(--gold) 0%, 
        var(--gold-light) 40%, 
        var(--gold) 100%);
    background-size: 200% 200%;
    color: #1a1a1a;
    border: none;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 
        0 6px 25px rgba(212, 175, 55, 0.4),
        inset 0 2px 4px rgba(255,255,255,0.3),
        0 0 0 2px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
    animation: btnGlow 2s ease-in-out infinite alternate;
}

@keyframes btnGlow {
    0% { box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4), inset 0 2px 4px rgba(255,255,255,0.3); }
    100% { box-shadow: 0 6px 35px rgba(212, 175, 55, 0.7), inset 0 2px 4px rgba(255,255,255,0.3); }
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.5), 
        transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, 
        var(--gold-light) 0%, 
        var(--gold) 40%, 
        var(--gold-dark) 100%);
    background-size: 200% 200%;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 10px 40px rgba(212, 175, 55, 0.6),
        inset 0 2px 8px rgba(255,255,255,0.4),
        0 0 20px rgba(212, 175, 55, 0.5);
    color: #000;
}

.btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* Footer mejorado */
footer {
    border-top: 2px solid transparent;
    background: linear-gradient(180deg, 
        rgba(10,10,10,0.9) 0%, 
        rgba(20,20,20,0.7) 100%);
    backdrop-filter: blur(20px);
    padding: 2rem 0 !important;
    margin-top: 4rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--gold-dark) 0%, 
        var(--gold) 25%, 
        var(--cyan) 50%, 
        var(--purple) 75%, 
        var(--gold-dark) 100%);
    background-size: 400% 400%;
    animation: rainbow 4s linear infinite;
}

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

footer p {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-shadow: 
        0 0 15px rgba(212, 175, 55, 0.4),
        0 0 30px rgba(0, 212, 255, 0.2);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animaciones de entrada */
@keyframes fadeInUpEnhanced {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.animate__fadeInUp {
    animation: fadeInUpEnhanced 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Responsive final */
@media (max-width: 768px) {
    .card-img-wrapper {
        height: 230px;
    }
    
    .date-badge {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .card-img-wrapper {
        height: 210px;
    }
    
    .artist-card .p-4 {
        padding: 1rem !important;
        gap: 0.5rem;
    }
    
    .artist-card h3 {
        font-size: 1.15rem;
    }
    
    .fecha-texto {
        font-size: 0.9rem;
    }
    
    .btn {
        font-size: 0.8rem;
        padding: 10px 24px;
    }
    
    .container.my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
}
