/* registro.css - Estilos para el formulario de registro multi-paso */
body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #333;
}

.registro-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.logo-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-header img {
    height: 60px;
    margin-bottom: 12px;
}

.logo-header h1 {
    font-size: 24px;
    color: #333;
    margin: 10px 0;
}

.logo-header p {
    color: #666;
    font-size: 16px;
}

/* Alertas de éxito/error */
.alert {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 600;
}
.alert.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}
.alert.error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f1aeb5;
}

/* Formulario */
.registro-form {
    position: relative;
}

.form-section {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 2px rgba(74, 108, 247, 0.2);
}

/* Estilos de error */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #e74c3c;
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 14px;
    margin-top: 6px;
    min-height: 18px;
}

/* Botones */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, opacity 0.3s;
}
.btn-primary {
    background: #4a6cf7;
    color: white;
}
.btn-primary:hover {
    background: #3a5ae0;
}
.btn-outline {
    background: transparent;
    color: #555;
    border: 1px solid #ccc;
}
.btn-outline:hover {
    background: #f5f5f5;
}
.btn-success {
    background: #28a745;
    color: white;
}
.btn-success:hover {
    background: #218838;
}
.btn-success:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.form-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Términos y condiciones */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    position: relative;
}
.checkbox-container input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    accent-color: #4a6cf7;
}
.checkbox-container span {
    color: #555;
    line-height: 1.5;
}
.checkbox-container a {
    color: #4a6cf7;
    text-decoration: none;
}
.checkbox-container a:hover {
    text-decoration: underline;
}

/* Subida de archivos */
.file-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}
.file-name {
    padding: 12px;
    border: 1px dashed #ccc;
    border-radius: 6px;
    background: #fafafa;
    color: #666;
    font-size: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* Responsive */
@media (max-width: 600px) {
    .registro-container {
        margin: 15px;
        padding: 15px;
    }
    .form-buttons {
        flex-direction: column;
    }
    .btn {
        width: 100%;
    }
}
/* Modal de términos */
/* Modal de términos */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh; /* Limita la altura al 80% de la ventana */
    overflow-y: auto; /* Activa el scroll si el contenido es más largo */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Encabezado del modal */
.modal-content h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Contenido del modal */
.modal-content .content {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 10px;
}

/* Pie del modal */
.modal-footer {
    margin-top: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content h3 {
    margin-top: 0;
    color: #333;
}

.modal-content p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.modal-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.modal-content a {
    color: #4a6cf7;
    text-decoration: underline;
}

.modal-content a:hover {
    color: #2d4b8c;
}