/* Estilos Base */
.journey-content {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Navegación y Tabs */
.journey-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.journey-tabs .nav-link {
    color: #6c757d;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.journey-tabs .nav-link:hover {
    color: #007bff;
    border: none;
}

.journey-tabs .nav-link.active {
    color: #007bff;
    border: none;
    border-bottom: 2px solid #007bff;
    background: transparent;
}

/* Etapas */
.stages-flow {
    position: relative;
    padding: 2rem 0;
}

.stage-block {
    position: relative;
    margin-bottom: 3rem;
}

.stage-number {
    position: absolute;
    left: -3rem;
    top: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    z-index: 2;
}

.stage-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-left: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stage-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

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

.stage-type {
    background: #e9ecef;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #6c757d;
}

.stage-states {
    display: flex;
    align-items: stretch;
    margin-bottom: 2rem;
    gap: 2rem;
}

.state-card {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
}

.state-card.initial {
    border-left: 4px solid #28a745;
}

.state-card.target {
    border-left: 4px solid #007bff;
}

/* Botones de Acción */
.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.btn-back {
    padding: 0.5rem 1rem;
    color: #6c757d;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background-color: #e9ecef;
    color: #495057;
}

.btn-next {
    padding: 0.5rem 1.5rem;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-next:hover {
    background-color: #0056b3;
}

/* Contexto */
.context-section {
    padding: 2rem;
}

.context-block {
    margin-bottom: 2rem;
}

.context-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.context-title i {
    color: #64748b;
    font-size: 1.25rem;
}

.context-description {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-role {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.profile-role i {
    color: #64748b;
}

.responsibilities-list {
    list-style: none;
    padding-left: 1.5rem;
    margin: 0;
}

.responsibilities-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #475569;
}

.responsibilities-list li i {
    color: #3b82f6;
}

.objectives-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.objectives-section,
.metrics-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
}

.objectives-list,
.metrics-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.objectives-list li,
.metrics-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: #475569;
}

.objectives-list li i {
    color: #22c55e;
}

.metrics-list li i {
    color: #3b82f6;
}

/* Flujos Alternativos */
.flow-section {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 8px;
}

.flow-header {
    margin-bottom: 2rem;
}

.flow-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.flow-subtitle {
    color: #64748b;
}

.flow-card {
    position: relative;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.flow-type-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #f8fafc;
    color: #64748b;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
}

.activation-condition {
    background: #fff8e1;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.activation-condition h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #b45309;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.activation-condition i {
    color: #d97706;
}

.steps-sequence {
    margin: 2rem 0;
}

.step-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    position: relative;
}

.step-number {
    width: 2rem;
    height: 2rem;
    background: #e2e8f0;
    color: #475569;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    padding-top: 0.25rem;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 1rem;
    top: 3rem;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.decision-points {
    margin: 2rem 0;
}

.decision-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.decision-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.decision-header {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.criteria-section,
.outcomes-section {
    margin-top: 1rem;
}

.criteria-list,
.outcomes-list {
    list-style: none;
    padding-left: 1.5rem;
}

.criteria-list li,
.outcomes-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    color: #475569;
}

/* Requerimientos */
.requirements-section {
    padding: 2rem;
}

.requirement-category {
    margin-bottom: 2.5rem;
}

.requirement-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.requirement-header i {
    font-size: 1.25rem;
}

.requirement-header h3 {
    color: #2c3e50;
    font-size: 1.25rem;
    margin: 0;
}

.requirement-list {
    list-style: none;
    padding-left: 2rem;
    margin: 0;
}

.requirement-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #475569;
}

/* Colores específicos por categoría */
.accessibility-header i { color: #9333ea; }
.security-header i { color: #e11d48; }
.performance-header i { color: #0284c7; }
.platform-header i { color: #16a34a; }

/* Responsive */
@media (max-width: 768px) {
    .objectives-metrics {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .flow-card {
        padding: 1.5rem;
    }
    
    .flow-type-label {
        position: static;
        display: inline-block;
        margin-bottom: 1rem;
    }
    
    .requirement-list {
        padding-left: 1rem;
    }
} 