/* Contenedor Principal */
.inscripcion-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.inscripcion-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

/* Barra de Progreso */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    transition: all 0.3s ease;
}

.step-label {
    margin-top: 10px;
    font-size: 14px;
    color: #999;
    transition: all 0.3s ease;
    text-align: center;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
}

.progress-step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: #4caf50;
    color: white;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    position: relative;
    z-index: 1;
}

/* Pasos del Formulario */
.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

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

.form-step h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.step-description {
    color: #666;
    margin-bottom: 30px;
}

/* Campos del Formulario */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 13px;
}

/* Info de Pago */
.payment-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.payment-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: white;
    font-size: 22px;
}

.payment-details {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
}

.detail-value {
    text-align: right;
}

/* QR Code Section */
.qr-code-section {
    margin-top: 20px;
}

.qr-code-section h4 {
    color: white;
    margin: 20px 0 10px 0;
    text-align: center;
}

.qr-code-section img {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-label {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border: 2px dashed #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background: #e9ecef;
    border-color: #667eea;
}

.file-upload-icon {
    font-size: 24px;
    margin-right: 15px;
}

.file-upload-text {
    font-size: 16px;
    color: #666;
}

.file-upload-info {
    margin-top: 10px;
    padding: 10px;
    background: #e8f5e9;
    border-radius: 5px;
    display: none;
}

.file-upload-info.active {
    display: block;
}

/* Confirmación */
.confirmation-box {
    text-align: center;
    padding: 30px;
}

.confirmation-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.confirmation-box h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 26px;
}

.summary-data {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
    text-align: left;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-child {
    border-bottom: none;
}

.confirmation-notice {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
}

.confirmation-notice ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.confirmation-notice li {
    padding: 8px 0;
    font-size: 15px;
}

/* Botones */
.form-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

.btn {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-prev {
    background: #e0e0e0;
    color: #666;
}

.btn-prev:hover {
    background: #d0d0d0;
}

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

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

.btn-submit {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* Mensajes y Loader */
.form-message {
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-loader {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE - MÓVILES
   ============================================ */

@media (max-width: 768px) {
    .inscripcion-container {
        padding: 10px;
        margin: 20px auto;
    }
    
    .inscripcion-wrapper {
        padding: 20px;
        border-radius: 8px;
    }
    
    /* Barra de progreso en móvil */
    .progress-bar {
        margin-bottom: 30px;
        font-size: 12px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .step-label {
        font-size: 11px;
        margin-top: 5px;
    }
    
    .progress-line {
        height: 2px;
    }
    
    /* Formularios en columna única */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-step h2 {
        font-size: 22px;
    }
    
    .step-description {
        font-size: 14px;
    }
    
    /* Info de pago responsive */
    .payment-info {
        padding: 20px;
    }
    
    .payment-info h3 {
        font-size: 18px;
    }
    
    .payment-details {
        padding: 15px;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
        padding: 12px 0;
    }
    
    .detail-value {
        text-align: left;
        font-weight: bold;
    }
    
    /* QR más pequeño en móvil */
    .qr-code-section img {
        max-width: 150px;
    }
    
    /* File upload responsive */
    .file-upload-label {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .file-upload-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Botones en columna */
    .form-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 15px;
        width: 100%;
    }
    
    /* Confirmación responsive */
    .confirmation-box {
        padding: 20px 10px;
    }
    
    .confirmation-icon {
        font-size: 60px;
    }
    
    .confirmation-box h3 {
        font-size: 20px;
    }
    
    .summary-data {
        padding: 15px;
    }
    
    .summary-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .confirmation-notice {
        padding: 15px;
    }
    
    .confirmation-notice li {
        font-size: 14px;
    }
}

/* Para pantallas MUY pequeñas */
@media (max-width: 480px) {
    .inscripcion-container {
        padding: 5px;
    }
    
    .inscripcion-wrapper {
        padding: 15px;
    }
    
    .form-step h2 {
        font-size: 20px;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"] {
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .payment-info h3 {
        font-size: 16px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Orientación landscape en móvil */
@media (max-width: 768px) and (orientation: landscape) {
    .progress-bar {
        margin-bottom: 20px;
    }
    
    .form-step h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .step-description {
        margin-bottom: 15px;
    }
}