/* ===================================
   DEMO - Estilos exclusivos del mockup:
   explorador de archivos simulado, distintivo DEMO
   y pantalla de "aplicación cerrada"
   =================================== */

/* Distintivo permanente de datos ficticios */
.demo-badge {
    position: fixed;
    bottom: 12px;
    left: 12px;
    z-index: 998;
    background: rgba(44, 62, 80, 0.85);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
    pointer-events: none;
    user-select: none;
}

/* Explorador de archivos simulado */
.explorer-content {
    max-width: 640px;
}

.explorer-help {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 15px;
}

.explorer-tree {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
}

.explorer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.explorer-row:hover {
    background: #f0f9ff;
}

.explorer-row.selected {
    background: #dbeafe;
    font-weight: 600;
}

.explorer-row .caret {
    width: 16px;
    text-align: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.explorer-row .node-icon {
    flex-shrink: 0;
}

.explorer-row .node-name {
    flex: 1;
    word-break: break-word;
}

.explorer-row .node-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.explorer-row.empty-row {
    color: var(--text-secondary);
    font-style: italic;
    cursor: default;
}

.explorer-row.empty-row:hover {
    background: #fff;
}

.explorer-children {
    margin-left: 24px;
    border-left: 1px dashed var(--border-color);
}

.explorer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.explorer-selection {
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex: 1;
    min-width: 180px;
}

/* Pantalla de "aplicación cerrada" (simulación del shutdown del ejecutable) */
.closed-overlay {
    display: none;
    position: fixed;
    z-index: 20000;
    inset: 0;
    background: linear-gradient(135deg, #1E3A5F 0%, #004481 100%);
    color: white;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.closed-overlay.show {
    display: flex;
}

.closed-box h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.closed-box p {
    opacity: 0.9;
    margin-bottom: 25px;
}

.btn-restart {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 14px 34px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.btn-restart:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
