/* Estilos para la página de tutorial */

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

/* Header del Tutorial */
.tutorial-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.tutorial-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.tutorial-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.tutorial-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.progress-bar {
    width: 300px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #4CAF50;
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 20%;
}

.progress-text {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Navegación del Tutorial */
.tutorial-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    min-width: 150px;
    justify-content: center;
}

.nav-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.nav-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.nav-btn i {
    font-size: 1.1rem;
}

/* Contenido del Tutorial */
.tutorial-content {
    position: relative;
}

.tutorial-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

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

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

.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-title h2 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.8rem;
}

.step-title p {
    margin: 0;
    color: #666;
    font-size: 1.1rem;
}

.step-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    margin-bottom: 20px;
}

.step-image {
    position: relative;
}

.image-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    color: #666;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #999;
}

.image-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.image-placeholder small {
    font-size: 0.9rem;
    color: #999;
}

.tutorial-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.tutorial-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.step-explanation {
    padding: 20px 0;
}

.step-explanation h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.step-explanation p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.explanation-section {
    margin-bottom: 20px;
}

.explanation-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.field-list {
    list-style: none;
    padding: 0;
}

.field-list li {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.field-list strong {
    color: #333;
    display: block;
    margin-bottom: 8px;
}

.example {
    background: #e7f3ff;
    padding: 8px 12px;
    border-radius: 5px;
    margin-top: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #2c5aa0;
    border: 1px solid #b3d4fc;
}

.tip-small {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

/* Ejemplos en grid */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.example-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.example-card h5 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.example-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.example-card li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    background: none;
    border-left: none;
    margin: 0;
}

.example-card li:last-child {
    border-bottom: none;
}

/* Cajas de información */
.info-box {
    background: #e7f3ff;
    border: 1px solid #b3d4fc;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-box i {
    font-size: 1.5rem;
    color: #2c5aa0;
}

.tip-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tip-box i {
    font-size: 1.5rem;
    color: #f39c12;
}

.success-box {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.success-box i {
    font-size: 1.5rem;
    color: #28a745;
}

/* Tarjetas de información */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.info-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-card h5 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1rem;
}

.info-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Lista de procesos */
.process-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.process-list li {
    counter-increment: step-counter;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    position: relative;
    padding-left: 60px;
}

.process-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 20px;
    top: 20px;
    width: 30px;
    height: 30px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Ejemplo de cálculo */
.calculation-example {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.calc-step {
    margin-top: 15px;
}

.calc-step ul {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.calc-step li {
    padding: 5px 0;
    border-bottom: 1px solid #e0e0e0;
    background: none;
    border-left: none;
    margin: 0;
}

.calc-total {
    background: #e7f3ff;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    font-weight: bold;
    color: #2c5aa0;
}

/* Desglose de cálculo */
.calculation-breakdown {
    display: grid;
    gap: 15px;
    margin: 20px 0;
}

.calc-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.calc-item.highlight {
    background: #e7f3ff;
    border-color: #667eea;
    border-width: 2px;
}

.calc-item h5 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.calc-item p {
    color: #666;
    margin-bottom: 10px;
}

/* Lista de resultados */
.result-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.result-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    background: none;
    border-left: none;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-list li:last-child {
    border-bottom: none;
}

/* Tarjetas de acción */
.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.action-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-card i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 15px;
}

.action-card h5 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.action-card p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Lista de acceso */
.access-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.access-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    background: none;
    border-left: none;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.access-list li:last-child {
    border-bottom: none;
}

/* Navegación entre pasos */
.tutorial-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.step-indicators {
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #667eea;
    transform: scale(1.2);
}

.indicator:hover {
    background: #999;
}

/* Acciones finales */
.tutorial-actions {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.action-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tutorial-container {
        padding: 10px;
    }
    
    .tutorial-header {
        padding: 30px 15px;
    }
    
    .tutorial-header h1 {
        font-size: 2rem;
    }
    
    .tutorial-subtitle {
        font-size: 1rem;
    }
    
    .tutorial-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .step-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .step-title h2 {
        font-size: 1.5rem;
    }
    
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .tutorial-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .progress-bar {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .tutorial-header h1 {
        font-size: 1.8rem;
    }
    
    .step-title h2 {
        font-size: 1.3rem;
    }
    
    .nav-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .nav-btn span {
        display: none;
    }
    
    .nav-btn i {
        font-size: 1.2rem;
    }
    
    .progress-bar {
        width: 150px;
    }
}
