/* ==========================================================================
   JP CALCULA TUS BENEFICIOS - FINTECH MODERNO DESIGN SYSTEM
   Inspirado en Apps Financieras y Bancarias Modernas (Interbank, Yape, BCP)
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body:not(.jp-home-page) {
    background-color: #f8fafc;
    color: #0f172a;
}

header {
    text-align: center;
    border-bottom: 1.5px solid #e2e8f0 !important;
    margin-bottom: 22px !important;
    padding-bottom: 14px !important;
}
header h1 {
    color: #0b1f3d !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px !important;
}
header p {
    color: #64748b !important;
    font-size: 0.88em !important;
    margin-top: 6px !important;
}
body.jp-dark header {
    border-bottom-color: #1e355b !important;
}
body.jp-dark header h1 {
    color: #f1f5f9 !important;
}
body.jp-dark header p {
    color: #94a3b8 !important;
}

.logo-container {
    text-align: center;
    margin-bottom: 14px;
}
.logo-img {
    max-width: min(150px, 45vw) !important;
    height: auto !important;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(11, 31, 61, 0.12);
    border: 3px solid #10b981;
}

/* ---- Topbar FinTech Neo-Banking ---- */
.jp-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 18px;
    background: rgba(11, 26, 51, 0.9) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.35);
}
.jp-topbar button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    padding: 7px 11px;
    border-radius: 10px;
    line-height: 1;
    transition: background 0.18s ease, transform 0.15s ease, border-color 0.18s;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.jp-topbar button:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}
.jp-topbar a.jp-back {
    color: #fff;
    text-decoration: none;
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 7px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.15s ease, border-color 0.18s;
}
.jp-topbar a.jp-back:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}
.jp-topbar .jp-title {
    font-weight: 800;
    font-size: 0.95em;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
}

/* ---- Drawer / Sidebar FinTech ---- */
.jp-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 61, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.jp-sidebar-overlay.open { opacity: 1; pointer-events: auto; }

.jp-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(300px, 82vw);
    background: #071426;
    color: #fff;
    z-index: 1999;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .28s cubic-bezier(0.16, 1, 0.3, 1), visibility .28s;
    padding: 24px 0;
    box-sizing: border-box;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
}
.jp-sidebar.open { transform: translateX(0); visibility: visible; }
.jp-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
}
.jp-sidebar-header span {
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 1.05em;
    color: #ffffff;
}
.jp-sidebar-header button {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    border-radius: 8px;
    padding: 4px 8px;
}
.jp-sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    margin: 2px 12px;
    border-radius: 10px;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.jp-sidebar a.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-left: 3px solid #10b981;
}
.jp-sidebar a:hover:not(.active) {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

/* ---- Contenedor de Calculadora FinTech ---- */
.container {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    box-shadow: 0 10px 30px -5px rgba(11, 31, 61, 0.08), 0 4px 12px -2px rgba(11, 31, 61, 0.04) !important;
    box-sizing: border-box;
}

/* ---- Form Inputs & Selects ---- */
.form-group label {
    font-size: 0.88em;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 7px;
    letter-spacing: 0.1px;
}
input, select {
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    font-size: 0.98em !important;
    color: #0f172a !important;
    background: #ffffff !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input:focus, select:focus {
    border-color: #0284c7 !important;
    outline: none;
    box-shadow: 0 0 0 3.5px rgba(2, 132, 199, 0.2) !important;
}

/* ---- Títulos de Sección FinTech con Iconos ---- */
.section-title {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: #f1f5f9 !important;
    border-left: 4px solid #0284c7 !important;
    color: #0f172a !important;
    border-radius: 12px !important;
    padding: 11px 15px !important;
    font-size: 0.92em !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px;
}
.jp-sec-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(2, 132, 199, 0.12);
    border: 1px solid rgba(2, 132, 199, 0.25);
    color: #0284c7;
    flex-shrink: 0;
}
.jp-sec-ico svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    display: block;
}
body.jp-dark .section-title {
    background: #1e293b !important;
    border-left-color: #3b82f6 !important;
    color: #f1f5f9 !important;
}
body.jp-dark .jp-sec-ico {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* ---- Botón Principal de Cálculo FinTech ---- */
.btn-calc button {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    padding: 15px 24px !important;
    font-weight: 800 !important;
    font-size: 1.05em !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 6px 20px -3px rgba(2, 132, 199, 0.4) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease !important;
    cursor: pointer;
}
.btn-calc button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px -3px rgba(2, 132, 199, 0.55) !important;
}
.btn-calc button:active {
    transform: scale(0.98) !important;
}

/* ---- Estado de Cuenta / Resultado FinTech ---- */
#resultado {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 30px -5px rgba(11, 31, 61, 0.08) !important;
    padding: 22px 20px !important;
    box-sizing: border-box;
}
.res-line {
    border-bottom: 1px solid #f1f5f9 !important;
    padding: 12px 0 !important;
    color: #334155 !important;
    font-size: 0.94em !important;
}
.res-line span:first-child {
    font-weight: 600;
}
.res-line span:last-child {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #0f172a;
}

/* Total Destacado en Verde Esmeralda FinTech */
.total {
    font-size: clamp(1.25em, 4vw, 1.6em) !important;
    color: #047857 !important;
    font-weight: 800 !important;
    margin-top: 18px !important;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%) !important;
    border: 1.5px solid #10b981 !important;
    border-radius: 14px !important;
    padding: 16px 18px !important;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.15) !important;
    font-variant-numeric: tabular-nums;
}

/* ---- Historial FinTech ---- */
.jp-historial {
    margin-top: 24px;
    padding: 18px 16px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    box-sizing: border-box;
    width: 100%;
    word-break: break-word;
}
.jp-historial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.jp-historial-header span {
    font-weight: 800;
    color: #0f172a;
    font-size: 0.95em;
    letter-spacing: 0.2px;
}
.jp-historial-header button {
    background: #fff;
    border: 1px solid #f87171;
    color: #dc2626;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78em;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}
.jp-hist-vacio { color: #94a3b8; font-size: 0.85em; font-style: italic; margin: 4px 0; }
.jp-hist-item {
    padding: 11px 0;
    border-bottom: 1px solid #e2e8f0;
}
.jp-hist-item:last-child { border-bottom: none; }
.jp-hist-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.9em;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
}
.jp-hist-top span { color: #64748b; font-size: 0.82em; font-weight: 400; }
.jp-hist-detail { font-size: 0.84em; color: #475569; word-break: break-word; line-height: 1.4; }

/* ---- Switch de Régimen (MYPE) FinTech ---- */
.jp-regimen-box {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 18px;
}
.jp-regimen-box .jp-regimen-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: #92400e;
    font-size: 0.92em;
    margin-bottom: 10px;
}
.jp-regimen-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #fef3c7;
    color: #b45309;
    flex-shrink: 0;
}
.jp-regimen-ico svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    display: block;
}
.jp-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jp-switch-label { font-size: 0.9em; font-weight: 600; color: #451a03; flex: 1; min-width: 0; word-break: break-word; }
.jp-switch { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; }
.jp-switch input { opacity: 0; width: 0; height: 0; }
.jp-switch-slider {
    position: absolute; cursor: pointer; inset: 0;
    background-color: #cbd5e1; border-radius: 28px; transition: .25s;
}
.jp-switch-slider::before {
    position: absolute; content: ""; height: 22px; width: 22px; left: 3px; bottom: 3px;
    background-color: white; border-radius: 50%; transition: .25s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.jp-switch input:checked + .jp-switch-slider { background-color: #d97706; }
.jp-switch input:checked + .jp-switch-slider::before { transform: translateX(22px); }
.jp-regimen-nota { font-size: 0.8em; color: #b45309; margin-top: 8px; line-height: 1.4; }

.jp-auto-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ecfdf5;
    border: 1.5px solid #a7f3d0;
    color: #065f46;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.84em;
    line-height: 1.55;
    word-break: break-word;
    box-sizing: border-box;
    width: 100%;
}
.jp-auto-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #d1fae5;
    color: #059669;
    flex-shrink: 0;
    margin-top: 1px;
}
.jp-auto-icon svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    display: block;
}
.jp-auto-text {
    flex: 1;
}

/* ---- Glosario (Tooltip táctil) ---- */
.jp-tip-wrap { display: inline-flex; align-items: center; gap: 5px; position: relative; max-width: 100%; }
.jp-tip-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; border-radius: 50%;
    background: #e2e8f0; color: #475569; font-size: 0.72em; font-weight: 700;
    border: none; cursor: pointer; flex-shrink: 0; line-height: 1;
    transition: background 0.15s, color 0.15s;
}
.jp-tip-btn:hover, .jp-tip-btn:focus { background: #0b1f3d; color: #fff; }
.jp-tip-box {
    display: none; position: absolute; top: 24px; left: 0; z-index: 500;
    width: min(280px, calc(100vw - 40px)); max-width: 90vw; background: #0b1f3d; color: #fff;
    font-size: 0.8em; font-weight: 400; line-height: 1.5;
    padding: 10px 12px; border-radius: 10px; box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    box-sizing: border-box; word-break: break-word;
    border: 1px solid rgba(255,255,255,0.1);
}
.jp-tip-box.open { display: block; }
.jp-tip-box::before {
    content: ""; position: absolute; top: -6px; left: 10px;
    border-width: 0 6px 6px 6px; border-style: solid; border-color: transparent transparent #0b1f3d transparent;
}

.jp-error-box {
    display: none; background: #fef2f2; border: 1.5px solid #fecaca; color: #991b1b;
    border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; font-size: 0.88em;
    grid-column: 1 / -1; line-height: 1.45;
}

.jp-resumen-simple {
    background: #f0fdf4; border: 1.5px solid #bbf7d0; color: #166534;
    border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-size: 0.95em; line-height: 1.5;
}

.jp-ejemplo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f8fafc;
    border: 1.5px dashed #0b1f3d;
    color: #0b1f3d;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.84em;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.15s ease, transform 0.15s ease;
}
.jp-ejemplo-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    flex-shrink: 0;
}
.jp-ejemplo-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

/* ---- Explicación "¿Cómo se calculó?" FinTech ---- */
.jp-explicacion { margin-top: 14px; }
.jp-explicacion summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88em;
    font-weight: 700;
    color: #0b1f3d;
    padding: 8px 0;
    list-style: none;
}
.jp-explicacion summary::-webkit-details-marker { display: none; }
.jp-explicacion summary::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f3d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'%3E%3C/line%3E%3Cline x1='12' y1='20' x2='12' y2='4'%3E%3C/line%3E%3Cline x1='6' y1='20' x2='6' y2='14'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}
body.jp-dark .jp-explicacion summary::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='20' x2='18' y2='10'%3E%3C/line%3E%3Cline x1='12' y1='20' x2='12' y2='4'%3E%3C/line%3E%3Cline x1='6' y1='20' x2='6' y2='14'%3E%3C/line%3E%3C/svg%3E");
}
.jp-explicacion[open] summary::after { content: " (ocultar desglose)"; font-weight: 400; color: #64748b; font-size: 0.85em; }
.jp-explicacion-body {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 14px 16px; margin-top: 8px;
    font-size: 0.92em; color: #334155; line-height: 1.85;
}
#pdfContainer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
#pdfContainer button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    flex-shrink: 0;
}

/* ---- Banner de recordatorio de fechas clave ---- */
.jp-reminder {
    background: #0f274c; border: 1px solid rgba(255,255,255,0.12); color: #fff;
    border-radius: 12px; padding: 12px 14px; margin-bottom: 18px;
    font-size: 0.85em; display: flex; align-items: center; gap: 10px;
    box-sizing: border-box; width: 100%; text-align: left;
    word-break: break-word;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.jp-reminder span:nth-child(2) { flex: 1; min-width: 0; }
.jp-reminder button { margin-left: auto; background: none; border: none; color: #94a3b8; font-size: 1.1em; cursor: pointer; flex-shrink: 0; padding: 4px; }

/* ---- Toggle modo oscuro ---- */
.jp-theme-btn { background: none; border: none; color: #fff; font-size: 1.25em; cursor: pointer; padding: 4px 6px; }

/* ==========================================================================
   MODO OSCURO FINTECH NEO-BANKING (SAPPHIRE OLED)
   ========================================================================== */
body.jp-dark {
    background: radial-gradient(circle at 50% 0%, #102148 0%, #071124 70%, #040914 100%) fixed !important;
    background-color: #071124 !important;
    color: #f1f5f9;
}
body.jp-dark .jp-topbar {
    background: rgba(10, 22, 44, 0.92) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
body.jp-dark .container {
    background: rgba(14, 27, 52, 0.88) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
body.jp-dark .bloque,
body.jp-dark .jp-historial,
body.jp-dark .jp-explicacion-body,
body.jp-dark .jp-regimen-box {
    background: rgba(18, 35, 66, 0.75) !important;
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.4) !important;
}
body.jp-dark #resultado {
    background: linear-gradient(135deg, rgba(16, 32, 60, 0.95) 0%, rgba(10, 20, 38, 0.95) 100%) !important;
    color: #f1f5f9;
    border: 1.5px solid rgba(56, 189, 248, 0.3) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.6), 0 0 20px -5px rgba(56, 189, 248, 0.15) !important;
}
body.jp-dark label,
body.jp-dark .switch-row-label,
body.jp-dark .jp-switch-label { color: #cbd5e1 !important; }
body.jp-dark input,
body.jp-dark select {
    background: #09162c !important;
    color: #f8fafc !important;
    border: 1.5px solid #1e3a66 !important;
    border-radius: 12px !important;
}
body.jp-dark input:focus,
body.jp-dark select:focus {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 3.5px rgba(56, 189, 248, 0.25) !important;
}
body.jp-dark input::placeholder { color: #64748b; }
body.jp-dark .section-title {
    background: linear-gradient(135deg, rgba(26, 48, 86, 0.85) 0%, rgba(16, 32, 60, 0.9) 100%) !important;
    color: #f0f9ff !important;
    border-left-color: #38bdf8 !important;
    border-radius: 12px !important;
}
body.jp-dark .jp-sec-ico {
    background: rgba(56, 189, 248, 0.2) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.25);
}
body.jp-dark .res-line { border-bottom-color: rgba(255, 255, 255, 0.08) !important; color: #cbd5e1 !important; }
body.jp-dark .res-line span:last-child { color: #f8fafc !important; }
body.jp-dark footer { color: #64748b !important; border-top-color: rgba(255, 255, 255, 0.08) !important; }
body.jp-dark .jp-hist-item { border-bottom-color: rgba(255, 255, 255, 0.08) !important; }
body.jp-dark .jp-hist-top { color: #f1f5f9 !important; }
body.jp-dark .headerNote,
body.jp-dark p { color: #94a3b8; }
body.jp-dark .obs { color: #94a3b8 !important; }
body.jp-dark .total {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.95) 0%, rgba(6, 95, 70, 0.95) 100%) !important;
    border: 1.5px solid #10b981 !important;
    color: #34d399 !important;
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.3) !important;
    border-radius: 14px !important;
}
body.jp-dark .jp-resumen-simple { background: #064e3b !important; color: #a7f3d0 !important; border-color: #059669 !important; border-radius: 12px; }
body.jp-dark .jp-error-box { background: #450a0a !important; color: #fca5a5 !important; border-color: #7f1d1d !important; border-radius: 12px; }
body.jp-dark .jp-tip-btn { background: #1e355b; color: #94a3b8; }
body.jp-dark .jp-ejemplo-btn { background: #0b1a30; border-color: #38bdf8; color: #38bdf8; border-radius: 10px; }
body.jp-dark .jp-explicacion summary { color: #38bdf8; }
body.jp-dark .btn-calc button {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    box-shadow: 0 6px 20px -3px rgba(2, 132, 199, 0.5) !important;
}
