/* ============================================================
   1. CONFIGURACIÓN BASE (lo que ya tenías)
   ============================================================ */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ============================================================
   2. FONDO GENERAL TEMÁTICO MUSICAL
   ============================================================ */
body {
    margin-bottom: 60px;
    min-height: 100vh;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 50%, #f0f9ff 100%);
    background-attachment: fixed;
    position: relative;
}

    /* Notas musicales decorativas flotando */
    body::before {
        content: "";
        position: fixed;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Ctext x='10' y='50' font-size='34' fill='%236366f1' fill-opacity='0.07' font-family='Arial'%3E%E2%99%AA%3C/text%3E%3Ctext x='100' y='120' font-size='26' fill='%238b5cf6' fill-opacity='0.07' font-family='Arial'%3E%E2%99%AB%3C/text%3E%3Ctext x='60' y='150' font-size='22' fill='%23ec4899' fill-opacity='0.05' font-family='Arial'%3E%E2%99%AC%3C/text%3E%3Ctext x='130' y='40' font-size='20' fill='%230ea5e9' fill-opacity='0.06' font-family='Arial'%3E%E2%99%AA%3C/text%3E%3C/svg%3E");
        pointer-events: none;
        z-index: 0;
    }

/* Todo el contenido por encima del fondo */
header,
main,
footer {
    position: relative;
    z-index: 1;
}

/* ============================================================
   3. NAVBAR Y FOOTER CON EFECTO GLASS
   ============================================================ */
.navbar {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

footer.footer {
    background-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

/* ============================================================
   4. CARDS CON FONDO TRANSLÚCIDO
   ============================================================ */
.card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: box-shadow .2s ease-in-out, transform .2s ease-in-out;
}

    .card:hover {
        box-shadow: 0 10px 25px rgba(99, 102, 241, 0.08) !important;
    }

/* ============================================================
   5. FORMULARIOS (placeholder flotante original + ajustes)
   ============================================================ */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Input groups coherentes */
.input-group-text {
    background-color: #f8fafc !important;
    border-color: #e5e7eb;
}

.form-control {
    border-color: #e5e7eb;
}

    .form-control:focus {
        border-color: #6366f1;
        box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
    }

/* ============================================================
   6. UTILIDADES EXTRA
   ============================================================ */
.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
}

/* Ocultar alerts vacíos */
.d-none-empty:empty {
    display: none !important;
}

/* Botones con transición suave */
.btn {
    transition: transform .15s ease, box-shadow .15s ease;
}

    .btn:active {
        transform: scale(0.97);
    }

/* Tablas con hover elegante */
.table-hover tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.05) !important;
}

/* ============================================================
   7. RESPONSIVE
   ============================================================ */
@media (max-width: 576px) {
    h1.h3 {
        font-size: 1.25rem;
    }

    .btn-group .btn {
        padding: .35rem .5rem;
    }
}
