/* =========================================================
   ATACHE — TEMA DORADO PROFESIONAL
   Paleta de marca: oro #C59B27 · negro #0A0A0B · blanco
   Se activa solo con <html data-theme="dorado_lujo">
   ========================================================= */

html[data-theme="dorado_lujo"] {
    --on-primary: #0A0A0B;
}

html[data-theme="dorado_lujo"] body {
    background-color: #FAF9F6 !important;
    color: #0A0A0B !important;
}

/* Montos financieros: conservan su color semántico sobre las tarjetas */
html[data-theme="dorado_lujo"] .fin-amount {
    color: var(--fin-color, #0A0A0B) !important;
}

/* ---------- Tipografía ---------- */
html[data-theme="dorado_lujo"] h1,
html[data-theme="dorado_lujo"] h2,
html[data-theme="dorado_lujo"] h3,
html[data-theme="dorado_lujo"] h4,
html[data-theme="dorado_lujo"] h5,
html[data-theme="dorado_lujo"] h6 {
    color: #0A0A0B !important;
    letter-spacing: -0.01em !important;
}

html[data-theme="dorado_lujo"] .text-primary,
html[data-theme="dorado_lujo"] .text-accent {
    color: #8A6D1A !important;
}

html[data-theme="dorado_lujo"] .text-outline,
html[data-theme="dorado_lujo"] .text-outline-variant,
html[data-theme="dorado_lujo"] .text-muted {
    color: #6E6E72 !important;
}

html[data-theme="dorado_lujo"] .text-on-surface-variant {
    color: #5B5B5E !important;
}

/* ---------- Botón primario: oro sólido, sin brillos ---------- */
html[data-theme="dorado_lujo"] .bg-primary,
html[data-theme="dorado_lujo"] button.bg-primary,
html[data-theme="dorado_lujo"] a.bg-primary,
html[data-theme="dorado_lujo"] .btn-primary {
    background: #C59B27 !important;
    color: #0A0A0B !important;
    font-weight: 600 !important;
    border: 1px solid #C59B27 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none !important;
}

html[data-theme="dorado_lujo"] .bg-primary:hover,
html[data-theme="dorado_lujo"] button.bg-primary:hover,
html[data-theme="dorado_lujo"] a.bg-primary:hover,
html[data-theme="dorado_lujo"] .btn-primary:hover {
    background: #B08A20 !important;
    box-shadow: none !important;
    transform: none !important;
}

html[data-theme="dorado_lujo"] .bg-primary *,
html[data-theme="dorado_lujo"] button.bg-primary *,
html[data-theme="dorado_lujo"] a.bg-primary * {
    color: #0A0A0B !important;
    font-weight: 600 !important;
}

/* ---------- Sidebar ---------- */
html[data-theme="dorado_lujo"] .sidebar,
html[data-theme="dorado_lujo"] aside.sidebar,
html[data-theme="dorado_lujo"] nav.sidebar,
html[data-theme="dorado_lujo"] .glass-sidebar {
    background: #FFFFFF !important;
    border-right: 1px solid #E8E5DE !important;
    box-shadow: none !important;
}

html[data-theme="dorado_lujo"] .sidebar h1,
html[data-theme="dorado_lujo"] .sidebar p,
html[data-theme="dorado_lujo"] .sidebar span,
html[data-theme="dorado_lujo"] .sidebar a,
html[data-theme="dorado_lujo"] .sidebar div {
    color: #0A0A0B !important;
}

html[data-theme="dorado_lujo"] .sidebar a {
    border-radius: 8px !important;
}

html[data-theme="dorado_lujo"] .sidebar a:hover {
    background: #F5F2EA !important;
}

html[data-theme="dorado_lujo"] .sidebar a.active,
html[data-theme="dorado_lujo"] .sidebar a[class*="bg-primary-fixed"],
html[data-theme="dorado_lujo"] .sidebar a[class*="bg-primary"] {
    background: #FBF3DD !important;
    color: #8A6D1A !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

html[data-theme="dorado_lujo"] .sidebar i,
html[data-theme="dorado_lujo"] .sidebar svg,
html[data-theme="dorado_lujo"] .sidebar .bx {
    color: #8A6D1A !important;
}

/* ---------- Superficies y bordes ---------- */
html[data-theme="dorado_lujo"] .bg-white,
html[data-theme="dorado_lujo"] .bg-surface,
html[data-theme="dorado_lujo"] .bg-surface-container-lowest,
html[data-theme="dorado_lujo"] .bg-surface-container-low {
    background-color: #FFFFFF !important;
}

html[data-theme="dorado_lujo"] .bg-surface-container,
html[data-theme="dorado_lujo"] .bg-surface-container-high,
html[data-theme="dorado_lujo"] .bg-surface-container-highest {
    background-color: #F5F2EA !important;
}

html[data-theme="dorado_lujo"] .border-outline-variant\/10,
html[data-theme="dorado_lujo"] .border-outline-variant\/20,
html[data-theme="dorado_lujo"] .border-slate-200,
html[data-theme="dorado_lujo"] .border-gray-200 {
    border-color: #E8E5DE !important;
}

html[data-theme="dorado_lujo"] header.sticky,
html[data-theme="dorado_lujo"] header {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E8E5DE !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* ---------- Tiles de iconos: un solo acento ---------- */
html[data-theme="dorado_lujo"] .bg-secondary\/5,
html[data-theme="dorado_lujo"] .bg-tertiary\/5,
html[data-theme="dorado_lujo"] .bg-amber-500\/10 {
    background: #FBF3DD !important;
}

html[data-theme="dorado_lujo"] .text-secondary,
html[data-theme="dorado_lujo"] .text-tertiary,
html[data-theme="dorado_lujo"] .text-amber-600 {
    color: #8A6D1A !important;
}

html[data-theme="dorado_lujo"] .glass-toggle {
    background: #FFFFFF !important;
    border: 1px solid #E8E5DE !important;
    box-shadow: none !important;
    color: #8A6D1A !important;
}

/* ---------- Badges suaves ---------- */
html[data-theme="dorado_lujo"] .bg-primary\/10,
html[data-theme="dorado_lujo"] .bg-primary\/5 {
    background: #FBF3DD !important;
    color: #8A6D1A !important;
    border: 1px solid #EFE3C2 !important;
    font-weight: 600 !important;
}

/* ---------- Formularios ---------- */
html[data-theme="dorado_lujo"] input,
html[data-theme="dorado_lujo"] select,
html[data-theme="dorado_lujo"] textarea {
    background-color: #FFFFFF !important;
    color: #0A0A0B !important;
    border: 1px solid #E8E5DE !important;
    border-radius: 8px !important;
}

html[data-theme="dorado_lujo"] input::placeholder,
html[data-theme="dorado_lujo"] textarea::placeholder {
    color: #8A8A8D !important;
}

html[data-theme="dorado_lujo"] input:focus,
html[data-theme="dorado_lujo"] select:focus,
html[data-theme="dorado_lujo"] textarea:focus {
    border-color: #C59B27 !important;
    box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.18) !important;
    outline: none !important;
}

/* ---------- Texto de acento legible sobre papel ---------- */
html[data-theme="dorado_lujo"] .text-primary {
    color: #8A6D1A !important;
}

html[data-theme="dorado_lujo"] summary[style*="var(--primary)"],
html[data-theme="dorado_lujo"] summary[style*="var(--accent-color)"],
html[data-theme="dorado_lujo"] .btn-text[style*="var(--primary)"] {
    color: #8A6D1A !important;
}

html[data-theme="dorado_lujo"] .btn-text:not([style*="color"]) {
    color: #8A6D1A !important;
}

/* ---------- Tablas ---------- */html[data-theme="dorado_lujo"] table th {
    color: #5B5B5E !important;
    border-bottom: 1px solid #E8E5DE !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

html[data-theme="dorado_lujo"] table td {
    color: #0A0A0B !important;
    border-bottom: 1px solid #F0EDE5 !important;
}

html[data-theme="dorado_lujo"] tr:hover td {
    background-color: #FAF9F6 !important;
}
