/* ==============================================================================
   ESTILOS ESPECÍFICOS DEL SHOWCASE DEL MANUAL DE IDENTIDAD
   ============================================================================== */

/* Layout del Manual */
.showcase-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 24px 80px;
}

/* Hero Section del Manual */
.manual-hero {
    background: linear-gradient(135deg, #103e4d 0%, #0d3b43 60%, #07222b 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 50px 45px;
    margin-bottom: 45px;
    box-shadow: 0 20px 45px rgba(16, 62, 77, 0.25);
    position: relative;
    overflow: hidden;
}

.manual-hero::after {
    content: '';
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(182, 63, 53, 0.25) 0%, rgba(182, 63, 53, 0) 70%);
    pointer-events: none;
}

.manual-hero-title {
    font-family: var(--timt-font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 12px;
}

.manual-hero-subtitle {
    font-size: 1.2rem;
    color: #e2e8f0;
    max-width: 750px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.manual-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.manual-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.manual-pill-highlight {
    background: #b63f35;
    border-color: #b63f35;
}

/* Barra de Navegación Rápida del Manual */
.manual-quicknav {
    position: sticky;
    top: 15px;
    z-index: 95;
    background: rgba(242, 233, 211, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid #dcd4c6;
    border-radius: 16px;
    padding: 10px 18px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.manual-nav-link {
    white-space: nowrap;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    color: #103e4d;
    padding: 7px 15px;
    border-radius: 20px;
    transition: all 0.2s;
}

.manual-nav-link:hover {
    background: rgba(16, 62, 77, 0.1);
}

.manual-nav-link.active {
    background: #103e4d;
    color: #ffffff;
}

/* Secciones */
.manual-section {
    margin-bottom: 60px;
    scroll-margin-top: 90px;
}

.section-header {
    margin-bottom: 25px;
    display: flex;
    align-items: baseline;
    gap: 15px;
    border-bottom: 2px solid #dcd4c6;
    padding-bottom: 12px;
}

.section-number {
    font-family: var(--timt-font-display);
    color: #b63f35;
    font-size: 1.5rem;
    font-weight: 700;
}

.section-title {
    font-family: var(--timt-font-serif);
    font-size: 2.1rem;
    color: #103e4d;
    font-weight: 700;
}

.section-desc {
    color: #555555;
    font-size: 1rem;
    margin-top: -15px;
    margin-bottom: 25px;
}

/* Grilla de Logos */
.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.logo-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s, box-shadow 0.25s;
}

.logo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.logo-preview-box {
    background: #fbf8f1;
    border: 1px dashed #dcd4c6;
    border-radius: 12px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin-bottom: 18px;
    position: relative;
}

.logo-preview-box.dark {
    background: #103e4d;
}

.logo-preview-box img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
}

.logo-meta {
    margin-bottom: 15px;
}

.logo-name {
    font-weight: 700;
    color: #103e4d;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.logo-sub {
    font-size: 0.82rem;
    color: #666;
}

.logo-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.btn-copy-code {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-copy-code:hover {
    background: #103e4d;
    color: #ffffff;
    border-color: #103e4d;
}

/* Grilla de Colores */
.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.color-card {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.color-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.color-swatch {
    height: 100px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.color-info {
    padding: 14px;
}

.color-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #103e4d;
    margin-bottom: 2px;
}

.color-hex {
    font-family: monospace;
    font-size: 0.9rem;
    color: #4b5563;
    font-weight: 600;
}

.color-token {
    font-family: monospace;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 4px;
}

/* Playground de Alertas */
.alert-playground {
    background: var(--timt-surface);
    border-radius: 20px;
    padding: 35px 30px;
    box-shadow: var(--timt-shadow-elevated);
    border: 1px solid var(--timt-border-color);
    color: var(--timt-text-main);
}

.interactive-alert-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 35px;
}

/* ==============================================================================
   CATÁLOGO DE EJEMPLOS SWEETALERT2 (ESTILO SWEETALERT2.GITHUB.IO)
   ============================================================================== */
.swal-examples-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin: 25px 0 35px;
}

.swal-example-item {
    background: var(--timt-surface);
    border: 1px solid var(--timt-border-color);
    border-radius: 16px;
    box-shadow: var(--timt-shadow-sm);
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    align-items: center;
    transition: var(--timt-transition);
}

@media (max-width: 900px) {
    .swal-example-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.swal-example-item:hover {
    border-color: var(--timt-primary);
    box-shadow: var(--timt-shadow-md);
    transform: translateY(-2px);
}

.swal-example-info h4 {
    color: var(--timt-primary-accent, var(--timt-primary));
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.swal-example-info p {
    color: var(--timt-text-muted);
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 14px;
}

.swal-example-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(16, 62, 77, 0.2);
}

.swal-example-code-wrapper {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #1e293b;
    position: relative;
}

.swal-example-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #090e17;
    padding: 8px 16px;
    border-bottom: 1px solid #1e293b;
}

.swal-example-code-tag {
    font-family: monospace;
    font-size: 0.78rem;
    color: #38bdf8;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.swal-example-code-wrapper pre {
    margin: 0;
    padding: 14px 18px;
    color: #f1f5f9;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.55;
    overflow-x: auto;
}

/* Tabs de Código Multilenguaje */
.lang-tabs-container {
    background: var(--timt-surface);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--timt-border-color);
    box-shadow: var(--timt-shadow-md);
    color: var(--timt-text-main);
}

.lang-tabs-header,
.lang-tabs-bar {
    display: flex;
    background: #0d3b43;
    overflow-x: auto;
    border-bottom: 2px solid #103e4d;
}

.lang-tab-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 14px 24px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.lang-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.lang-tab-btn.active {
    color: #ffffff;
    background: #103e4d;
    border-bottom-color: #b63f35;
}

.lang-tab-pane {
    display: none;
    padding: 30px;
}

.lang-tab-pane.active {
    display: block;
    animation: timtFadeIn 0.3s ease;
}

/* Cajas de Código */
.code-box {
    position: relative;
    background: #0f172a;
    border-radius: 12px;
    margin-top: 15px;
    overflow: hidden;
    border: 1px solid #1e293b;
}

.code-header,
.code-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #090e17;
    padding: 10px 18px;
    color: #94a3b8;
    font-size: 0.8rem;
    font-family: monospace;
    border-bottom: 1px solid #1e293b;
}

.code-lang-tag {
    color: #38bdf8;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.code-copy-btn,
.btn-copy-code {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.76rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.code-copy-btn:hover,
.btn-copy-code:hover {
    background: #103e4d;
    border-color: #38bdf8;
    color: #ffffff;
}

.code-pre {
    margin: 0;
    padding: 18px;
    color: #f1f5f9;
    background: #0f172a;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.88rem;
    line-height: 1.6;
    overflow-x: auto;
}

/* Antigravity Special Banner */
.antigravity-hero-banner {
    background: linear-gradient(135deg, #103e4d 0%, #1e1b4b 100%);
    border: 2px solid #38bdf8;
    border-radius: 20px;
    padding: 35px;
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
}

.antigravity-badge {
    background: #38bdf8;
    color: #0f172a;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 12px;
}

.prompt-copy-box {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 18px;
    margin-top: 15px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    position: relative;
}

/* Toast de Copiado Rápido */
.copy-tooltip {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    background: #103e4d;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 999999;
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Grilla de Análisis de Sentimiento */
.sentiment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 20px 0 30px;
}

.sentiment-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sentiment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.sentiment-gif {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
}

.sentiment-label {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.sentiment-code {
    font-family: monospace;
    font-size: 0.8rem;
    color: #64748b;
}

/* Buscador de Folios */
.ticket-lookup-box {
    display: flex;
    gap: 10px;
    max-width: 550px;
    margin: 15px 0 25px;
}

.ticket-lookup-input {
    flex: 1;
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==============================================================================
   SELECTOR DE TEMA (DÍA / NOCHE) Y ESTILOS NOCTURNOS DEL SHOWCASE
   ============================================================================== */
.timt-theme-switcher {
    display: inline-flex;
    align-items: center;
    background: var(--timt-surface-alt);
    border: 1.5px solid var(--timt-border-cream);
    border-radius: 30px;
    padding: 3px;
    gap: 2px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--timt-transition);
}

.timt-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--timt-font-sans);
    color: var(--timt-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.timt-theme-btn:hover {
    color: var(--timt-text-main);
}

.timt-theme-btn.active {
    background: var(--timt-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(16, 62, 77, 0.25);
}

.theme-icon {
    font-size: 0.95rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.timt-theme-btn:hover .theme-icon {
    transform: scale(1.15);
}

/* --- ADAPTACIONES DEL SHOWCASE EN MODO NOCHE (DARK THEME) --- */
[data-theme="dark"] .manual-quicknav,
body.timt-dark .manual-quicknav {
    background: rgba(12, 28, 34, 0.94);
    border-color: #1e3944;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .manual-nav-link,
body.timt-dark .manual-nav-link {
    color: #7dd3fc;
}

[data-theme="dark"] .manual-nav-link:hover,
body.timt-dark .manual-nav-link:hover {
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
}

[data-theme="dark"] .manual-nav-link.active,
body.timt-dark .manual-nav-link.active {
    background: #1a627a;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.3);
}

[data-theme="dark"] .section-header,
body.timt-dark .section-header {
    border-bottom-color: #1e3944;
}

[data-theme="dark"] .section-title,
body.timt-dark .section-title {
    color: #38bdf8;
}

[data-theme="dark"] .section-desc,
body.timt-dark .section-desc {
    color: #9bb7c2;
}

[data-theme="dark"] .logo-card,
body.timt-dark .logo-card {
    background: #132730;
    border-color: #1e3a45;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .logo-name,
body.timt-dark .logo-name {
    color: #38bdf8;
}

[data-theme="dark"] .logo-sub,
body.timt-dark .logo-sub {
    color: #9bb7c2;
}

[data-theme="dark"] .logo-preview-box,
body.timt-dark .logo-preview-box {
    background: #0a1b21;
    border-color: #1e3944;
}

[data-theme="dark"] .logo-preview-box:not(.dark) img,
body.timt-dark .logo-preview-box:not(.dark) img {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

[data-theme="dark"] .color-card,
body.timt-dark .color-card {
    background: #132730;
    border-color: #1e3a45;
}

[data-theme="dark"] .color-token,
body.timt-dark .color-token {
    color: #38bdf8;
}

[data-theme="dark"] .color-usage,
body.timt-dark .color-usage {
    color: #9bb7c2;
}

[data-theme="dark"] .sentiment-card,
body.timt-dark .sentiment-card {
    background: #132730;
    border-color: #1e3a45;
}

[data-theme="dark"] .sentiment-label,
body.timt-dark .sentiment-label {
    color: #edf6f9;
}

[data-theme="dark"] .sentiment-code,
body.timt-dark .sentiment-code {
    color: #72919d;
}

[data-theme="dark"] .btn-copy-code,
body.timt-dark .btn-copy-code {
    background: #182f3a;
    border-color: #234350;
    color: #cbd5e1;
}

[data-theme="dark"] .btn-copy-code:hover,
body.timt-dark .btn-copy-code:hover {
    background: #1a627a;
    border-color: #38bdf8;
    color: #ffffff;
}

[data-theme="dark"] .ticket-lookup-input,
body.timt-dark .ticket-lookup-input {
    background: #0b1a20;
    border-color: #234350;
    color: #edf6f9;
}

[data-theme="dark"] .timt-id-badge,
body.timt-dark .timt-id-badge {
    background: #10232a;
    border-color: #1e3a45;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .timt-badge-header,
body.timt-dark .timt-badge-header {
    background: #ffffff !important;
    border-bottom-color: #1e3a45;
}

[data-theme="dark"] .timt-badge-avatar,
body.timt-dark .timt-badge-avatar {
    background: #ffffff !important;
    border-color: #38bdf8;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.25);
}

[data-theme="dark"] .timt-badge-qr-box,
body.timt-dark .timt-badge-qr-box {
    background: #ffffff !important;
    border-color: #cbd5e1;
}

[data-theme="dark"] .timt-badge-meta-grid,
body.timt-dark .timt-badge-meta-grid {
    background: #091519;
    border-color: #1e3a45;
}

[data-theme="dark"] .timt-badge-meta-val,
body.timt-dark .timt-badge-meta-val {
    color: #edf6f9;
}

[data-theme="dark"] .timt-badge-name,
body.timt-dark .timt-badge-name {
    color: #38bdf8;
}

[data-theme="dark"] .timt-badge-role,
body.timt-dark .timt-badge-role {
    color: #f87171;
}

[data-theme="dark"] .timt-badge-qr,
body.timt-dark .timt-badge-qr {
    background: #091519;
    border-top-color: #1e3a45;
}

[data-theme="dark"] .timt-badge-qr-title,
body.timt-dark .timt-badge-qr-title {
    color: #38bdf8;
}

[data-theme="dark"] .timt-badge-top-slot,
body.timt-dark .timt-badge-top-slot {
    background: #0b1a20;
    border-bottom-color: #1e3a45;
}

[data-theme="dark"] .timt-badge-lanyard-hole,
body.timt-dark .timt-badge-lanyard-hole {
    background: #061014;
    border-color: #1e3a45;
}

[data-theme="dark"] .timt-theme-switcher,
body.timt-dark .timt-theme-switcher {
    background: #0b1a20;
    border-color: #1e3944;
}

[data-theme="dark"] .timt-theme-btn.active,
body.timt-dark .timt-theme-btn.active {
    background: #1a627a;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.4);
}

[data-theme="dark"] .timt-transport-ticket,
body.timt-dark .timt-transport-ticket {
    background: #0f242c;
    border-color: #38bdf8;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 10px rgba(56, 189, 248, 0.15);
}

[data-theme="dark"] .timt-transport-ticket .timt-ticket-header span:first-child,
body.timt-dark .timt-transport-ticket .timt-ticket-header span:first-child {
    color: #38bdf8 !important;
}

[data-theme="dark"] .timt-transport-ticket .timt-ticket-body div:nth-child(2),
body.timt-dark .timt-transport-ticket .timt-ticket-body div:nth-child(2) {
    color: #f0fdf4 !important;
}

[data-theme="dark"] .timt-transport-ticket .timt-ticket-body div:nth-child(3),
body.timt-dark .timt-transport-ticket .timt-ticket-body div:nth-child(3) {
    color: #9bb7c2 !important;
}

[data-theme="dark"] .timt-ticket-notch::before,
[data-theme="dark"] .timt-ticket-notch::after,
body.timt-dark .timt-ticket-notch::before,
body.timt-dark .timt-ticket-notch::after {
    background: #132730;
}

[data-theme="dark"] .timt-header .timt-logo-container span,
body.timt-dark .timt-header .timt-logo-container span {
    color: #edf6f9 !important;
    border-left-color: #1e3944 !important;
}

[data-theme="dark"] .timt-header .timt-logo-container span small,
body.timt-dark .timt-header .timt-logo-container span small {
    color: #9bb7c2 !important;
}

[data-theme="dark"] .timt-header img[src*="banobras"],
[data-theme="dark"] .timt-header img[src*="fonadin"],
body.timt-dark .timt-header img[src*="banobras"],
body.timt-dark .timt-header img[src*="fonadin"] {
    filter: brightness(0) invert(1) opacity(0.85);
}

[data-theme="dark"] .timt-header img[src*="logo_elinsurgente"],
body.timt-dark .timt-header img[src*="logo_elinsurgente"] {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
}

/* ==============================================================================
   REGLAS GLOBALES DE CONTRASTE (GARANTIZAN QUE EL TEXTO NUNCA IGUALE AL FONDO)
   ============================================================================== */
/* Títulos y encabezados en Modo Oscuro */
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4,
body.timt-dark h1, body.timt-dark h2, body.timt-dark h3, body.timt-dark h4 {
    color: #edf6f9;
}

[data-theme="dark"] [style*="color: #103e4d"],
body.timt-dark [style*="color: #103e4d"],
[data-theme="dark"] [style*="color:#103e4d"],
body.timt-dark [style*="color:#103e4d"] {
    color: #38bdf8 !important;
}

[data-theme="dark"] [style*="color: #666"],
body.timt-dark [style*="color: #666"],
[data-theme="dark"] [style*="color:#666"],
body.timt-dark [style*="color:#666"],
[data-theme="dark"] [style*="color: #555"],
body.timt-dark [style*="color: #555"],
[data-theme="dark"] [style*="color: #4b5563"],
body.timt-dark [style*="color: #4b5563"] {
    color: #9bb7c2 !important;
}

[data-theme="dark"] [style*="color: #333"],
body.timt-dark [style*="color: #333"],
[data-theme="dark"] [style*="color:#333"],
body.timt-dark [style*="color:#333"] {
    color: #edf6f9 !important;
}

[data-theme="dark"] [style*="background: #ffffff"],
body.timt-dark [style*="background: #ffffff"],
[data-theme="dark"] [style*="background:#ffffff"],
body.timt-dark [style*="background:#ffffff"] {
    background: #132730 !important;
    border-color: #1e3a45 !important;
}

[data-theme="dark"] [style*="background: #fbf8f1"],
body.timt-dark [style*="background: #fbf8f1"],
[data-theme="dark"] [style*="background:#fbf8f1"],
body.timt-dark [style*="background:#fbf8f1"],
[data-theme="dark"] [style*="background: #f8fafc"],
body.timt-dark [style*="background: #f8fafc"] {
    background: #0b1a20 !important;
    border-color: #1e3944 !important;
}

[data-theme="dark"] [style*="border-bottom: 1px solid #eee"],
body.timt-dark [style*="border-bottom: 1px solid #eee"] {
    border-bottom-color: #1e3a45 !important;
}

/* En Modo Claro, asegurar que los bloques de código tengan texto claro sobre fondo oscuro */
[data-theme="light"] .code-box,
:root:not([data-theme="dark"]) .code-box {
    background: #0f172a;
    color: #f1f5f9;
}

[data-theme="light"] .code-pre,
:root:not([data-theme="dark"]) .code-pre {
    color: #f1f5f9 !important;
    background: #0f172a !important;
}

[data-theme="light"] .swal-example-code-wrapper,
:root:not([data-theme="dark"]) .swal-example-code-wrapper {
    background: #0f172a;
    color: #f1f5f9;
}

[data-theme="light"] .swal-example-code-wrapper pre,
:root:not([data-theme="dark"]) .swal-example-code-wrapper pre {
    color: #f1f5f9 !important;
    background: #0f172a !important;
}

/* Hoja de papel simulada oficial (@media print preview) */
.timt-paper-sheet {
    background: #fafaf9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 25px;
    max-width: 750px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: #1e293b;
    transition: var(--timt-transition);
}

[data-theme="dark"] .timt-paper-sheet,
body.timt-dark .timt-paper-sheet {
    background: #0f2229;
    border-color: #1e3a45;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    color: #edf6f9;
}



