/* audios-style.css - Versión mejorada y corregida */
:root { --oro: #d4af37; }

/* ---------- PORTADA ---------- */
.docs-hero .badge-glow {
    color: var(--oro); background: rgba(0,0,0,0.55);
    border: 1px solid var(--oro); border-radius: 30px;
    padding: 6px 18px; font-size: 0.8rem; letter-spacing: 3px;
    box-shadow: 0 0 15px rgba(212,175,55,0.25);
}
.docs-hero h1 { letter-spacing: 3px; text-shadow: 0 0 30px rgba(0,210,255,0.4); }
.docs-hero-content p {
    max-width: 760px !important; text-wrap: balance;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* ---------- TÍTULOS DE CATEGORÍA ---------- */
.audio-category-wrapper { margin: 60px 0 10px; }
.audio-category-title {
    display: flex; align-items: center; gap: 20px;
    font-family: 'Cinzel', serif; color: #fff; font-size: 1.6rem;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 22px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}
.audio-category-title::after {          /* línea dorada que se desvanece */
    content: ""; flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--oro), transparent);
}

/* ---------- GRILLA Y TARJETAS ---------- */
.audios-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px; padding: 0 0 10px;
}

.audio-card {
    position: relative; overflow: hidden; box-sizing: border-box;
    display: flex; flex-direction: column; width: 100%; padding: 22px;
    background: linear-gradient(160deg, rgba(20,25,35,0.85), rgba(10,10,15,0.8));
    border: 1px solid rgba(212,175,55,0.25); border-radius: 12px;
    backdrop-filter: blur(8px); transition: 0.3s;
    animation: subir 0.6s ease both;
}
.audio-card::before {                    /* filo dorado superior */
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--oro), transparent);
}

/* Retrasos de animación ampliados para soportar hasta 8 tarjetas por fila */
.audio-card:nth-child(2) { animation-delay: 0.1s; }
.audio-card:nth-child(3) { animation-delay: 0.2s; }
.audio-card:nth-child(4) { animation-delay: 0.3s; }
.audio-card:nth-child(5) { animation-delay: 0.4s; }
.audio-card:nth-child(6) { animation-delay: 0.5s; }
.audio-card:nth-child(7) { animation-delay: 0.6s; }
.audio-card:nth-child(8) { animation-delay: 0.7s; }

.audio-card:hover {
    border-color: var(--oro); transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6), 0 0 20px rgba(212,175,55,0.2);
}
@keyframes subir { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- INTERIOR DE LA TARJETA ---------- */
.audio-header-flex { display: flex; align-items: center; gap: 15px; min-height: 78px; margin-bottom: 8px; }

.audio-icon {
    flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: var(--oro);
    background: rgba(212,175,55,0.12); border: 1px solid rgba(212,175,55,0.5);
    box-shadow: 0 0 14px rgba(212,175,55,0.25);
}

.audio-meta-box { overflow: hidden; }

.audio-title {
    font-family: 'Cinzel', serif; color: #fff; font-size: 0.95rem; font-weight: 600;
    line-height: 1.3; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.audio-desc { font-family: 'Montserrat', sans-serif; font-size: 0.8rem; color: #aaa; margin: 0; }

/* Reproductor oscuro, redondeado y siempre pegado abajo */
audio { color-scheme: dark; width: 100%; height: 40px; margin: auto 0 14px; border-radius: 30px; outline: none; }

/* Botón de descarga */
.btn-descarga-audio {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; box-sizing: border-box; padding: 10px;
    color: var(--oro); background: rgba(212,175,55,0.06);
    border: 1px solid rgba(212,175,55,0.5); border-radius: 30px;
    font-family: 'Montserrat', sans-serif; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase; text-decoration: none; transition: 0.3s;
}
.btn-descarga-audio:hover {
    background: linear-gradient(90deg, #d4af37, #ffd700); color: #0f253e;
    border-color: var(--oro); box-shadow: 0 0 18px rgba(255,215,0,0.4);
}

/* ---------- CELULAR ---------- */
@media (max-width: 640px) {
    .audios-grid { grid-template-columns: 1fr; }
    .audio-category-title { font-size: 1.25rem; }
    .docs-hero h1 { font-size: 2.2rem !important; }
}