:root {
    --bg-dark: #0d0d10;
    --bg-card: #16161b;
    --bg-elevated: #202027;
    --accent-main: #d4a359;
    --accent-secondary: #a67c37;
    --accent-warm: #c85a32;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-subtle: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    padding-bottom: 95px;
}

/* Tipografías Graffiti */
.graffiti-font {
    font-family: 'Permanent Marker', cursive;
    letter-spacing: 2px;
}

.graffiti-title {
    font-family: 'Rubik Wet Paint', cursive;
    font-size: clamp(3rem, 7vw, 6rem);
    background: linear-gradient(180deg, #ffffff 20%, #e5e7eb 65%, var(--accent-main) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.7));
    animation: floatTitle 4s ease-in-out infinite;
    line-height: 1.1;
}

.graffiti-section-title {
    font-family: 'Rubik Wet Paint', cursive;
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* Navbar limpia */
.navbar {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 5%;
    background: rgba(13, 13, 16, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.logo {
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
}

.logo span {
    color: var(--accent-main);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.25s;
}

.nav-links a:hover {
    color: var(--accent-main);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 5%;
    overflow: hidden;
    border-bottom: 1px solid var(--border-subtle);
}

.hero-bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 163, 89, 0.12) 0%, rgba(166, 124, 55, 0.04) 50%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 6s infinite alternate;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.badge-drip {
    display: inline-block;
    background: var(--bg-elevated);
    color: var(--accent-main);
    border: 1px solid rgba(212, 163, 89, 0.35);
    padding: 0.4rem 1.2rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 1.2rem auto 2rem;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.25s, background 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-primary {
    background: var(--accent-main);
    color: #0d0d10;
}

.btn-primary:hover {
    background: #e2b46b;
    transform: translateY(-3px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-main);
    transform: translateY(-3px);
}

/* Secciones */
.section-container {
    padding: 4.5rem 6%;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header p {
    color: var(--text-muted);
}

/* Departamentos de Géneros */
.genre-departments {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.dept-btn {
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 0.7rem 1.4rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.dept-btn:hover {
    color: var(--text-main);
    border-color: rgba(212, 163, 89, 0.5);
}

.dept-btn.active {
    background: var(--accent-main);
    color: #0d0d10;
    border-color: var(--accent-main);
    transform: translateY(-2px);
}

/* Grid de Beats */
.beats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.beat-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    animation: fadeUp 0.6s ease forwards;
}

.beat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 163, 89, 0.45);
}

/* Portada cuadrada optimizada para imágenes 3000x3000 */
.beat-cover-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
}

.beat-cover-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.beat-card:hover .beat-cover-wrapper img {
    transform: scale(1.05);
}

.play-overlay-btn {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 16, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.25s;
    cursor: pointer;
}

.beat-card:hover .play-overlay-btn, .beat-card.playing .play-overlay-btn {
    opacity: 1;
}

.play-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0d0d10;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.genre-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(13, 13, 16, 0.88);
    border: 1px solid rgba(212, 163, 89, 0.45);
    color: var(--accent-main);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.beat-info {
    padding: 1.4rem;
}

.beat-title {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.beat-meta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--accent-main);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.beat-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 1rem;
}

/* Onda visual estilo SoundCloud en cada tarjeta */
.mini-soundwave {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 26px;
    padding-top: 6px;
    border-top: 1px solid var(--border-subtle);
}

.mini-soundwave span {
    flex: 1;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 2px;
    transition: 0.2s;
}

.beat-card.playing .mini-soundwave span {
    background: var(--accent-main);
    animation: equalizer 0.8s infinite alternate ease-in-out;
}

/* Botón Trato Directo */
.beat-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-direct-deal {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid rgba(212, 163, 89, 0.45);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-direct-deal i {
    color: #4ade80;
    font-size: 1rem;
}

.btn-direct-deal:hover {
    background: var(--accent-main);
    color: #0d0d10;
    border-color: var(--accent-main);
}

.btn-direct-deal:hover i {
    color: #0d0d10;
}

/* Drip Music Sessions */
.sessions-bg {
    background: #121216;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.live-tag {
    color: var(--accent-warm);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}

.session-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    transition: 0.25s;
}

.session-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 163, 89, 0.4);
}

.session-badge {
    display: inline-block;
    background: var(--bg-elevated);
    color: var(--accent-main);
    border: 1px solid rgba(212, 163, 89, 0.35);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.session-badge.released {
    background: var(--accent-main);
    color: #0d0d10;
}

.session-icon {
    font-size: 2rem;
    color: var(--accent-main);
    margin-bottom: 0.8rem;
}

.session-card h3 {
    font-family: 'Permanent Marker', cursive;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.session-date {
    display: block;
    font-size: 0.85rem;
    color: var(--accent-main);
    margin-bottom: 0.8rem;
}

.session-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Acerca de Mí */
.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
}

.chef-card {
    aspect-ratio: 1 / 1;
    background: var(--bg-elevated);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(212, 163, 89, 0.35);
    position: relative;
}

.chef-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#producerDefaultIcon {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.chef-card i {
    font-size: 3.8rem;
    color: var(--accent-main);
    margin-bottom: 1rem;
}

.chef-card span {
    font-size: 1.8rem;
    color: var(--text-main);
}

.chef-card small {
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stat-box {
    background: var(--bg-dark);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--accent-main);
}

.stat-num {
    display: block;
    font-family: 'Permanent Marker', cursive;
    font-size: 1.6rem;
    color: var(--accent-main);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer y Redes */
.footer {
    text-align: center;
    padding: 4rem 5% 3rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-logo {
    font-size: 2.2rem;
    color: var(--accent-main);
    margin-bottom: 0.5rem;
}

.footer p {
    color: var(--text-muted);
}

.social-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.social-btn {
    background: var(--bg-card);
    color: var(--text-main);
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    font-weight: 600;
    transition: 0.25s;
}

.social-btn:hover {
    border-color: var(--accent-main);
    color: var(--accent-main);
    transform: translateY(-2px);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Reproductor Inferior Estilo SoundCloud */
.soundcloud-player {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: rgba(18, 18, 22, 0.97);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(212, 163, 89, 0.35);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4%;
    z-index: 1000;
    gap: 1.5rem;
}

.player-track-info {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 220px;
}

.player-track-info img {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
}

.player-track-info h4 {
    font-size: 0.95rem;
    color: var(--text-main);
}

.player-track-info span {
    font-size: 0.78rem;
    color: var(--accent-main);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-controls button {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
}

.player-controls .play-main {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-main);
    color: #0d0d10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-waveform-area {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.progress-bar-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent-main);
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.player-volume input[type="range"] {
    accent-color: var(--accent-main);
}

/* Modal Admin y Pestañas */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid rgba(212, 163, 89, 0.45);
    border-radius: 16px;
    padding: 2rem;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.8rem;
    cursor: pointer;
}

.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.8rem;
    flex-wrap: wrap;
}

.admin-tab-btn {
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.admin-tab-btn.active {
    background: var(--accent-main);
    color: #0d0d10;
    border-color: var(--accent-main);
}

.modal-box input, .modal-box select, .modal-box textarea {
    width: 100%;
    padding: 0.75rem;
    margin: 0.45rem 0;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-dark);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.file-label {
    font-size: 0.8rem;
    color: var(--accent-main);
    display: block;
    margin-top: 0.6rem;
    font-weight: 600;
}

.admin-sub-heading {
    color: var(--accent-main);
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.3rem;
    font-size: 0.95rem;
}

.session-edit-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem;
    border-radius: 10px;
    margin-top: 0.6rem;
}

/* Lista de gestión de beats en el panel */
.admin-beats-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-height: 360px;
    overflow-y: auto;
}

.admin-beat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-dark);
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    gap: 0.8rem;
}

.admin-beat-item-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.admin-beat-item-info img {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
}

.admin-beat-item-info h4 {
    font-size: 0.95rem;
    color: var(--text-main);
}

.admin-beat-item-info span {
    font-size: 0.78rem;
    color: var(--accent-main);
}

.btn-delete-beat {
    background: #991b1b;
    color: #fff;
    border: none;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: 0.2s;
}

.btn-delete-beat:hover {
    background: #dc2626;
}

/* Animaciones */
@keyframes floatTitle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.6; }
    100% { transform: scale(1.12); opacity: 1; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes equalizer {
    0% { height: 25%; }
    100% { height: 100%; }
}

@media (max-width: 820px) {
    .nav-links { display: none; }
    .about-wrapper { grid-template-columns: 1fr; }
    .player-volume { display: none; }
    .form-row, .form-row-2 { grid-template-columns: 1fr; }
}