/* css/onboarding_tour.css — Estilos del tour guiado de onboarding */

.otour-overlay {
    position: fixed; inset: 0;
    background: rgba(16, 44, 94, 0.55);
    z-index: 9000;
    display: none;
    transition: opacity 0.25s;
}
.otour-overlay.show { display: block; }

.otour-spotlight {
    position: fixed;
    z-index: 9001;
    border: 3px solid #299ecd;
    border-radius: 10px;
    box-shadow: 0 0 0 9999px rgba(16, 44, 94, 0.55);
    pointer-events: none;
    transition: all 0.3s ease;
}

.otour-tooltip {
    position: fixed;
    z-index: 9002;
    background: white;
    border-radius: 12px;
    padding: 20px;
    max-width: 340px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1f36;
}
.otour-tooltip h4 {
    color: #102c5e;
    margin: 0 0 8px 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.otour-tooltip .otour-step-num {
    background: linear-gradient(135deg, #102c5e 0%, #299ecd 100%);
    color: white;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}
.otour-tooltip p {
    color: #1a1f36;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 16px 0;
}
.otour-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.otour-progress { font-size: 11px; color: #6b7280; }
.otour-btns { display: flex; gap: 6px; }
.otour-btn {
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    font-family: inherit;
}
.otour-btn.secondary {
    background: transparent;
    color: #6b7280;
}
.otour-btn.secondary:hover { background: #e5e7eb; }
.otour-btn.primary {
    background: linear-gradient(135deg, #102c5e 0%, #299ecd 100%);
    color: white;
}
.otour-btn.primary:hover { opacity: 0.9; }

.otour-tooltip::before {
    content: '';
    position: absolute;
    width: 0; height: 0;
    border: 8px solid transparent;
}
.otour-tooltip[data-arrow="top"]::before {
    top: -16px; left: 20px;
    border-bottom-color: white;
}
.otour-tooltip[data-arrow="bottom"]::before {
    bottom: -16px; left: 20px;
    border-top-color: white;
}
.otour-tooltip[data-arrow="left"]::before {
    left: -16px; top: 20px;
    border-right-color: white;
}
.otour-tooltip[data-arrow="right"]::before {
    right: -16px; top: 20px;
    border-left-color: white;
}

/* Animacion de entrada */
.otour-tooltip {
    animation: otourFadeIn 0.25s ease;
}
@keyframes otourFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Help button flotante (para reabrir tour) */
.otour-help-btn {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: white;
    color: #102c5e;
    border: 1px solid #e5e7eb;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 8999;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.otour-help-btn:hover {
    background: #f3f4f6;
    transform: scale(1.05);
}
.otour-help-btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    right: 50px;
    background: #102c5e;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
}
