/* Variables */
:root {
    --upn-primary: #1a5276;
    --upn-secondary: #27ae60;
    --upn-warning: #f39c12;
    --upn-danger: #e74c3c;
    --upn-light: #ecf0f1;
    --upn-dark: #2c3e50;
}

/* General */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border-radius: 15px;
    overflow: hidden;
}

.card-header {
    border-bottom: none;
}

/* Barra de progreso */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step:not(:last-child):after {
    content: '';
    position: absolute;
    top: 25px;
    right: -50%;
    width: 100%;
    height: 3px;
    background: #ddd;
    z-index: 1;
}

.step.active:not(:last-child):after,
.step.completed:not(:last-child):after {
    background: var(--upn-primary);
}

.step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    display: inline-block;
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.step.active .step-number {
    background: var(--upn-primary);
    color: white;
}

.step.completed .step-number {
    background: var(--upn-secondary);
    color: white;
}

.step.completed .step-number:after {
    content: '✓';
}

.step-text {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
}

.step.active .step-text {
    color: var(--upn-primary);
    font-weight: bold;
}

/* Formulario por pasos */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Validación de campos */
.form-control.is-invalid {
    border-color: var(--upn-danger);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e74c3c'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e74c3c' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-valid {
    border-color: var(--upn-secondary);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2327ae60' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Información de cupo */
#info-cupo {
    border-radius: 10px;
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .progress-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .step:not(:last-child):after {
        display: none;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 14px;
    }
    
    .step-text {
        display: inline-block;
        margin-left: 10px;
    }
}

/* Tabla de sedes */
#tabla-sedes {
    font-size: 14px;
}

#tabla-sedes .badge {
    font-size: 12px;
}

/* Botones */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--upn-primary);
    border-color: var(--upn-primary);
}

.btn-primary:hover {
    background: #154360;
    border-color: #154360;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 82, 118, 0.3);
}

.btn-success {
    background: var(--upn-secondary);
    border-color: var(--upn-secondary);
}

.btn-success:hover {
    background: #219a52;
    border-color: #219a52;
}

/* Animaciones */
.shadow-lg {
    transition: box-shadow 0.3s;
}

.shadow-lg:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}