/**
 * tutorial-interactivo.css
 * 
 * Estilos para el tutorial interactivo de la aplicación Entrename.
 * Incluye elementos de overlay, modal, botones y efectos de transición.
 */

/* Overlay de fondo para el tutorial */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

/* Modal del tutorial */
.tutorial-modal {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    width: 90%;
    max-width: 500px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Highlight para el elemento objetivo */
.tutorial-highlight {
    position: absolute;
    border: 3px solid #2196F3;
    border-radius: 8px;
    background-color: rgba(33, 150, 243, 0.1);
    z-index: 9997;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Encabezado del modal */
.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tutorial-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
}

/* Contenido del modal */
.tutorial-content {
    margin-bottom: 24px;
}

.tutorial-content p {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Pie del modal con botones */
.tutorial-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Estilos para los botones */
.tutorial-prev-btn,
.tutorial-next-btn,
.tutorial-skip-btn,
.tutorial-finish-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.9rem;
}

.tutorial-prev-btn {
    background-color: #e2e8f0;
    color: #4a5568;
}

.tutorial-prev-btn:hover {
    background-color: #cbd5e0;
}

.tutorial-next-btn,
.tutorial-finish-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tutorial-next-btn:hover,
.tutorial-finish-btn:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.tutorial-skip-btn {
    background: none;
    color: #718096;
    padding: 5px 10px;
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.8rem;
}

.tutorial-skip-btn:hover {
    color: #4a5568;
    text-decoration: underline;
}

/* Mensaje de éxito al completar el tutorial */
.tutorial-success {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.tutorial-success-inner {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    animation: success-pop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tutorial-success-inner h3 {
    margin: 0 0 16px 0;
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 700;
}

.tutorial-success-inner p {
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.tutorial-success-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tutorial-success-btn:hover {
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

/* Botón de inicio del tutorial */
.tutorial-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(102, 126, 234, 0.2);
}

.tutorial-button:hover {
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.tutorial-button i {
    font-size: 1rem;
}

/* Versión flotante del botón de tutorial para otras páginas */
.tutorial-button-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 90;
    padding: 10px 18px;
}

/* Versión inline del botón de tutorial para contenedores flex */
.tutorial-button-inline {
    position: relative;
    z-index: 10;
    padding: 6px 12px;
    font-size: 0.8rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Animaciones */
@keyframes success-pop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .tutorial-modal {
        width: 95%;
        padding: 20px;
    }
    
    .tutorial-header h3 {
        font-size: 1.3rem;
    }
    
    .tutorial-content p {
        font-size: 0.95rem;
    }
    
    .tutorial-footer {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tutorial-prev-btn,
    .tutorial-next-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .tutorial-success-inner {
        width: 90%;
        padding: 30px;
    }
    
    .tutorial-success-inner h3 {
        font-size: 1.5rem;
    }
    
    .tutorial-success-inner p {
        font-size: 1rem;
    }
    
    .tutorial-success-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .tutorial-button-floating {
        padding: 8px 12px;
        font-size: 14px;
        font-weight: 500;
        display: flex;
        align-items: center;
        margin-left: auto;
        transition: all 0.3s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .tutorial-modal {
        width: 90%;
        max-width: 300px;
    }

    .tutorial-footer button {
        padding: 8px 12px;
        font-size: 13px;
    }
    .tutorial-header h3 {
        font-size: 16px;
    }
}
