/* /proveedores/assets/css/layout_platinum.css */
/* SISTEMA DE DISEÑO PLATINUM V33 - FINAL */

:root {
    /* --- PALETA OSCURA (Por defecto) --- */
    --bg-body: #050507;
    /* Negro Profundo */
    --bg-panel: #0e0e12;
    /* Gris casi negro */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --gold-main: #d4af37;
    /* Dorado Principal */
    --gold-dim: rgba(212, 175, 55, 0.3);
    --border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 10, 14, 0.85);
    --glass-card: rgba(255, 255, 255, 0.03);
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'DM Sans', sans-serif;
    --primary-sofi: #e9d5ff;
    /* Lila para Sofi */

    /* Estados */
    --success: #10b981;
    --danger: #ef4444;
    --primary: var(--gold-main);
    --warning: #f59e0b;
    --platinum-gradient: linear-gradient(135deg, #d4af37, #f59e0b);
}

/* RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- HEADER SUPERIOR --- */
.plat-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.brand {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.brand i {
    color: var(--gold-main);
    font-style: normal;
}

.user-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.plan-tag {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--gold-main);
    border: 1px solid var(--gold-dim);
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-main), #8a6e2f);
    color: #000;
    font-weight: 700;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    box-shadow: 0 0 10px var(--gold-dim);
}

/* --- BOTÓN TEMA (Día/Noche) --- */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: grid;
    place-items: center;
    transition: 0.3s;
    margin-right: 8px;
}

.theme-btn:hover {
    background: rgba(125, 125, 125, 0.1);
}

/* --- MENÚ DE NAVEGACIÓN (Scroll Horizontal) --- */
.nav-wrapper {
    border-bottom: 1px solid var(--border);
    background: rgba(14, 14, 18, 0.6);
    position: sticky;
    top: 64px;
    z-index: 90;
    backdrop-filter: blur(10px);
}

.nav-scroll {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 10px;
}

.nav-scroll::-webkit-scrollbar {
    display: none;
}

.nav-link {
    padding: 16px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    transition: 0.3s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
    color: var(--gold-main);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--gold-main);
    box-shadow: 0 -2px 8px var(--gold-main);
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: auto 10px;
}

/* --- CONTENEDOR PRINCIPAL --- */
.main-stage {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    min-height: 80vh;
}

/* --- CARDS GENÉRICAS (Spotlight) --- */
.spotlight-card {
    background: var(--glass-card);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s;
    border-radius: 16px;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 2;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

/* --- PANTALLA DE BLOQUEO (UPSELL) --- */
.upsell-wrapper {
    text-align: center;
    padding: 60px 20px;
    animation: fadeIn 0.8s ease-out;
}

.icon-lock {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.upsell-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    background: linear-gradient(to right, var(--text-primary), var(--gold-main));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.upsell-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.btn-upgrade {
    background: linear-gradient(135deg, var(--gold-main), #b45309);
    color: #000;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    transition: transform 0.2s;
}

.btn-upgrade:hover {
    transform: scale(1.05);
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === CONFIGURACIÓN MODO DÍA (LIGHT MODE) === */
/* Esta sección sobrescribe las variables cuando se activa el sol */
html.light-mode {
    --bg-body: #f8fafc;
    /* Blanco Humo */
    --bg-panel: #ffffff;
    /* Blanco Puro */
    --text-primary: #0f172a;
    /* Azul Oscuro */
    --text-secondary: #475569;
    /* Gris Medio */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-card: #ffffff;
    --border: rgba(0, 0, 0, 0.1);
    --gold-main: #b45309;
    /* Dorado más oscuro para contraste */
}

/* Ajustes específicos para que el blanco se vea bien */
html.light-mode body {
    background-color: var(--bg-body);
    color: var(--text-primary);
}

html.light-mode .nav-wrapper {
    background: rgba(255, 255, 255, 0.8);
}

html.light-mode .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
}

html.light-mode .spotlight-card {
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-link {
        padding: 14px 12px;
        font-size: 0.8rem;
    }

    .upsell-title {
        font-size: 1.8rem;
    }
}