* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: rgb(245 245 245);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.form-logo {
    text-align: center;
    background: #fff;
    padding: 16px 20px;
    border: 4px solid rgb(122, 3, 3);
}

.form-logo img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    width: 350px;
    height: auto;
}

header {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: rgb(122, 3, 3);
    color: white;
    padding: 30px;
    text-align: center;
}

header h1 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 0;
}

.progress-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: white;
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.progress-step.completed {
    background: #4CAF50;
    border-color: #4CAF50;
}

.form-section {
    display: none;
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

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

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

.form-section h2 {
    color: #667eea;
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 500;
}

.form-section h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 30px;
    font-weight: 600;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea: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: #888;
    font-size: 12px;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.radio-label input[type="radio"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.radio-label input[type="radio"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.checkbox-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: #667eea;
    font-weight: 600;
}

.info-box {
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 5px;
}

.info-box p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
}

.info-box p:last-child {
    margin-bottom: 0;
}

.info-box .important {
    color: #e74c3c;
    font-weight: 600;
}

.important-box {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.important-box h4 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 16px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-prev {
    background: #6c757d;
    color: white;
}

.btn-prev:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

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

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

.btn-submit:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

input[type="file"] {
    padding: 8px;
    border: 2px dashed #e0e0e0;
    border-radius: 5px;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

input[type="file"]:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    header h1 {
        font-size: 20px;
    }

    .form-section {
        padding: 20px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
    }

    .progress-step {
        width: 25px;
        height: 25px;
    }
}

/* Validación */
.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.form-group input:valid:not(:placeholder-shown),
.form-group select:valid:not(:placeholder-shown) {
    border-color: #4CAF50;
}
