/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c5aa0;
    --secondary-color: #4caf50;
    --accent-color: #ff9800;
    --danger-color: #f44336;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-lg: 0 5px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.tutorial-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3c72 100%);
    color: var(--white);
    padding: 30px 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-section i {
    font-size: 48px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.tutorial-header h1 {
    font-size: 32px;
    font-weight: 700;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
}

/* Progress Bar */
.progress-container {
    background: var(--white);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 130px;
    z-index: 999;
}

.progress-bar {
    height: 8px;
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 8.33%; /* 1/12 */
    max-width: 100%;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Main Layout */
.tutorial-main {
    padding: 40px 0;
}

.tutorial-main .container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

/* Sidebar */
.tutorial-sidebar {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: var(--shadow-lg);
    height: fit-content;
    position: sticky;
    top: 200px;
}

.tutorial-sidebar h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tutorial-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.nav-item:hover {
    background: var(--light-color);
    transform: translateX(5px);
}

.nav-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3c72 100%);
    color: var(--white);
    box-shadow: var(--shadow);
}

.nav-item.completed {
    border-color: var(--secondary-color);
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.nav-item.active .step-number {
    background: var(--white);
    color: var(--primary-color);
}

.step-title {
    flex: 1;
    font-weight: 500;
}

.step-check {
    color: var(--secondary-color);
    opacity: 0;
    transition: var(--transition);
}

.nav-item.completed .step-check {
    opacity: 1;
}

/* Content Area */
.tutorial-content {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    min-height: 600px;
}

.step-content {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: 30px;
    border-bottom: 3px solid var(--light-color);
    padding-bottom: 20px;
}

.step-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, #f57c00 100%);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.step-header h2 {
    color: var(--primary-color);
    font-size: 32px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.step-header h2 i {
    font-size: 36px;
}

/* Content Cards */
.content-card {
    margin-bottom: 30px;
}

.content-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
}

.content-card p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-card i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.feature-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    opacity: 0.9;
    color: var(--white);
}

/* Info Boxes */
.info-box, .tip-box, .warning-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.info-box {
    background: #e3f2fd;
    border-left: 5px solid #2196f3;
}

.tip-box {
    background: #fff3e0;
    border-left: 5px solid var(--accent-color);
}

.warning-box {
    background: #ffebee;
    border-left: 5px solid var(--danger-color);
}

.info-box i, .tip-box i, .warning-box i {
    font-size: 32px;
    flex-shrink: 0;
}

.info-box i {
    color: #2196f3;
}

.tip-box i {
    color: var(--accent-color);
}

.warning-box i {
    color: var(--danger-color);
}

.info-box h4, .tip-box h4, .warning-box h4 {
    margin-bottom: 8px;
    font-size: 18px;
}

/* System Info */
.system-info {
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.system-info h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.system-info ul {
    list-style: none;
}

.system-info li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.system-info li:last-child {
    border-bottom: none;
}

/* Roles Comparison */
.roles-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.role-card {
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.role-card.admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.role-card.collaborator {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: var(--white);
}

.role-icon {
    text-align: center;
    margin-bottom: 20px;
}

.role-icon i {
    font-size: 64px;
}

.role-card h4 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
}

.role-description {
    text-align: center;
    margin-bottom: 20px;
    opacity: 0.9;
    color: var(--white) !important;
}

.permissions-list {
    list-style: none;
    margin: 20px 0;
}

.permissions-list li {
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.permissions-list i.fa-check {
    color: #4caf50;
}

.permissions-list i.fa-times {
    color: #f44336;
}

.credentials-demo {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.credentials-demo p {
    margin: 5px 0;
    color: var(--white) !important;
}

/* Demo Login */
.demo-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.login-form-demo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 15px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header i {
    font-size: 48px;
    margin-bottom: 15px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.form-header h3 {
    font-size: 24px;
    margin-bottom: 5px;
    color: var(--white);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255,255,255,0.9);
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.login-demo-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.login-demo-result.success {
    background: rgba(76, 175, 80, 0.3);
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-steps {
    background: var(--light-color);
    padding: 30px;
    border-radius: 15px;
}

.login-steps h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.login-steps ol {
    padding-left: 25px;
}

.login-steps li {
    padding: 10px 0;
    line-height: 1.6;
}

/* Dashboard Demo */
.dashboard-demo {
    background: var(--light-color);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.dashboard-header-demo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info i {
    font-size: 48px;
    color: var(--primary-color);
}

.user-name {
    font-weight: 700;
    font-size: 18px;
    color: var(--dark-color);
}

.user-role {
    color: var(--secondary-color);
    font-size: 14px;
}

.btn-logout {
    padding: 10px 20px;
    background: var(--danger-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-logout:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card.blue .stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.green .stat-icon {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.stat-card.orange .stat-icon {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.stat-card.purple .stat-icon {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 32px;
    flex-shrink: 0;
}

.stat-info h4 {
    color: #666;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.stat-change {
    font-size: 13px;
    color: #666;
}

.stat-change.positive {
    color: var(--secondary-color);
}

.stat-change i {
    margin-right: 5px;
}

/* Quick Actions */
.quick-actions {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.quick-actions h4 {
    color: var(--primary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.action-btn {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e3c72 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

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

.action-btn i {
    font-size: 32px;
}

/* Elements Explanation */
.elements-explanation {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.element-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.element-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    flex-shrink: 0;
}

.element-icon.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.element-icon.green {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.element-icon.orange {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

.element-text h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}

.element-text p {
    color: #666;
    line-height: 1.6;
}

/* Navigation Buttons */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--light-color);
}

.btn-nav {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-prev {
    background: #95a5a6;
    color: var(--white);
}

.btn-prev:hover {
    background: #7f8c8d;
    transform: translateX(-5px);
}

.btn-next, .btn-finish {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #45a049 100%);
    color: var(--white);
}

.btn-next:hover, .btn-finish:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.btn-prev:disabled, .btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
.tutorial-footer {
    background: var(--dark-color);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.tutorial-footer p {
    margin: 5px 0;
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tutorial-main .container {
        grid-template-columns: 1fr;
    }

    .tutorial-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .demo-login {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tutorial-header h1 {
        font-size: 24px;
    }

    .logo-section i {
        font-size: 36px;
    }

    .step-header h2 {
        font-size: 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .roles-comparison {
        grid-template-columns: 1fr;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn-nav {
        width: 100%;
        justify-content: center;
    }
}
