/* ============================================
   MyPymes - Estilos globales
   ============================================ */

:root {
    --sidebar-width: 250px;
    --primary: #1e3a5f;
    --primary-light: #2c5282;
    --bg-body: #f4f6f9;
}

/* ---------- Fondo global ---------- */
body.auth-page {
    background-color: #1e3a5f;
    background-image: url('../img/fondoLogoDrTech.jpg');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100vh;
}

body.auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(30, 58, 95, 0.60);
    z-index: -1;
    pointer-events: none;
}

/* ---------- Layout ---------- */
.sidebar {
    width: var(--sidebar-width);
    min-height: calc(100vh - 56px);
    position: sticky;
    top: 56px;
    z-index: 100;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.75);
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    transition: background 0.15s, color 0.15s;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
}

.main-content {
    min-height: calc(100vh - 56px);
}

/* Navbar */
.navbar.bg-primary {
    background-color: var(--primary) !important;
}

/* Cards sobre el fondo */
.card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
}

/* Avisos de plan (no usar nombres con "ad") */
.promo-banner-vertical {
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
}

.promo-placeholder-vertical {
    width: 100%;
    min-height: 250px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    padding: 1rem 0.5rem;
}

.promo-banner-horizontal {
    max-width: 728px;
    width: 100%;
}

.promo-placeholder-horizontal {
    width: 100%;
    min-height: 90px;
    background: #f1f3f5;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    color: #6c757d;
    padding: 0.75rem;
}

.promo-footer {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.92);
}

/* ---------- Utilidades ---------- */
.table > :not(caption) > * > * {
    background-color: transparent;
}

/* Móvil */
@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -100%;
        top: 56px;
        z-index: 1040;
        transition: left 0.3s ease;
        height: calc(100vh - 56px);
        overflow-y: auto;
    }

    .sidebar.show {
        left: 0;
    }

    .ad-placeholder-horizontal {
        min-height: 60px;
        font-size: 0.85rem;
    }
}

/* Login / Registro: el fondo se ve un poco más */
body.auth-page {
    background-size: cover;
    background-position: center center;
}

body.auth-page::before {
    background: rgba(30, 58, 95, 0.55); /* Tinte azul oscuro sobre la imagen */
}