/* ===== RESPLANDOR DORADO EN TODOS LOS BORDES (tipo llama) ===== */
.gold-frame {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    /* Capa base siempre encendida (nunca se apaga del todo) */
    box-shadow:
        inset 0 0 0 2px rgba(201, 168, 76, 0.45),
        inset 0 0 22px rgba(201, 168, 76, 0.30),
        inset 0 0 75px rgba(201, 168, 76, 0.15);
}

.gold-frame::before,
.gold-frame::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* Capa de llama A: filo grueso + resplandor extenso hacia el centro */
.gold-frame::before {
    box-shadow:
        inset 0 0 0 2px rgba(230, 201, 118, 0.60),
        inset 0 0 28px rgba(201, 168, 76, 0.48),
        inset 0 0 80px rgba(201, 168, 76, 0.26),
        inset 0 0 150px rgba(201, 168, 76, 0.12);
    animation: goldFlame 9s ease-in-out infinite;
}

/* Capa de llama B, fuera de fase y a otro ritmo (titileo orgánico) */
.gold-frame::after {
    box-shadow:
        inset 0 0 18px rgba(246, 231, 176, 0.42),
        inset 0 0 60px rgba(230, 201, 118, 0.24),
        inset 0 0 120px rgba(201, 168, 76, 0.14);
    animation: goldFlame 6s ease-in-out infinite reverse;
}

/* Parpadeo suave e irregular (amplitud reducida ~a la mitad, más lento) */
@keyframes goldFlame {
    0%   { opacity: 0.74; }
    15%  { opacity: 0.94; }
    27%  { opacity: 0.79; }
    41%  { opacity: 1; }
    54%  { opacity: 0.80; }
    67%  { opacity: 0.96; }
    81%  { opacity: 0.76; }
    100% { opacity: 0.88; }
}

/* Respeta a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .gold-frame::before,
    .gold-frame::after { animation: none; opacity: 0.85; }
}

/* ===== TÍTULOS DE SECCIÓN ===== */
.section-title-wrap {
    margin-bottom: 0.5rem;
}
.section-title-wrap .title-bg {
    display: none;
}
.section-title {
    font-family: 'Old Standard TT', Georgia, 'Times New Roman', serif;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.04em;
    position: relative;
    margin: 0;
}
.section-title-ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.6rem;
    opacity: 0;
    animation: sectionOrnamentFade 0.8s ease forwards 0.4s;
}
.section-title-ornament .line {
    display: block;
    height: 1px;
    background: #c9a84c;
    flex: 1;
}
.section-title-ornament .diamond {
    color: #c9a84c;
    font-size: 0.75rem;
    line-height: 1;
}
@keyframes sectionOrnamentFade {
    to { opacity: 1; }
}

/* ===== ESTILOS GENERALES ===== */
.brilliant-black {
    background-color: #000000;
}

.text-white-polished {
    color: #ffffff;
}

/* ===== FUENTES Y TIPOGRAFÍA ===== */
body {
    font-family: 'Old Standard TT', Georgia, 'Times New Roman', serif;
    margin: 0;
    padding: 0;
}

.section-heading {
    font-family: 'Old Standard TT', Georgia, 'Times New Roman', serif;
    font-weight: 400;
}

/* ===== MENÚ DESPLEGABLE - CORREGIDO ===== */
#menu-dropdown {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px);
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#menu-dropdown a {
    color: #1f2937 !important;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

#menu-dropdown a:hover {
    background-color: #f3f4f6 !important;
    color: #111827 !important;
    transform: translateX(4px);
}

#menu-dropdown a:last-child {
    border-top: 1px solid #f3f4f6 !important;
}

/* Botón del menú mejorado */
#menu-toggle {
    background-color: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

#menu-toggle:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.1);
}

#menu-toggle:hover span {
    color: black !important;
}

#menu-toggle:hover svg {
    color: black !important;
}

/* ===== HERO SECTION ===== */
.hero-overlay {
    position: relative;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.hero-overlay > div {
    z-index: 0;
}

.hero-overlay .relative {
    z-index: 2;
}

/* Reencuadre del héroe: la cabeza del Maestro queda descentrada (~44%) en la
   foto 16:9 original; la acercamos un poco y la desplazamos a la derecha para
   centrarla. El scale mantiene la cobertura en todos los tamaños de pantalla. */
.hero-portrait {
    transform: scale(1.15) translateX(5.5%);
    transform-origin: center center;
    transition: transform 20s ease;
    will-change: transform;
}
.hero-portrait:hover {
    transform: scale(1.2) translateX(5.5%);
}
@media (prefers-reduced-motion: reduce) {
    .hero-portrait { transition: none; }
}

/* ===== BANNER DE TECLADO ===== */
#piano-banner {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
}

#piano-banner img {
    filter: contrast(1.2) brightness(0.7);
}

/* ===== TARJETAS DE BIOGRAFÍA ===== */
.bg-gray-900 {
    background-color: #111827;
    transition: all 0.3s ease;
}

.bg-gray-900:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(255, 255, 255, 0.1);
}

/* ===== TARJETAS DE CONCIERTOS ===== */
.concert-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.8) 0%, rgba(31, 41, 55, 0.8) 100%);
    border: 1px solid rgba(75, 85, 99, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.concert-card:hover {
    transform: translateY(-5px);
    border-color: rgba(156, 163, 175, 0.5);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}

/* ===== GALERÍA ===== */
.gallery-image-container {
    border-radius: 0.5rem;
    overflow: hidden;
    background: #111827;
    transition: all 0.3s ease;
}

.gallery-image-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(255, 255, 255, 0.1);
}

.gallery-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-image-container:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-image-caption {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    padding: 1rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* ===== MAPA ===== */
#map {
    border: 1px solid rgba(75, 85, 99, 0.3);
    background: #111827;
}

/* ===== EFECTOS DE ANIMACIÓN ===== */
.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto de aparición escalonada para las tarjetas de conciertos */
.concert-card:nth-child(1) { animation-delay: 0.1s; }
.concert-card:nth-child(2) { animation-delay: 0.2s; }
.concert-card:nth-child(3) { animation-delay: 0.3s; }
.concert-card:nth-child(4) { animation-delay: 0.4s; }
.concert-card:nth-child(5) { animation-delay: 0.5s; }

/* ===== BOTONES ===== */
a[href*="mailto"] {
    background: transparent;
    transition: all 0.3s ease;
    border: 2px solid white;
}

a[href*="mailto"]:hover {
    background: white;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(255, 255, 255, 0.2);
}

/* ===== SCROLL SMOOTH ===== */
html.scroll-smooth {
    scroll-behavior: smooth;
}

/* ===== ENLACES INTERNOS ===== */
a[href^="#"] {
    transition: color 0.2s ease;
}

a[href^="#"]:hover {
    color: #d1d5db;
}

/* ===== HEADER STICKY ===== */
header {
    backdrop-filter: blur(20px);
    background-color: rgba(0, 0, 0, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== FOOTER ===== */
footer {
    background-color: #000000;
    border-top: 1px solid rgba(75, 85, 99, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    /* Ajustes para móviles */
    #menu-dropdown {
        position: fixed !important;
        top: 80px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 90vw !important;
        max-width: 300px !important;
        z-index: 1000 !important;
    }
    
    .gallery-image {
        height: 250px;
    }
    
    h1 {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem !important;
    }
    
    .concert-card {
        margin-bottom: 1rem;
    }
}

/* ===== EFECTO DE PARTICULAS PARA FONDO (Opcional) ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* ===== MEJORAS DE LEGIBILIDAD ===== */
.text-gray-300 {
    color: #d1d5db;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-gray-500 {
    color: #6b7280;
}

/* ===== EFECTOS DE HOVER MEJORADOS ===== */
.hover\:shadow-white\/10:hover {
    box-shadow: 0 25px 50px -12px rgba(255, 255, 255, 0.1);
}

/* ===== TRANSICIONES SUAVES ===== */
.transition-shadow {
    transition: box-shadow 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

/* ===== PERSONALIZACIÓN DE SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}
/* Estilos para el mapa y filtros */
.city-filter.active {
    background-color: #3b82f6 !important;
    transform: scale(1.05);
}

.concert-card {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.concert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
}

/* Tabla de conciertos */
table {
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: rgba(55, 65, 81, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .city-filter {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    #map {
        height: 400px;
    }
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}
/* Estilos para marcadores personalizados */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

.custom-marker div {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.custom-marker:hover div {
    transform: scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.4);
}

/* Estilos para el campo de búsqueda */
#search-input:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Mejoras responsive */
@media (max-width: 768px) {
    .custom-marker div {
        transform: scale(0.8);
    }
}
